32 #include "B1PrimaryGeneratorAction.hh"
33 #include "B1DetectorConstruction.hh"
94 if (nofEvents == 0)
return;
102 G4double rms = edep2 - edep*edep/nofEvents;
103 if (rms > 0.) rms = std::sqrt(rms);
else rms = 0.;
123 runCondition +=
" of ";
125 runCondition +=
G4BestUnit(particleEnergy,
"Energy");
143 <<
"\n--------------------End of Global Run-----------------------";
148 <<
"\n--------------------End of Local Run------------------------";
151 <<
"\n The run consists of " << nofEvents <<
" "<< runCondition
152 <<
"\n Dose in scoring volume : "
154 <<
"\n------------------------------------------------------------\n"
static G4RunManager * GetRunManager()
G4int GetNumberOfEvent() const
void ShowResult(std::ostream &out=G4cout)
G4double GetEdepPerEvent(G4int i) const
const G4String & GetParticleName() const
static constexpr double gray
virtual G4Run * GenerateRun()
Detector construction class to define materials and geometry.
G4int GetNumberOfEvent() const
static constexpr double milligray
virtual void EndOfRunAction(const G4Run *)
virtual void BeginOfRunAction(const G4Run *)
G4LogicalVolume * GetScoringVolume() const
Definition of the B1ConRunAction class.
static constexpr double microgray
virtual ~B1ConRunAction()
#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
Definition of the B1ConRun class.
G4GLOB_DLL std::ostream G4cout
G4ConvergenceTester * fdose_tally
void ShowHistory(std::ostream &out=G4cout)
G4ParticleDefinition * GetParticleDefinition() const
const G4VUserDetectorConstruction * GetUserDetectorConstruction() const
G4double GetMass(G4bool forced=false, G4bool propagate=true, G4Material *parMaterial=0)
const G4VUserPrimaryGeneratorAction * GetUserPrimaryGeneratorAction() const