| 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 | public:
|
|---|
| 40 | MMcEvtBasic();
|
|---|
| 41 | MMcEvtBasic(ParticleId_t, Float_t, Float_t, Float_t, Float_t);
|
|---|
| 42 | void operator=(const MMcEvtBasic &evt);
|
|---|
| 43 |
|
|---|
| 44 | // Getter
|
|---|
| 45 | ParticleId_t GetPartId() const { return fPartId; }
|
|---|
| 46 |
|
|---|
| 47 | Float_t GetEnergy() const { return fEnergy; }
|
|---|
| 48 | Float_t GetImpact() const { return fImpact; }
|
|---|
| 49 |
|
|---|
| 50 | Float_t GetTelescopePhi() const { return fTelescopePhi; }
|
|---|
| 51 | Float_t GetTelescopeTheta() const { return fTelescopeTheta; }
|
|---|
| 52 |
|
|---|
| 53 | static TString GetParticleName(Int_t id);
|
|---|
| 54 | static TString GetParticleSymbol(Int_t id);
|
|---|
| 55 | static TString GetEnergyStr(Float_t e);
|
|---|
| 56 |
|
|---|
| 57 | TString GetParticleSymbol() const
|
|---|
| 58 | {
|
|---|
| 59 | return GetParticleSymbol(fPartId);
|
|---|
| 60 | }
|
|---|
| 61 |
|
|---|
| 62 | TString GetParticleName() const
|
|---|
| 63 | {
|
|---|
| 64 | return GetParticleName(fPartId);
|
|---|
| 65 | }
|
|---|
| 66 |
|
|---|
| 67 | TString GetEnergyStr() const
|
|---|
| 68 | {
|
|---|
| 69 | return GetEnergyStr(fEnergy);
|
|---|
| 70 | }
|
|---|
| 71 |
|
|---|
| 72 | // Setter
|
|---|
| 73 | void SetPartId(ParticleId_t id) { fPartId = id; }
|
|---|
| 74 | void SetEnergy(Float_t Energy) { fEnergy=Energy; } //Set Energy
|
|---|
| 75 | void SetImpact(Float_t Impact) { fImpact=Impact;} //Set impact parameter
|
|---|
| 76 |
|
|---|
| 77 | void SetTelescopeTheta(Float_t Theta) { fTelescopeTheta=Theta; }
|
|---|
| 78 | void SetTelescopePhi (Float_t Phi) { fTelescopePhi=Phi; }
|
|---|
| 79 |
|
|---|
| 80 | void Fill(ParticleId_t, Float_t, Float_t, Float_t, Float_t);
|
|---|
| 81 |
|
|---|
| 82 | // TObject
|
|---|
| 83 | void Clear(Option_t *opt=NULL);
|
|---|
| 84 | void Print(Option_t *opt=NULL) const;
|
|---|
| 85 |
|
|---|
| 86 | ClassDef(MMcEvtBasic, 2) //Stores Basic Montecarlo Information of one event
|
|---|
| 87 |
|
|---|
| 88 | };
|
|---|
| 89 |
|
|---|
| 90 | #endif
|
|---|