source: trunk/Mars/mmc/MMcEvt.hxx@ 19951

Last change on this file since 19951 was 19949, checked in by tbretz, 5 years ago
Added missing getter for fRunNumber
File size: 5.2 KB
Line 
1#ifndef MARS_MMcEvt
2#define MARS_MMcEvt
3
4#ifndef MARS_MMcEvtBasic
5#include "MMcEvtBasic.h"
6#endif
7
8
9class MMcEvt : public MMcEvtBasic
10{
11private:
12 UInt_t fRunNumber; // [fits: name=RunNum ; unit=uint32]
13 UInt_t fEvtNumber; // [fits: name=EventNum ; unit=uint32]
14 Float_t fThick0; // [g/cm2]
15 Float_t fFirstTarget; // []
16 Float_t fZFirstInteraction; // [cm]
17
18 Float_t fCoreD; // [cm] Core d pos
19 Float_t fCoreX; // [cm] Core x pos
20 Float_t fCoreY; // [cm] Core y pos
21
22 // Up to here, the info from the CORSIKA event header.
23
24 // Time of first and last photon:
25 Float_t fTimeFirst; // [ns]
26 Float_t fTimeLast; // [ns]
27
28 // 6 parameters and chi2 of the NKG fit to the longitudinal
29 // particle distribution. See CORSIKA manual for explanation,
30 // section 4.42 "Longitudinal shower development":
31 //
32 Float_t fLongiNmax; // [particles]
33 Float_t fLongit0; // [g/cm2]
34 Float_t fLongitmax; // [g/cm2]
35 Float_t fLongia; // [g/cm2]
36 Float_t fLongib; // []
37 Float_t fLongic; // [cm2/g]
38 Float_t fLongichi2;
39
40 UInt_t fPhotIni; // [ph] Initial number of photons
41 UInt_t fPassPhotAtm; // [ph] Passed atmosphere
42 UInt_t fPassPhotRef; // [ph] Passed reflector(reflectivity + effective area)
43 UInt_t fPassPhotCone; // [ph] Within any valid pixel, before plexiglas
44 UInt_t fPhotElfromShower; // [phe] Passed qe, coming from the shower
45 UInt_t fPhotElinCamera; // [phe] usPhotElfromShower + mean of phe from NSB
46
47 // Now follow the fraction of photons reaching the camera produced by
48 // electrons, muons and other particles respectively:
49
50 Float_t fElecCphFraction;
51 Float_t fMuonCphFraction;
52 Float_t fOtherCphFraction;
53
54 Float_t fFadcTimeJitter;
55
56 Int_t fEventReuse; // Number running from 0 to N-1, being N the number
57 // of times a Corsika event has been reused, by
58 // orienting the telescope in different ways or by
59 // setting it at a different location on the ground.
60
61public:
62 MMcEvt();
63 MMcEvt(UInt_t, ParticleId_t, Float_t, Float_t, Float_t,
64 Float_t, Float_t, Float_t, Float_t, Float_t, Float_t,
65 Float_t, Float_t, Float_t, Float_t, Float_t, Float_t,
66 Float_t, Float_t, Float_t, Float_t, Float_t, Float_t,
67 UInt_t, UInt_t, UInt_t, UInt_t, UInt_t, UInt_t,
68 Float_t, Float_t, Float_t, Float_t, Int_t ireuse=0) ;
69
70 // Getter
71 UInt_t GetRunNumber() const { return fRunNumber; } //Get Run Number
72 UInt_t GetEvtNumber() const { return fEvtNumber; } //Get Event Number
73
74 Float_t GetCoreX() const { return fCoreX; } //Get Core x pos
75 Float_t GetCoreY() const { return fCoreY; } //Get Core y pos
76
77 UInt_t GetPhotIni() const { return fPhotIni; } //Get Initial photons
78 UInt_t GetPassPhotAtm() const { return fPassPhotAtm;} //Get Passed atmosphere
79 UInt_t GetPassPhotRef() const { return fPassPhotRef; } //Get Passed reflector
80 UInt_t GetPassPhotCone() const { return fPassPhotCone; } //Get Passed glas
81 UInt_t GetPhotElfromShower() const { return fPhotElfromShower; } //Get Passed qe from shower
82 UInt_t GetPhotElinCamera() const { return fPhotElinCamera; } //Get Passed qe total
83 Float_t GetZFirstInteraction() const { return fZFirstInteraction; }
84
85 Float_t GetOtherCphFraction() const { return fOtherCphFraction; }
86
87 Float_t GetLongiNmax() const { return fLongiNmax; }
88 Float_t GetLongia() const { return fLongia; }
89 Float_t GetLongib() const { return fLongib; }
90 Float_t GetLongic() const { return fLongic; }
91 Float_t GetLongichi2() const { return fLongichi2; }
92 Float_t GetLongit0() const { return fLongit0; }
93 Float_t GetLongitmax() const { return fLongitmax; }
94
95 Float_t GetFadcTimeJitter() const { return fFadcTimeJitter; }
96
97 Float_t GetMuonCphFraction() const { return fMuonCphFraction; }
98
99 TString GetDescription(const TString &s="") const;
100
101 // Setter
102 void SetCoreD(Float_t CoreD) { fCoreD=CoreD; } //Set Core d pos
103 void SetCoreX(Float_t CoreX) { fCoreX=CoreX; } //Set Core x pos
104 void SetCoreY(Float_t CoreY) { fCoreY=CoreY; } //Set Core y pos
105
106 void SetRunNumber(UInt_t n) { fRunNumber=n; }
107 void SetEvtNumber(UInt_t n) { fEvtNumber=n; }
108 void SetEventReuse(UInt_t n) { fEventReuse=n; }
109 void SetPhotElfromShower(UInt_t n) { fPhotElfromShower=n; }
110
111 void Fill( UInt_t, ParticleId_t, Float_t, Float_t, Float_t,
112 Float_t, Float_t, Float_t, Float_t, Float_t, Float_t,
113 Float_t, Float_t, Float_t, Float_t, Float_t, Float_t,
114 Float_t, Float_t, Float_t, Float_t, Float_t, Float_t,
115 UInt_t, UInt_t, UInt_t, UInt_t, UInt_t, UInt_t,
116 Float_t, Float_t, Float_t, Float_t, Int_t ireuse=0);
117
118 // MParContainer
119 Bool_t SetupFits(fits &fin);
120
121 // TObject
122 void Print(Option_t *opt=NULL) const;
123 void Clear(Option_t *opt=NULL);
124
125 ClassDef(MMcEvt, 8) //Stores Montecarlo Information of one event (eg. the energy)
126};
127
128#endif
Note: See TracBrowser for help on using the repository browser.