1 | #ifndef MARS_MMcEvtBasic
|
---|
2 | #define MARS_MMcEvtBasic
|
---|
3 |
|
---|
4 | #ifndef MARS_MParContainer
|
---|
5 | #include "MParContainer.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class MMcEvtBasic : public MParContainer
|
---|
9 | {
|
---|
10 | public:
|
---|
11 | enum ParticleId_t
|
---|
12 | {
|
---|
13 | kUNDEFINED = -1,
|
---|
14 | kGAMMA = 1,
|
---|
15 | kPOSITRON = 2,
|
---|
16 | kELECTRON = 3,
|
---|
17 | kANTIMUON = 5,
|
---|
18 | kMUON = 6,
|
---|
19 | kPI0 = 7,
|
---|
20 | kNEUTRON = 13,
|
---|
21 | kPROTON = 14,
|
---|
22 | kHELIUM = 402,
|
---|
23 | kOXYGEN = 1608,
|
---|
24 | kIRON = 5626,
|
---|
25 | kArtificial = 9998,
|
---|
26 | kNightSky = 9999
|
---|
27 | };
|
---|
28 |
|
---|
29 | protected:
|
---|
30 | ParticleId_t fPartId; // Type of particle
|
---|
31 | Float_t fEnergy; // [GeV] Energy
|
---|
32 | Float_t fImpact; // [cm] impact parameter
|
---|
33 |
|
---|
34 | // Telescope orientation (see TDAS 02-11 regarding the
|
---|
35 | // precise meaning of these angles):
|
---|
36 | Float_t fTelescopePhi; // [rad]
|
---|
37 | Float_t fTelescopeTheta; // [rad]
|
---|
38 |
|
---|
39 | Float_t fTheta; // [rad] Theta angle of event
|
---|
40 | Float_t fPhi; // [rad] Phi angle of event (see class description)
|
---|
41 |
|
---|
42 | Float_t fCoreX; // [cm] Core x pos
|
---|
43 | Float_t fCoreY; // [cm] Core y pos
|
---|
44 |
|
---|
45 | public:
|
---|
46 | MMcEvtBasic();
|
---|
47 | MMcEvtBasic(ParticleId_t, Float_t, Float_t, Float_t, Float_t);
|
---|
48 | void operator=(const MMcEvtBasic &evt);
|
---|
49 |
|
---|
50 | // Getter
|
---|
51 | ParticleId_t GetPartId() const { return fPartId; }
|
---|
52 |
|
---|
53 | Float_t GetEnergy() const { return fEnergy; }
|
---|
54 | Float_t GetImpact() const { return fImpact; }
|
---|
55 |
|
---|
56 | Float_t GetTelescopePhi() const { return fTelescopePhi; }
|
---|
57 | Float_t GetTelescopeTheta() const { return fTelescopeTheta; }
|
---|
58 |
|
---|
59 | Float_t GetParticlePhi() const { return fPhi; }
|
---|
60 | Float_t GetParticleTheta() const { return fTheta; }
|
---|
61 |
|
---|
62 | //Float_t GetTheta() const { return fTheta; }
|
---|
63 | //Float_t GetPhi() const { return fPhi ; }
|
---|
64 |
|
---|
65 | Float_t GetCoreX() const { return fCoreX; } //Get Core x pos
|
---|
66 | Float_t GetCoreY() const { return fCoreY; } //Get Core y pos
|
---|
67 |
|
---|
68 | static TString GetParticleName(Int_t id);
|
---|
69 | static TString GetParticleSymbol(Int_t id);
|
---|
70 | static TString GetEnergyStr(Float_t e);
|
---|
71 |
|
---|
72 | TString GetParticleSymbol() const
|
---|
73 | {
|
---|
74 | return GetParticleSymbol(fPartId);
|
---|
75 | }
|
---|
76 |
|
---|
77 | TString GetParticleName() const
|
---|
78 | {
|
---|
79 | return GetParticleName(fPartId);
|
---|
80 | }
|
---|
81 |
|
---|
82 | TString GetEnergyStr() const
|
---|
83 | {
|
---|
84 | return GetEnergyStr(fEnergy);
|
---|
85 | }
|
---|
86 |
|
---|
87 | // Setter
|
---|
88 | void SetPartId(ParticleId_t id) { fPartId = id; }
|
---|
89 | void SetEnergy(Float_t Energy) { fEnergy=Energy; } //Set Energy
|
---|
90 | void SetImpact(Float_t Impact) { fImpact=Impact;} //Set impact parameter
|
---|
91 |
|
---|
92 | void SetTelescopeTheta(Float_t Theta) { fTelescopeTheta=Theta; }
|
---|
93 | void SetTelescopePhi (Float_t Phi) { fTelescopePhi=Phi; }
|
---|
94 |
|
---|
95 | void SetParticleTheta(Float_t Theta) { fTheta=Theta; }
|
---|
96 | void SetParticlePhi (Float_t Phi) { fPhi=Phi; }
|
---|
97 |
|
---|
98 | //void SetTheta(Float_t Theta) { fTheta=Theta; } //Set Theta angle
|
---|
99 | //void SetPhi(Float_t Phi) { fPhi=Phi; } //Set Phi angle
|
---|
100 |
|
---|
101 | void SetCoreX(Float_t CoreX) { fCoreX=CoreX; } //Set Core x pos
|
---|
102 | void SetCoreY(Float_t CoreY) { fCoreY=CoreY; } //Set Core y pos
|
---|
103 | void SetCore(Float_t x, Float_t y) { fCoreX=x; fCoreY=y; } //Set Core y pos
|
---|
104 |
|
---|
105 | void Fill(ParticleId_t, Float_t, Float_t, Float_t, Float_t);
|
---|
106 |
|
---|
107 | // TObject
|
---|
108 | void Clear(Option_t *opt=NULL);
|
---|
109 | void Print(Option_t *opt=NULL) const;
|
---|
110 |
|
---|
111 | // MParContainer
|
---|
112 | Bool_t SetupFits(fits &fin);
|
---|
113 |
|
---|
114 | ClassDef(MMcEvtBasic, 4) //Stores Basic Montecarlo Information of one event
|
---|
115 |
|
---|
116 | };
|
---|
117 |
|
---|
118 | #endif
|
---|