34 #include "G4HCofThisEvent.hh"
39 #include "G4VHitsCollection.hh"
40 #include "ExN04EventAction.hh"
41 #include "ExN04CalorimeterHit.hh"
42 #include "ExN04MuonHit.hh"
43 #include "ExN04TrackerHit.hh"
49 fcalorimeterCollID = -1;
62 if ( ftrackerCollID<0 || fcalorimeterCollID<0 || fmuonCollID<0) {
64 ftrackerCollID = SDman-> GetCollectionID(colNam=
"trackerCollection");
65 fcalorimeterCollID = SDman-> GetCollectionID(colNam=
"calCollection");
66 fmuonCollID = SDman-> GetCollectionID(colNam=
"muonCollection");
75 if( ftrackerCollID<0 || fcalorimeterCollID<0 || fmuonCollID<0)
return;
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;
G4VHitsCollection * GetHC(G4int i)
virtual void BeginOfEventAction(const G4Event *)
virtual void EndOfEventAction(const G4Event *)
G4GLOB_DLL std::ostream G4cout
static G4SDManager * GetSDMpointer()