source: trunk/Mars/mmc/MMcEvtBasic.h@ 17667

Last change on this file since 17667 was 9595, checked in by tbretz, 14 years ago
*** empty log message ***
File size: 2.9 KB
Line 
1#ifndef MARS_MMcEvtBasic
2#define MARS_MMcEvtBasic
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8class MMcEvtBasic : public MParContainer
9{
10public:
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
29protected:
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
42public:
43 MMcEvtBasic();
44 MMcEvtBasic(ParticleId_t, Float_t, Float_t, Float_t, Float_t);
45 void operator=(const MMcEvtBasic &evt);
46
47 // Getter
48 ParticleId_t GetPartId() const { return fPartId; }
49
50 Float_t GetEnergy() const { return fEnergy; }
51 Float_t GetImpact() const { return fImpact; }
52
53 Float_t GetTelescopePhi() const { return fTelescopePhi; }
54 Float_t GetTelescopeTheta() const { return fTelescopeTheta; }
55
56 Float_t GetParticlePhi() const { return fPhi; }
57 Float_t GetParticleTheta() const { return fTheta; }
58
59 //Float_t GetTheta() const { return fTheta; }
60 //Float_t GetPhi() const { return fPhi ; }
61
62 static TString GetParticleName(Int_t id);
63 static TString GetParticleSymbol(Int_t id);
64 static TString GetEnergyStr(Float_t e);
65
66 TString GetParticleSymbol() const
67 {
68 return GetParticleSymbol(fPartId);
69 }
70
71 TString GetParticleName() const
72 {
73 return GetParticleName(fPartId);
74 }
75
76 TString GetEnergyStr() const
77 {
78 return GetEnergyStr(fEnergy);
79 }
80
81 // Setter
82 void SetPartId(ParticleId_t id) { fPartId = id; }
83 void SetEnergy(Float_t Energy) { fEnergy=Energy; } //Set Energy
84 void SetImpact(Float_t Impact) { fImpact=Impact;} //Set impact parameter
85
86 void SetTelescopeTheta(Float_t Theta) { fTelescopeTheta=Theta; }
87 void SetTelescopePhi (Float_t Phi) { fTelescopePhi=Phi; }
88
89 void SetParticleTheta(Float_t Theta) { fTheta=Theta; }
90 void SetParticlePhi (Float_t Phi) { fPhi=Phi; }
91
92 //void SetTheta(Float_t Theta) { fTheta=Theta; } //Set Theta angle
93 //void SetPhi(Float_t Phi) { fPhi=Phi; } //Set Phi angle
94
95 void Fill(ParticleId_t, Float_t, Float_t, Float_t, Float_t);
96
97 // TObject
98 void Clear(Option_t *opt=NULL);
99 void Print(Option_t *opt=NULL) const;
100
101 ClassDef(MMcEvtBasic, 3) //Stores Basic Montecarlo Information of one event
102
103};
104
105#endif
Note: See TracBrowser for help on using the repository browser.