Event action class.
More...
#include <Doxymodules_basic.h>
Event action class.
In EndOfEventAction() there is collected information event per event from Hits Collections, and accumulated statistic for RunAction::EndOfRunAction().
Definition at line 89 of file Doxymodules_basic.h.
◆ EventAction()
B3a::EventAction::EventAction |
( |
RunAction * |
runAction | ) |
|
◆ ~EventAction()
B3a::EventAction::~EventAction |
( |
| ) |
|
|
overridedefault |
◆ BeginOfEventAction()
void B3a::EventAction::BeginOfEventAction |
( |
const G4Event * |
| ) |
|
|
override |
◆ EndOfEventAction()
void B3a::EventAction::EndOfEventAction |
( |
const G4Event * |
evt | ) |
|
|
override |
G4int copyNb = (itr->first);
G4cout << "\n cryst" << copyNb << ": " << edep/keV << " keV ";
G4int copyNb = (itr->first);
Definition at line 58 of file EventAction.cc.
59{
60
61
63 if(!HCE) return;
64
65
70 }
71
72
73
74 const G4double eThreshold = 500*keV;
75 G4int nbOfFired = 0;
76
78
79 std::map<G4int,G4double*>::iterator itr;
80 for (itr = evtMap->GetMap()->begin(); itr != evtMap->GetMap()->end(); itr++) {
81
82 G4double edep = *(itr->second);
83 if (edep > eThreshold) nbOfFired++;
84
85 }
87
88
89
90 G4double dose = 0.;
91
93
94 for (itr = evtMap->GetMap()->begin(); itr != evtMap->GetMap()->end(); itr++) {
95
96 dose = *(itr->second);
97 }
99}
void SumDose(G4double dose)
◆ fRunAction
RunAction* B3a::EventAction::fRunAction = nullptr |
|
private |
◆ fCollID_cryst
G4int B3a::EventAction::fCollID_cryst = -1 |
|
private |
◆ fCollID_patient
G4int B3a::EventAction::fCollID_patient = -1 |
|
private |
The documentation for this class was generated from the following files: