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

Last change on this file since 651 was 618, checked in by magicsol, 24 years ago
Some changes in the naming convention have been introduced and it has been introduced a new member for this class that is the number of phe coming only from the simulated shower (not from the NSB). CVS:---------------------------------------------------------------------- ----------------------------------------------------------------------
File size: 3.6 KB
Line 
1#ifndef __MMcEvt__
2#define __MMcEvt__
3
4#include <stdlib.h>
5#include <stdio.h>
6#include <string.h>
7#include <unistd.h>
8#include <fcntl.h>
9
10#include <iostream.h>
11#include "MParContainer.h"
12
13
14class MMcEvt : public MParContainer{
15 private:
16 UShort_t fPartId; // Type of particle
17 Float_t fEnergy; // Energy in GeV
18
19 Float_t fTheta; // Theta angle of event
20 Float_t fPhi; // Phi angle of event
21
22 Float_t fCoreD; // Core d pos
23 Float_t fCoreX; // Core x pos
24 Float_t fCoreY; // Core y pos
25 Float_t fImpact; // impact parameter
26
27 UInt_t fPhotIni; // Initial number of photons
28 UInt_t fPassPhotAtm; // Passed atmosphere
29 UInt_t fPassPhotRef; // Passed reflector(reflectivity + effective area)
30 UInt_t fPassPhotCone; // Passed glas
31 UInt_t fPhotElfromShower; // Passed qe coming from the shower
32 UInt_t fPhotElinCamera; // usPhotElfromShower + mean of phe
33 // from NSB
34
35 public:
36 MMcEvt() ;
37
38 MMcEvt( UShort_t,
39 Float_t, Float_t, Float_t, Float_t, Float_t, Float_t, Float_t,
40 UInt_t, UInt_t, UInt_t, UInt_t, UInt_t, UInt_t ) ;
41
42 ~MMcEvt();
43
44 void Clear();
45
46 void Fill( UShort_t,
47 Float_t, Float_t, Float_t, Float_t, Float_t, Float_t, Float_t,
48 UInt_t, UInt_t, UInt_t, UInt_t, UInt_t, UInt_t ) ;
49
50
51 void Print(Option_t *);
52
53 Short_t GetPartId() const { return fPartId; } //Get Type of particle
54 Float_t GetEnergy() const { return fEnergy; } //Get Energy
55
56 Float_t GetTheta() const { return fTheta; } //Get Theta angle
57 Float_t GetPhi() const { return fPhi ; } //Get Phi angle
58
59/* Float_t GetCoreD() { return fCoreD; } //Get Core d pos */
60/* Float_t GetCoreX() { return fCoreX; } //Get Core x pos */
61/* Float_t GetCoreY() { return fCoreY; } //Get Core y pos */
62 Float_t GetImpact() const { return fImpact;} //Get impact parameter
63
64/* UInt_t GetPhotIni() { return fPhotIni; } //Get Initial photons */
65/* UInt_t GetPassPhotAtm() { return fPassPhotAtm;} //Get Passed atmosphere */
66/* UInt_t GetPassPhotRef() { return fPassPhotRef; } //Get Passed reflector */
67/* UInt_t GetPassPhotCone() { return fPassPhotCone; } //Get Passed glas */
68/* UInt_t GetPhotElfromShower() { return fPhotElfromShower; } //Get Passed qe from shower*/
69/* UInt_t GetPhotElinCamera() { return fPhotElinCamera; } //Get Passed qe total*/
70
71
72 void SetPartId(Short_t PartId)
73 {fPartId=PartId;} //Set Type of particle
74
75 void SetEnergy(Float_t Energy)
76 { fEnergy=Energy; } //Set Energy
77
78 void SetTheta(Float_t Theta)
79 { fTheta=Theta; } //Set Theta angle
80
81 void SetPhi(Float_t Phi)
82 { fPhi=Phi; } //Set Phi angle
83
84 void SetCoreD(Float_t CoreD)
85 { fCoreD=CoreD; } //Set Core d pos
86
87 void SetCoreX(Float_t CoreX)
88 { fCoreX=CoreX; } //Set Core x pos
89
90 void SetCoreY(Float_t CoreY )
91 { fCoreY=CoreY; } //Set Core y pos
92
93 void SetImpact(Float_t Impact)
94 { fImpact=Impact;} //Set impact parameter
95
96/* void SetPhotIni(Short_t PhotIni) */
97/* { fPhotIni=PhotIni; } //Set Initial photons */
98/* void SetPassPhotAtm(Short_t PassPhotAtm) */
99/* { fPassPhotAtm=PassPhotAtm;} //Set Passed atmosphere */
100/* void SetPassPhotRef(Short_t PassPhotRef) */
101/* { fPassPhotRef=PassPhotRef ; } //Set Passed reflector */
102/* void SetPassPhotCone(Short_t PhotCon) */
103/* { fPassPhotCone=PhotCon; } //Set Passed glas */
104
105
106 ClassDef(MMcEvt, 1) //Stores Montecarlo Information
107
108};
109
110#endif
Note: See TracBrowser for help on using the repository browser.