#include <RE01EventAction.hh>
Definition at line 40 of file RE01EventAction.hh.
RE01EventAction::RE01EventAction |
( |
| ) |
|
RE01EventAction::~RE01EventAction |
( |
| ) |
|
|
virtual |
void RE01EventAction::BeginOfEventAction |
( |
const G4Event * |
| ) |
|
|
virtual |
Reimplemented from G4UserEventAction.
Definition at line 61 of file RE01EventAction.cc.
64 if(fTrackerCollID<0||fCalorimeterCollID<0)
G4int GetCollectionID(G4String colName)
static G4SDManager * GetSDMpointer()
void RE01EventAction::EndOfEventAction |
( |
const G4Event * |
evt | ) |
|
|
virtual |
Reimplemented from G4UserEventAction.
Definition at line 73 of file RE01EventAction.cc.
82 if(fTrackerCollID<0||fCalorimeterCollID<0)
return;
97 G4cout <<
"Tracker hits " <<
98 "--------------------------------------------------------------"
100 G4cout << n_hit <<
" hits are stored in RE01TrackerHitsCollection."
105 for(
int i=0;i<n_hit;i++)
106 { (*THC)[i]->Print(); }
113 G4cout <<
"Calorimeter hits "<<
114 "--------------------------------------------------------------"
116 G4cout << n_hit <<
" hits are stored in RE01CalorimeterHitsCollection."
119 for(
int i=0;i<n_hit;i++)
120 { totE += (*CHC)[i]->GetEdep(); }
121 G4cout <<
" Total energy deposition in calorimeter : "
127 G4int n_trajectories = 0;
128 if (trajectoryContainer) n_trajectories = trajectoryContainer->
entries();
131 G4cout <<
"Trajectories in tracker "<<
132 "--------------------------------------------------------------"
136 for(
G4int i=0; i<n_trajectories; i++)
145 G4cout <<
"Primary particles "<<
146 "--------------------------------------------------------------"
149 for(
G4int iv=0;iv<n_vertex;iv++)
153 G4cout <<
"Primary vertex "
155 <<
" at t = " << (pv->
GetT0())/
ns <<
" [ns]" << G4endl;
G4VHitsCollection * GetHC(G4int i)
CLHEP::Hep3Vector G4ThreeVector
G4int GetNumberOfPrimaryVertex() const
virtual void ShowTrajectory(std::ostream &os=G4cout) const
G4EventManager * fpEventManager
G4TrajectoryContainer * GetTrajectoryContainer() const
G4PrimaryParticle * GetPrimary(G4int i=0) const
G4GLOB_DLL std::ostream G4cout
G4PrimaryVertex * GetPrimaryVertex(G4int i=0) const
G4PrimaryParticle * GetNext() const
static constexpr double GeV
G4HCofThisEvent * GetHCofThisEvent() const
The documentation for this class was generated from the following files: