46 #include "G4HCofThisEvent.hh"
47 #include "G4VHitsCollection.hh"
58 runaction(Em10RA),verboselevel(0),drawFlag(
"all"),printModulo(10000)
67 delete eventMessenger;
75 if (evtNb%printModulo == 0)
79 G4cout <<
"<<< Event " << evtNb <<
" started." <<
G4endl;
81 if (calorimeterCollID==-1)
115 for (
int i=0;i<n_hit;i++)
116 { totEAbs += (*CHC)[i]->GetEdepAbs();
117 totLAbs += (*CHC)[i]->GetTrakAbs();
121 <<
" Absorber: total energy: " << std::setw(7) <<
123 <<
" total track length: " << std::setw(7) <<
133 G4cout <<
" Ncharged=" << Nch <<
" , Nneutral=" << Nne <<
G4endl;
135 runaction->
AddEP(NE,NP);
136 runaction->
AddTrRef(Transmitted,Reflected) ;
138 runaction->
FillEn(totEAbs) ;
140 nstep=nstepCharged+nstepNeutral ;
153 if (evtNb%printModulo == 0)
173 verboselevel = level ;
Definition of the Em10CalorHit class.
Em10EventAction(Em10RunAction *Em10RA)
Definition of the Em10EventAction class.
G4VHitsCollection * GetHC(G4int i)
G4int GetCollectionID(G4String colName)
Definition of the Em10RunAction class.
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
void FillNbOfSteps(G4double nstep)
void setEventVerbose(G4int level)
G4EventManager * fpEventManager
void CountParticles(G4double, G4double)
G4GLOB_DLL std::ostream G4cout
Definition of the Em10EventActionMessenger class.
void AddEdeps(G4double Eabs)
void BeginOfEventAction(const G4Event *)
static void showEngineStatus()
static void saveEngineStatus(const char filename[]="Config.conf")
static G4SDManager * GetSDMpointer()
void AddTrRef(G4double tr, G4double ref)
void AddnStepsNeutral(G4double ns)
G4HCofThisEvent * GetHCofThisEvent() const
const G4Event * GetConstCurrentEvent()
void AddnStepsCharged(G4double ns)
void AddTrackLength(G4double tlabs)
void AddEP(G4double, G4double)
void EndOfEventAction(const G4Event *)