32 #include "G4HCofThisEvent.hh"
33 #include "G4VHitsCollection.hh"
46 drawFlag(
"all" ),printModulo(1000), pointerEventMessenger(0)
69 hitsCollectionID = pSDManager -> GetCollectionID(
"HadrontherapyDetectorHitsCollection");
82 if (matrix) matrix -> ClearHitTrack();
94 G4int HitCount = CHC -> entries();
95 for (
G4int h=0; h<HitCount; h++)
97 G4int i = ((*CHC)[h]) -> GetXID();
98 G4int j = ((*CHC)[h]) -> GetYID();
99 G4int k = ((*CHC)[h]) -> GetZID();
100 G4double energyDeposit = ((*CHC)[h]) -> GetEdep();
101 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