39 #include "G4HCofThisEvent.hh"
50 fStage(0),fCalorimeterHitsColID(-1)
85 return classification;
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)"
G4int GetCollectionID(G4String colName)
static G4RunManager * GetRunManager()
virtual ~RE01StackingAction()
G4int fCalorimeterHitsColID
G4VHitsCollection * GetCalCollection()
G4ClassificationOfNewTrack
virtual G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track *aTrack)
G4HCofThisEvent * GetHCofThisEvent() const
void TransferOneStackedTrack(G4ClassificationOfNewTrack origin, G4ClassificationOfNewTrack destination)
G4int GetNUrgentTrack() const
G4VHitsCollection * GetHC(G4int i)
const G4Event * GetCurrentEvent() const
static G4SDManager * GetSDMpointer()
G4StackManager * stackManager
virtual void PrepareNewEvent()
G4GLOB_DLL std::ostream G4cout
Definition of the RE01CalorimeterHit class.
G4VUserTrackInformation * GetUserInformation() const
void TransferStackedTracks(G4ClassificationOfNewTrack origin, G4ClassificationOfNewTrack destination)
G4TrackStatus GetTrackStatus() const
Definition of the RE01StackingAction class.
static constexpr double GeV
void SetUserInformation(G4VUserTrackInformation *aValue) const
G4int GetParentID() const