38 #include "G4HCofThisEvent.hh"
39 #include "G4VHitsCollection.hh"
53 fTrackerCollID(-1),fCalorimeterCollID(-1),fMuonCollID(-1)
64 if(fTrackerCollID<0||fCalorimeterCollID<0||fMuonCollID<0)
77 if(fTrackerCollID<0||fCalorimeterCollID<0)
return;
92 G4cout <<
"Tracker hits " <<
93 "--------------------------------------------------------------"
95 G4cout << n_hit <<
" hits are stored in RE01TrackerHitsCollection."
98 for(
int i=0;i<n_hit;i++)
99 { (*THC)[i]->Print(); }
105 G4cout <<
"Calorimeter hits "<<
106 "--------------------------------------------------------------"
108 G4cout << n_hit <<
" hits are stored in RE01CalorimeterHitsCollection."
111 for(
int i=0;i<n_hit;i++)
112 { totE += (*CHC)[i]->GetEdep(); }
113 G4cout <<
" Total energy deposition in calorimeter : "
119 G4int n_trajectories = 0;
120 if (trajectoryContainer) n_trajectories = trajectoryContainer->
entries();
123 G4cout <<
"Trajectories in tracker "<<
124 "--------------------------------------------------------------"
126 for(
G4int i=0; i<n_trajectories; i++)
134 G4cout <<
"Primary particles "<<
135 "--------------------------------------------------------------"
138 for(
G4int iv=0;iv<n_vertex;iv++)
142 G4cout <<
"Primary vertex "
144 <<
" at t = " << (pv->
GetT0())/
ns <<
" [ns]" << G4endl;
157 for(
G4int ii=0;ii<=ind;ii++)
163 {
G4cout <<
"is not defined in G4"; }
173 PrintPrimary(daughter,ind+1);
174 daughter = daughter->
GetNext();
G4ThreeVector GetMomentum() const
Definition of the RE01CalorimeterHit class.
G4VHitsCollection * GetHC(G4int i)
G4int GetCollectionID(G4String colName)
virtual void EndOfEventAction(const G4Event *)
CLHEP::Hep3Vector G4ThreeVector
G4int GetNumberOfPrimaryVertex() const
virtual ~RE01EventAction()
virtual void ShowTrajectory(std::ostream &os=G4cout) const
G4TrajectoryContainer * GetTrajectoryContainer() const
const G4String & GetParticleName() const
G4ParticleDefinition * GetG4code() const
G4PrimaryParticle * GetPrimary(G4int i=0) const
G4GLOB_DLL std::ostream G4cout
virtual void BeginOfEventAction(const G4Event *)
G4PrimaryParticle * GetDaughter() const
G4PrimaryVertex * GetPrimaryVertex(G4int i=0) const
Definition of the RE01EventAction class.
G4PrimaryParticle * GetNext() const
Definition of the RE01TrackerHit class.
static G4SDManager * GetSDMpointer()
G4HCofThisEvent * GetHCofThisEvent() const
Definition of the RE01Trajectory class.