32#include "G4EventManager.hh"
33#include "G4HCofThisEvent.hh"
35#include "G4SDManager.hh"
36#include "G4SystemOfUnits.hh"
37#include "G4UImanager.hh"
38#include "G4VHitsCollection.hh"
48 fcalorimeterCollID(-1),
64 ftrackerCollID = SDman-> GetCollectionID(colNam=
"trackerCollection");
66 fmuonCollID = SDman-> GetCollectionID(colNam=
"muonCollection");
73 G4cout <<
">>> Event " << evt->GetEventID() << G4endl;
89 G4int n_hit = THC-> entries();
90 G4cout <<
" " << n_hit
91 <<
" hits are stored in ExN04TrackerHitsCollection." << G4endl;
95 G4int n_hit = CHC-> entries();
96 G4cout <<
" " << n_hit
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 : "
103 << totE / GeV <<
" (GeV)" << G4endl;
107 G4int n_hit = MHC-> entries();
108 G4cout <<
" " << n_hit
109 <<
" hits are stored in ExN04MuonHitsCollection." << G4endl;
Definition of the ExN04CalorimeterHit class.
G4THitsCollection< ExN04CalorimeterHit > ExN04CalorimeterHitsCollection
Definition of the ExN04EventAction class.
Definition of the ExN04MuonHit class.
G4THitsCollection< ExN04MuonHit > ExN04MuonHitsCollection
Definition of the ExN04TrackerHit class.
G4THitsCollection< ExN04TrackerHit > ExN04TrackerHitsCollection
virtual void EndOfEventAction(const G4Event *)
virtual void BeginOfEventAction(const G4Event *)