31 #include "B1RunAction.hh"
32 #include "B1PrimaryGeneratorAction.hh"
33 #include "B1DetectorConstruction.hh"
83 accumulableManager->
Reset();
92 if (nofEvents == 0)
return;
96 accumulableManager->
Merge();
103 G4double rms = edep2 - edep*edep/nofEvents;
104 if (rms > 0.) rms = std::sqrt(rms);
else rms = 0.;
124 runCondition +=
" of ";
126 runCondition +=
G4BestUnit(particleEnergy,
"Energy");
134 <<
"--------------------End of Global Run-----------------------";
139 <<
"--------------------End of Local Run------------------------";
144 <<
" The run consists of " << nofEvents <<
" "<< runCondition
146 <<
" Cumulated dose per run, in scoring volume : "
149 <<
"------------------------------------------------------------"
virtual void EndOfRunAction(const G4Run *)
const G4VUserPrimaryGeneratorAction * GetUserPrimaryGeneratorAction() const
const G4VUserDetectorConstruction * GetUserDetectorConstruction() const
Detector construction class to define materials and geometry.
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
void SetRandomNumberStore(G4bool flag)
void AddEdep(G4double edep)
const G4String & GetParticleName() const
static G4AccumulableManager * Instance()
static constexpr double microgray
G4LogicalVolume * GetScoringVolume() const
G4bool RegisterAccumulable(G4Accumulable< T > &accumulable)
G4GLOB_DLL std::ostream G4cout
G4int GetNumberOfEvent() const
static constexpr double gray
virtual void BeginOfRunAction(const G4Run *)
static constexpr double milligray
static G4RunManager * GetRunManager()
const G4ParticleGun * GetParticleGun() const
G4ParticleDefinition * GetParticleDefinition() const
G4double GetMass(G4bool forced=false, G4bool propagate=true, G4Material *parMaterial=0)
G4double GetParticleEnergy() const