41 #include "G4HCofThisEvent.hh"
42 #include "G4VHitsCollection.hh"
97 msg <<
"No hits collection of this event found." <<
G4endl;
123 if ( (!hHC1) || (!hHC2) || (!dHC1) || (!dHC2) || (!ecHC) || (!hcHC) )
126 msg <<
"Some of hits collections of this event not found." <<
G4endl;
142 analysisManager->
FillH1(0, n_hit);
144 for (
G4int i=0;i<n_hit;i++)
148 analysisManager->
FillH2(0, localPos.x(), localPos.y());
152 analysisManager->
FillH1(1, n_hit);
154 for (
G4int i=0;i<n_hit;i++)
158 analysisManager->
FillH2(1, localPos.x(), localPos.y());
170 G4int totalEmHit = 0;
172 for (
G4int i=0;i<80;i++)
186 G4int totalHadHit = 0;
188 for (
G4int i=0;i<20;i++)
220 if ( printModulo==0 || event->
GetEventID() % printModulo != 0)
return;
224 <<
">>> Event " <<
event->GetEventID() <<
" >>> Simulation truth : "
230 G4cout <<
"Hodoscope 1 has " << n_hit <<
" hits." <<
G4endl;
231 for (
G4int i=0;i<n_hit;i++)
239 G4cout <<
"Hodoscope 2 has " << n_hit <<
" hits." <<
G4endl;
240 for (
G4int i=0;i<n_hit;i++)
248 G4cout <<
"Drift Chamber 1 has " << n_hit <<
" hits." <<
G4endl;
249 for (
G4int i2=0;i2<5;i2++)
251 for (
G4int i=0;i<n_hit;i++)
260 G4cout <<
"Drift Chamber 2 has " << n_hit <<
" hits." <<
G4endl;
261 for (
G4int i2=0;i2<5;i2++)
263 for (
G4int i=0;i<n_hit;i++)
271 G4cout <<
"EM Calorimeter has " << totalEmHit <<
" hits. Total Edep is "
275 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 *)
std::vector< G4double > fEmCalEdep
Definition of the B5DriftChamberHit class.
Definition of the B5HadCalorimeterHit class.
std::vector< G4double > fHadCalEdep