41 #include "G4HCofThisEvent.hh"
42 #include "G4VHitsCollection.hh"
90 msg <<
"No hits collection of this event found." <<
G4endl;
116 if ( (!hHC1) || (!hHC2) || (!dHC1) || (!dHC2) || (!ecHC) || (!hcHC) )
119 msg <<
"Some of hits collections of this event not found." <<
G4endl;
135 analysisManager->
FillH1(0, n_hit);
137 for (
G4int i=0;i<n_hit;i++)
141 analysisManager->
FillH2(0, localPos.x(), localPos.y());
145 analysisManager->
FillH1(1, n_hit);
147 for (
G4int i=0;i<n_hit;i++)
151 analysisManager->
FillH2(1, localPos.x(), localPos.y());
163 G4int totalEmHit = 0;
165 for (
G4int i=0;i<80;i++)
178 G4int totalHadHit = 0;
180 for (
G4int i=0;i<20;i++)
211 if ( printModulo==0 || event->
GetEventID() % printModulo != 0)
return;
215 <<
">>> Event " <<
event->GetEventID() <<
" >>> Simulation truth : "
221 G4cout <<
"Hodoscope 1 has " << n_hit <<
" hits." <<
G4endl;
222 for (
G4int i=0;i<n_hit;i++)
230 G4cout <<
"Hodoscope 2 has " << n_hit <<
" hits." <<
G4endl;
231 for (
G4int i=0;i<n_hit;i++)
239 G4cout <<
"Drift Chamber 1 has " << n_hit <<
" hits." <<
G4endl;
240 for (
G4int i2=0;i2<5;i2++)
242 for (
G4int i=0;i<n_hit;i++)
251 G4cout <<
"Drift Chamber 2 has " << n_hit <<
" hits." <<
G4endl;
252 for (
G4int i2=0;i2<5;i2++)
254 for (
G4int i=0;i<n_hit;i++)
262 G4cout <<
"EM Calorimeter has " << totalEmHit <<
" hits. Total Edep is "
266 G4cout <<
"Hadron Calorimeter has " << totalHadHit <<
" hits. Total Edep is "
G4ThreeVector GetMomentum() const
Definition of the B5EventAction class.
G4VHitsCollection * GetHC(G4int i)
G4int GetCollectionID(G4String colName)
std::ostringstream G4ExceptionDescription
CLHEP::Hep3Vector G4ThreeVector
void SetPrintProgress(G4int i)
const G4String & GetParticleName() const
G4ParticleDefinition * GetG4code() const
Definition of the B5EmCalorimeterHit class.
G4ThreeVector GetLocalPos() const
G4bool FillNtupleIColumn(G4int id, G4int value)
G4GLOB_DLL std::ostream G4cout
G4bool FillNtupleDColumn(G4int id, G4double value)
Definition of the B5HodoscopeHit class.
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Selection of the analysis technology.
static G4RunManager * GetRunManager()
G4bool FillH2(G4int id, G4double xvalue, G4double yvalue, G4double weight=1.0)
G4bool FillH1(G4int id, G4double value, G4double weight=1.0)
static G4SDManager * GetSDMpointer()
virtual void BeginOfEventAction(const G4Event *)
virtual void EndOfEventAction(const G4Event *)
Definition of the B5DriftChamberHit class.
Definition of the B5HadCalorimeterHit class.