34 #include "G4HCofThisEvent.hh"
39 #include "G4VHitsCollection.hh"
40 #include "ExN04EventAction.hh"
41 #include "ExN04CalorimeterHit.hh"
42 #include "ExN04MuonHit.hh"
43 #include "ExN04TrackerHit.hh"
64 ftrackerCollID = SDman-> GetCollectionID(colNam=
"trackerCollection");
66 fmuonCollID = SDman-> GetCollectionID(colNam=
"muonCollection");
89 G4int n_hit = THC-> entries();
91 <<
" hits are stored in ExN04TrackerHitsCollection." <<
G4endl;
95 G4int n_hit = CHC-> entries();
97 <<
" hits are stored in ExN04CalorimeterHitsCollection." <<
G4endl;
99 for(
int i = 0; i < n_hit; i++ ) {
100 totE += (*CHC)[i]-> GetEdep();
102 G4cout <<
" Total energy deposition in calorimeter : "
107 G4int n_hit = MHC-> entries();
109 <<
" hits are stored in ExN04MuonHitsCollection." <<
G4endl;
virtual void EndOfEventAction(const G4Event *)
virtual void BeginOfEventAction(const G4Event *)
G4VHitsCollection * GetHC(G4int i)
static G4SDManager * GetSDMpointer()
G4GLOB_DLL std::ostream G4cout
static constexpr double GeV