source: trunk/MagicSoft/include-Classes/MMcFormat/MMcEvt.hxx@ 7764

Last change on this file since 7764 was 7094, checked in by tbretz, 19 years ago
*** empty log message ***
File size: 4.8 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 fEvtNumber;
13 Float_t fThick0; // [g/cm2]
14 Float_t fFirstTarget; // []
15 Float_t fZFirstInteraction; // [cm]
16
17 Float_t fTheta; // [rad] Theta angle of event
18 Float_t fPhi; // [rad] Phi angle of event (see class description)
19
20 Float_t fCoreD; // [cm] Core d pos
21 Float_t fCoreX; // [cm] Core x pos
22 Float_t fCoreY; // [cm] Core y pos
23
24 // Up to here, the info from the CORSIKA event header.
25
26 // Time of first and last photon:
27 Float_t fTimeFirst; // [ns]
28 Float_t fTimeLast; // [ns]
29
30 // 6 parameters and chi2 of the NKG fit to the longitudinal
31 // particle distribution. See CORSIKA manual for explanation,
32 // section 4.42 "Longitudinal shower development":
33 //
34 Float_t fLongiNmax; // [particles]
35 Float_t fLongit0; // [g/cm2]
36 Float_t fLongitmax; // [g/cm2]
37 Float_t fLongia; // [g/cm2]
38 Float_t fLongib; // []
39 Float_t fLongic; // [cm2/g]
40 Float_t fLongichi2;
41
42 UInt_t fPhotIni; // [ph] Initial number of photons
43 UInt_t fPassPhotAtm; // [ph] Passed atmosphere
44 UInt_t fPassPhotRef; // [ph] Passed reflector(reflectivity + effective area)
45 UInt_t fPassPhotCone; // [ph] Within any valid pixel, before plexiglas
46 UInt_t fPhotElfromShower; // [phe] Passed qe, coming from the shower
47 UInt_t fPhotElinCamera; // [phe] usPhotElfromShower + mean of phe from NSB
48
49 // Now follow the fraction of photons reaching the camera produced by
50 // electrons, muons and other particles respectively:
51
52 Float_t fElecCphFraction;
53 Float_t fMuonCphFraction;
54 Float_t fOtherCphFraction;
55
56 Float_t fFadcTimeJitter;
57
58public:
59 MMcEvt();
60 MMcEvt(UInt_t, ParticleId_t, Float_t, Float_t, Float_t,
61 Float_t, Float_t, Float_t, Float_t, Float_t, Float_t,
62 Float_t, Float_t, Float_t, Float_t, Float_t, Float_t,
63 Float_t, Float_t, Float_t, Float_t, Float_t, Float_t,
64 UInt_t, UInt_t, UInt_t, UInt_t, UInt_t, UInt_t,
65 Float_t, Float_t, Float_t, Float_t) ;
66
67 // Getter
68 UInt_t GetEvtNumber() const { return fEvtNumber; } //Get Event Number
69 Float_t GetTheta() const { return fTheta; } //Get Theta angle
70 Float_t GetPhi() const { return fPhi ; } //Get Phi angle
71
72 Float_t GetCoreX() const { return fCoreX; } //Get Core x pos
73 Float_t GetCoreY() const { return fCoreY; } //Get Core y pos
74
75 UInt_t GetPhotIni() const { return fPhotIni; } //Get Initial photons
76 UInt_t GetPassPhotAtm() const { return fPassPhotAtm;} //Get Passed atmosphere
77 UInt_t GetPassPhotRef() const { return fPassPhotRef; } //Get Passed reflector
78 UInt_t GetPassPhotCone() const { return fPassPhotCone; } //Get Passed glas
79 UInt_t GetPhotElfromShower() const { return fPhotElfromShower; } //Get Passed qe from shower
80 UInt_t GetPhotElinCamera() const { return fPhotElinCamera; } //Get Passed qe total
81 Float_t GetZFirstInteraction() const { return fZFirstInteraction; }
82
83 Float_t GetOtherCphFraction() const { return fOtherCphFraction; }
84
85 Float_t GetLongiNmax() const { return fLongiNmax; }
86 Float_t GetLongia() const { return fLongia; }
87 Float_t GetLongib() const { return fLongib; }
88 Float_t GetLongic() const { return fLongic; }
89 Float_t GetLongichi2() const { return fLongichi2; }
90 Float_t GetLongit0() const { return fLongit0; }
91 Float_t GetLongitmax() const { return fLongitmax; }
92
93 Float_t GetFadcTimeJitter() const { return fFadcTimeJitter; }
94
95 Float_t GetMuonCphFraction() const { return fMuonCphFraction; }
96
97 // Setter
98 void SetTheta(Float_t Theta) { fTheta=Theta; } //Set Theta angle
99 void SetPhi(Float_t Phi) { fPhi=Phi; } //Set Phi angle
100 void SetCoreD(Float_t CoreD) { fCoreD=CoreD; } //Set Core d pos
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
104 void Fill( UInt_t, ParticleId_t, Float_t, Float_t, Float_t,
105 Float_t, Float_t, Float_t, Float_t, Float_t, Float_t,
106 Float_t, Float_t, Float_t, Float_t, Float_t, Float_t,
107 Float_t, Float_t, Float_t, Float_t, Float_t, Float_t,
108 UInt_t, UInt_t, UInt_t, UInt_t, UInt_t, UInt_t,
109 Float_t, Float_t, Float_t, Float_t) ;
110
111 // TObject
112 void Print(Option_t *opt=NULL) const;
113 void Clear(Option_t *opt=NULL);
114
115 ClassDef(MMcEvt, 5) //Stores Montecarlo Information of one event (eg. the energy)
116};
117
118#endif
Note: See TracBrowser for help on using the repository browser.