StRoot
1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
StSvtSimulationMaker
StSvtEnergySim.hh
1
#ifndef STSVTENERGYSIM_HH
2
#define STSVTENERGYSIM_HH
3
4
#include<
Stiostream.h
>
5
6
typedef
struct
StParticle
7
{
8
float
mass ;
9
float
energy ;
10
float
momentum ;
11
float
momentumZ ;
12
float
momentumXY ;
13
float
momentumX ;
14
float
momentumY ;
15
float
theta ;
16
float
phi ;
17
18
}
StParticle
;
19
20
class
StSvtEnergySim
{
21
22
public
:
23
StSvtEnergySim
();
24
~
StSvtEnergySim
();
25
26
void
SetParticle(
int
numOfPar,
float
maxEnergy);
27
StParticle
* particle();
28
void
CalculateEnAndMom(
char
* option,
char
* parType);
29
float
Expdev();
30
float
Gausdev();
31
32
private
:
33
34
int
mNumberOfParticles ;
35
float
mMaxEnergy ;
36
StParticle
* mParticle;
37
38
39
// ClassDef(StSvtEnergySim,1)
40
41
42
};
43
44
45
inline
StParticle
* StSvtEnergySim::particle(){
return
mParticle;}
46
47
#endif
Stiostream.h
StParticle
Definition:
StSvtEnergySim.hh:6
StSvtEnergySim
Definition:
StSvtEnergySim.hh:20
Generated by
1.8.5