39 #include "G4HCofThisEvent.hh"
50 fStage(0),fCalorimeterHitsColID(-1)
85 return classification;
93 if(fCalorimeterHitsColID<0)
95 if(fCalorimeterHitsColID>=0)
99 return HCE->
GetHC(fCalorimeterHitsColID);
112 G4cout <<
"Tracks in tracking region have been processed. -- Stage 0 over."
130 G4int n_hitByATrack = 0;
131 for(
int i=0;i<n_hit;i++)
133 G4double edepByATrack = (*CHC)[i]->GetEdepByATrack();
136 totE += edepByATrack;
138 { (*CHC)[i]->GetTrackInformation()->Print(); }
140 G4cout <<
"Cell[" << (*CHC)[i]->GetZ() <<
","
141 << (*CHC)[i]->GetPhi() <<
"] "
142 << edepByATrack/
GeV <<
" [GeV]" <<
G4endl;
143 (*CHC)[i]->ClearEdepByATrack();
149 "### Total energy deposition in calorimeter by a source track in "
150 << n_hitByATrack <<
" cells : " << totE /
GeV <<
" (GeV)"