32 #include "G4HCofThisEvent.hh"
33 #include "G4VHitsCollection.hh"
46 drawFlag(
"all" ),printModulo(10), pointerEventMessenger(0)
63 hitsCollectionID = pSDManager -> GetCollectionID(
"HadrontherapyDetectorHitsCollection");
75 if (matrix) matrix -> ClearHitTrack();
87 G4int HitCount = CHC -> entries();
88 for (
G4int h=0; h<HitCount; h++)
90 G4int i = ((*CHC)[h]) -> GetXID();
91 G4int j = ((*CHC)[h]) -> GetYID();
92 G4int k = ((*CHC)[h]) -> GetZID();
93 G4double energyDeposit = ((*CHC)[h]) -> GetEdep();
94 matrix ->
Fill(i, j, k, energyDeposit/
MeV);
ntupleExperimental Fill(depthExp, EdepExp)
static constexpr double MeV
static HadrontherapyMatrix * GetInstance()
void BeginOfEventAction(const G4Event *)
~HadrontherapyEventAction()
HadrontherapyEventAction()
static G4SDManager * GetSDMpointer()
HadrontherapyEventActionMessenger * pointerEventMessenger
void EndOfEventAction(const G4Event *)