31 #include "B1RunAction.hh"
32 #include "B1PrimaryGeneratorAction.hh"
33 #include "B1DetectorConstruction.hh"
85 if (nofEvents == 0)
return;
87 const B1Run* b1Run =
static_cast<const B1Run*
>(run);
93 G4double rms = edep2 - edep*edep/nofEvents;
94 if (rms > 0.) rms = std::sqrt(rms);
else rms = 0.;
114 runCondition +=
" of ";
116 runCondition +=
G4BestUnit(particleEnergy,
"Energy");
123 <<
"\n--------------------End of Global Run-----------------------";
127 <<
"\n--------------------End of Local Run------------------------";
131 <<
"\n The run consists of " << nofEvents <<
" "<< runCondition
132 <<
"\n Dose in scoring volume : "
134 <<
"\n------------------------------------------------------------\n"
static G4RunManager * GetRunManager()
virtual void BeginOfRunAction(const G4Run *)
virtual G4Run * GenerateRun()
const G4String & GetParticleName() const
static constexpr double gray
Detector construction class to define materials and geometry.
G4int GetNumberOfEvent() const
static constexpr double milligray
G4LogicalVolume * GetScoringVolume() const
virtual void EndOfRunAction(const G4Run *)
static constexpr double microgray
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
G4double GetEdep2() const
void SetRandomNumberStore(G4bool flag)
const G4ParticleGun * GetParticleGun() const
G4double GetParticleEnergy() const
G4GLOB_DLL std::ostream G4cout
G4ParticleDefinition * GetParticleDefinition() const
const G4VUserDetectorConstruction * GetUserDetectorConstruction() const
G4double GetMass(G4bool forced=false, G4bool propagate=true, G4Material *parMaterial=0)
const G4VUserPrimaryGeneratorAction * GetUserPrimaryGeneratorAction() const