Run class.
More...
#include <Doxymodules_basic.h>
Run class.
In RecordEvent() there is collected information event per event from Hits Collections, and accumulated statistic for the run
Definition at line 105 of file Doxymodules_basic.h.
◆ Run()
◆ ~Run()
◆ RecordEvent()
void B3b::Run::RecordEvent |
( |
const G4Event * |
event | ) |
|
|
override |
G4int copyNb = (itr->first); G4cout << G4endl << " cryst" << copyNb << ": " << edep/keV << " keV ";
G4int copyNb = (itr->first);
Definition at line 45 of file Run.cc.
46{
49 = G4SDManager::GetSDMpointer()->GetCollectionID("crystal/edep");
50
51 }
52
55 = G4SDManager::GetSDMpointer()->GetCollectionID("patient/dose");
56
57 }
58
59 G4int evtNb = event->GetEventID();
60
62 G4cout << G4endl << "---> end of event: " << evtNb << G4endl;
63 }
64
65
66
68 if(!HCE) return;
69
70
71
72 const G4double eThreshold = 500*keV;
73 G4int nbOfFired = 0;
74
76
77 std::map<G4int,G4double*>::iterator itr;
78 for (itr = evtMap->GetMap()->begin(); itr != evtMap->GetMap()->end(); itr++) {
79 G4double edep = *(itr->second);
80 if (edep > eThreshold) nbOfFired++;
81
82
83 }
85
86
87
88 G4double dose = 0.;
89
91
92 for (itr = evtMap->GetMap()->begin(); itr != evtMap->GetMap()->end(); itr++) {
93
94 dose = *(itr->second);
95 }
98
99 G4Run::RecordEvent(event);
100}
◆ Merge()
void B3b::Run::Merge |
( |
const G4Run * |
aRun | ) |
|
|
override |
Definition at line 104 of file Run.cc.
105{
106 const Run* localRun =
static_cast<const Run*
>(aRun);
110 G4Run::Merge(aRun);
111}
◆ GetNbGoodEvents()
G4int B3b::Run::GetNbGoodEvents |
( |
| ) |
const |
|
inline |
◆ GetSumDose()
G4double B3b::Run::GetSumDose |
( |
| ) |
const |
|
inline |
◆ GetStatDose()
◆ fCollID_cryst
G4int B3b::Run::fCollID_cryst = -1 |
|
private |
◆ fCollID_patient
G4int B3b::Run::fCollID_patient = -1 |
|
private |
◆ fPrintModulo
G4int B3b::Run::fPrintModulo = 10000 |
|
private |
◆ fGoodEvents
G4int B3b::Run::fGoodEvents = 0 |
|
private |
◆ fSumDose
G4double B3b::Run::fSumDose = 0. |
|
private |
◆ fStatDose
The documentation for this class was generated from the following files: