38 #include "G4HCofThisEvent.hh"
39 #include "G4VHitsCollection.hh"
53 fTrackerCollID(-1),fCalorimeterCollID(-1)
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;
171 for(
G4int ii=0;ii<=ind;ii++)
177 {
G4cout <<
"is not defined in G4"; }
188 daughter = daughter->
GetNext();
G4int GetCollectionID(G4String colName)
Definition of the RE01EventAction class.
G4ThreeVector GetMomentum() const
G4PrimaryParticle * GetPrimary(G4int i=0) const
Definition of the RE01Trajectory class.
CLHEP::Hep3Vector G4ThreeVector
virtual void EndOfEventAction(const G4Event *)
void PrintPrimary(G4PrimaryParticle *pp, G4int ind)
Definition of the RE01TrackerHit class.
const G4String & GetParticleName() const
virtual void BeginOfEventAction(const G4Event *)
G4PrimaryParticle * GetDaughter() const
G4HCofThisEvent * GetHCofThisEvent() const
virtual void ShowTrajectory(std::ostream &os=G4cout) const
G4PrimaryVertex * GetPrimaryVertex(G4int i=0) const
G4ParticleDefinition * GetG4code() const
G4TrajectoryContainer * GetTrajectoryContainer() const
G4EventManager * fpEventManager
G4VHitsCollection * GetHC(G4int i)
G4PrimaryParticle * GetNext() const
static G4SDManager * GetSDMpointer()
G4int GetNumberOfPrimaryVertex() const
G4GLOB_DLL std::ostream G4cout
Definition of the RE01CalorimeterHit class.
static constexpr double GeV
virtual ~RE01EventAction()