38 #include "G4HCofThisEvent.hh"
39 #include "G4VHitsCollection.hh"
52 drawFlag(
"all" ),printModulo(1000), pointerEventMessenger(0)
75 hitsCollectionID = pSDManager -> GetCollectionID(
"HadrontherapyDetectorHitsCollection");
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);
HadrontherapyEventAction()
~HadrontherapyEventAction()
void EndOfEventAction(const G4Event *)
static HadrontherapyMatrix * GetInstance()
G4GLOB_DLL std::ostream G4cout
static G4SDManager * GetSDMpointer()
void BeginOfEventAction(const G4Event *)
HadrontherapyEventActionMessenger * pointerEventMessenger