Changeset 7430 for trunk/MagicSoft/Mars/mreflector
- Timestamp:
- 11/25/05 14:47:57 (19 years ago)
- Location:
- trunk/MagicSoft/Mars/mreflector
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mreflector/MRflEvtHeader.cc
r2136 r7430 18 18 ! Author(s): Thomas Bretz, 5/2003 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 320 ! Copyright: MAGIC Software Development, 2000-2005 21 21 ! 22 22 ! -
trunk/MagicSoft/Mars/mreflector/MRflEvtHeader.h
r2136 r7430 6 6 #endif 7 7 8 #ifndef ROOT_TVector3 9 #include <TVector3.h> 10 #endif 11 8 12 class MRflEvtHeader : public MParContainer 9 13 { 10 14 Int_t fEvtNumber; 11 15 16 Float_t fEnergy; // [GeV] of primary 17 18 TVector3 fMomentum; // versor of momentum of primary 19 TVector2 fCorePosition; // shower core position on ground 20 21 Float_t fHeightFirstInt; // [cm] z coordinate (height) of first interaction 22 23 Float_t fPhi; // Phi of the telescope 24 Float_t fTheta; // Theta of the telescope [rad] 25 26 Float_t fNmax; // number of particles in shower maximum fitted by CORSIKA 27 Float_t fT0; // depth of first interaction point fitted by CORSIKA 28 Float_t fTmax; // depth of the shower maximum fitted by CORSIKA 29 Float_t fChi2; // quality of the fit to longit shower development 30 31 /* Now follow the fraction of photons reaching the camera produced by * 32 * electrons, muons and other particles respectively: */ 33 Float_t fEFraction; // elec_cph_fraction 34 Float_t fMFraction; // muon_cph_fraction 35 Float_t fOFraction; // other_cph_fraction 36 12 37 public: 13 38 MRflEvtHeader(const char *name=NULL, const char *title=NULL); 14 39 40 // Getter 15 41 Int_t GetEvtNumber() const { return fEvtNumber; } 42 43 Float_t GetEnergy() const { return fEnergy; } 44 45 const TVector3 &GetMomentum() const { return fMomentum; } 46 const TVector2 &GetCorePosition() const { return fCorePosition; } 47 48 Float_t GetHeightFirstInt() const { return fHeightFirstInt; } 49 50 Float_t GetPhi() const { return fPhi; } 51 Float_t GetTheta() const { return fTheta; } 52 53 Float_t GetNmax() const { return fNmax; } 54 Float_t GetT0() const { return fT0; } 55 Float_t GetTmax() const { return fTmax; } 56 Float_t GetChi2() const { return fChi2; } 57 58 Float_t GetEFraction() const { return fEFraction; } 59 Float_t GetMFraction() const { return fMFraction; } 60 Float_t GetOFraction() const { return fOFraction; } 61 62 // Setter 16 63 void SetEvtNumber(Int_t n) { fEvtNumber = n; } 64 void SetEnergy(Float_t x) { fEnergy = x; } 65 void SetMomentum(const TVector3 &v) { fMomentum = v; } 66 void SetCorePosition(const TVector2 &v) { fCorePosition = v; } 17 67 18 ClassDef(MRflEvtHeader, 0) // Header of an event from the reflector program 68 void SetMomentum(Float_t px, Float_t py, Float_t pz) { fMomentum = TVector3(px, py, pz); } 69 void SetCorePosition(Float_t cx, Float_t cy) { fCorePosition = TVector2(cx, cy); } 70 void SetHeightFirstInt(Float_t x) { fHeightFirstInt = x; } 71 72 void SetPhi(Float_t x) { fPhi = x; } 73 void SetTheta(Float_t x) { fTheta = x; } 74 75 void SetNmax(Float_t x) { fNmax = x ; } 76 void SetT0(Float_t x) { fT0 = x; } 77 void SetTmax(Float_t x) { fTmax = x ; } 78 void SetChi2(Float_t x) { fChi2 = x ; } 79 80 void SetEFraction(Float_t x) { fEFraction = x ; } 81 void SetMFraction(Float_t x) { fMFraction = x ; } 82 void SetOFraction(Float_t x) { fOFraction = x ; } 83 84 ClassDef(MRflEvtHeader, 1) // Header of an event from the reflector program 19 85 }; 20 86
Note:
See TracChangeset
for help on using the changeset viewer.