44 #include "G4HCofThisEvent.hh"
45 #include "G4VHitsCollection.hh"
58 drawFlag(
"all" ),printModulo(1000), pointerEventMessenger(0)
60 hitsCollectionID = -1;
67 delete pointerEventMessenger;
76 if (evtNb%printModulo == 0)
80 if(hitsCollectionID == -1)
81 hitsCollectionID = pSDManager -> GetCollectionID(
"IORTDetectorHitsCollection");
88 if(hitsCollectionID < 0)
94 if (matrix) matrix -> ClearHitTrack();
106 G4int HitCount = CHC -> entries();
107 for (
G4int h=0; h<HitCount; h++)
109 G4int i = ((*CHC)[h]) -> GetXID();
110 G4int j = ((*CHC)[h]) -> GetYID();
111 G4int k = ((*CHC)[h]) -> GetZID();
112 G4double energyDeposit = ((*CHC)[h]) -> GetEdep();
113 matrix ->
Fill(i, j, k, energyDeposit/
MeV);
ntupleExperimental Fill(depthExp, EdepExp)
G4GLOB_DLL std::ostream G4cout
void EndOfEventAction(const G4Event *)
static G4SDManager * GetSDMpointer()
void BeginOfEventAction(const G4Event *)
static IORTMatrix * GetInstance()