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"
const G4VUserPrimaryGeneratorAction * GetUserPrimaryGeneratorAction() const
virtual G4Run * GenerateRun()
G4int GetNumberOfEvent() const
Definition of the B1ConRun class.
const G4VUserDetectorConstruction * GetUserDetectorConstruction() const
G4double GetEdepPerEvent(G4int i) const
Detector construction class to define materials and geometry.
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
void SetRandomNumberStore(G4bool flag)
virtual ~B1ConRunAction()
static const double milligray
const G4String & GetParticleName() const
Run class which extends B1Run.
G4ConvergenceTester * fdose_tally
G4LogicalVolume * GetScoringVolume() const
static const double microgray
G4GLOB_DLL std::ostream G4cout
G4int GetNumberOfEvent() const
static G4RunManager * GetRunManager()
void ShowHistory(std::ostream &out=G4cout)
The primary generator action class with particle gun.
const G4ParticleGun * GetParticleGun() const
G4ParticleDefinition * GetParticleDefinition() const
virtual void EndOfRunAction(const G4Run *)
G4double GetMass(G4bool forced=false, G4bool propagate=true, G4Material *parMaterial=0)
virtual void BeginOfRunAction(const G4Run *)
void ShowResult(std::ostream &out=G4cout)
Definition of the B1ConRunAction class.
G4double GetParticleEnergy() const
G4double GetEdep2() const