38 #include "G4HCofThisEvent.hh"
39 #include "G4VHitsCollection.hh"
52 drawFlag(
"all" ),printModulo(1000), pointerEventMessenger(0)
54 hitsCollectionID = -1;
61 delete pointerEventMessenger;
70 if (evtNb%printModulo == 0)
74 if(hitsCollectionID == -1)
75 hitsCollectionID = pSDManager -> GetCollectionID(
"HadrontherapyDetectorHitsCollection");
82 if(hitsCollectionID < 0)
88 if (matrix) matrix -> ClearHitTrack();
100 G4int HitCount = CHC -> entries();
101 for (
G4int h=0; h<HitCount; h++)
103 G4int i = ((*CHC)[h]) -> GetXID();
104 G4int j = ((*CHC)[h]) -> GetYID();
105 G4int k = ((*CHC)[h]) -> GetZID();
106 G4double energyDeposit = ((*CHC)[h]) -> GetEdep();
107 matrix ->
Fill(i, j, k, energyDeposit/
MeV);