10 #include "G4RunManager.hh"
11 #include "G4UserEventAction.hh"
13 #include "G4AnalysisManager.hh"
84 inline void SetMaxEdep(G4double edepondx, G4ThreeVector maxedeppos)
94 inline void SetDecayTriggerSi(G4bool trg) { fDecayTriggerSi = trg; }
95 inline void SetCosmicTriggerUp(G4bool trg) { fCosmicTriggerUp = trg; }
96 inline void SetCosmicTriggerBottom(G4bool trg) { fCosmicTriggerBottom = trg; }
123 std::vector<G4int> fHitsNum_F_Ch,
129 G4double fTimeOfDecay;
130 G4bool fDecayTriggerSi,
132 fCosmicTriggerBottom;
User action concrete class of G4UserEventAction. In addition to defining procedures executed at the s...
G4double fMaxEdep
Maximum deposit of energy per unit length (MeV/mm) in the crystal.
MyEventAction()=default
Constructor of the class.
G4double fPosXIn
X position of arrival of primary gamma.
std::vector< G4double > fT_F
Vector containing times of detection of optical photons on the front face.
G4ThreeVector fMaxEdepPos
Position of the maximum deposit of energy per unit length in the crystal.
G4double fPosYFirstInter
Y position of first interaction of primary gamma.
~MyEventAction() override=default
Destructor of the class.
void EndOfEventAction(const G4Event *event) override
Fills the TTree with the data of the event.
G4double fPosXFirstInter
X position of first interaction of primary gamma.
std::vector< G4double > fT_B
Vector containing times of detection of optical photons on the back face.
G4double fEdep
Total energy deposited inside the crystal.
void SetArrivalandFirstInteraction(G4double newtimein, G4ThreeVector newposin, G4double newtimeinter, G4ThreeVector newposinter)
Stores the time and the position of arrival to the crystal of the primary gamma.
void BeginOfEventAction(const G4Event *event) override
Resets every data containers at the beginning of a new event.
void AddEdep(G4double edep)
For every G4Step inside the crystal it sums the energy deposit.
std::vector< G4double > fY_F
Vector containing y-positions of detection of optical photons on the front face.
std::vector< G4double > fX_B
Vector containing x-positions of detection of optical photons on the back face.
G4double fTimeFirstInter
Time of first interaction of primary gamma.
std::vector< G4int > fChannel_B
Vector containing SiPM channels of detection of optical photons on the back face.
void SetMaxEdep(G4double edepondx, G4ThreeVector maxedeppos)
Stores the maximum deposit of energy per unit length and its position inside the crystal.
G4int fHitsNum_F
Total number of optical photons detected by SiPMs on the front face.
G4double fPosYIn
Y position of arrival of primary gamma.
G4double fPosZIn
Z position of arrival of primary gamma.
G4double fPosZFirstInter
Z position of first interaction of primary gamma.
G4int fHitsNum_B
Total number of optical photons detected by SiPMs on the back face.
std::vector< G4double > fX_F
Vector containing x-positions of detection of optical photons on the front face.
G4double fTimeIn
Time of arrival of primary gamma.
std::vector< G4double > fY_B
Vector containing y-positions of detection of optical photons on the back face.
std::vector< G4int > fChannel_F
Vector containing SiPM channels of detection of optical photons on the front face.
Declaration of the class MyPrimaryGenerator.
Definition of the namespace GS.
Declaration of the class MyHit.