34 #include "RunAction.hh"
36 #include "DetectorConstruction.hh"
37 #include "PrimaryGeneratorAction.hh"
38 #include "HistoManager.hh"
53 fDetector(det), fPrimary(prim), fRun(0), fHistoManager(0)
70 fRun =
new Run(fDetector);
80 G4Random::showEngineStatus();
85 if ( analysisManager->IsActive() ) {
86 analysisManager->OpenFile();
96 if ( fPrimary && nbOfEvents ) {
108 G4cout <<
"\n The run is of " << nbOfEvents <<
" "<< Particle <<
" of "
111 << material->
GetName() <<
" (density: "
126 if ( analysisManager->IsActive() ) {
127 analysisManager->Write();
128 analysisManager->CloseFile();
132 G4Random::showEngineStatus();
void BeginOfRunAction(const G4Run *)
const G4String & GetName() const
G4double GetDensity() const
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
void SetRandomNumberStore(G4bool flag)
virtual G4Run * GenerateRun()
const G4String & GetParticleName() const
double precision function energy(A, Z)
G4GLOB_DLL std::ostream G4cout
G4int GetNumberOfEvent() const
G4Material * GetMaterial()
void EndOfRunAction(const G4Run *)
ExG4HbookAnalysisManager G4AnalysisManager
static G4RunManager * GetRunManager()
G4ParticleGun * GetParticleGun()
G4ParticleDefinition * GetParticleDefinition() const
G4double GetParticleEnergy() const