34 #include "RunAction.hh"
35 #include "DetectorConstruction.hh"
36 #include "PrimaryGeneratorAction.hh"
37 #include "HistoManager.hh"
51 :
G4UserRunAction(),fDetector(det), fPrimary(kin), fRun(0), fHistoManager(0)
78 if (
isMaster) G4Random::showEngineStatus();
91 if ( analysisManager->IsActive() ) {
92 analysisManager->OpenFile();
106 if ( analysisManager->IsActive() ) {
107 analysisManager->Write();
108 analysisManager->CloseFile();
112 if (
isMaster) G4Random::showEngineStatus();
void SetPrimary(G4ParticleDefinition *particle, G4double energy)
void EndOfRunAction(const G4Run *)
virtual G4Run * GenerateRun()
G4ParticleGun * GetParticleGun()
HistoManager * fHistoManager
void BeginOfRunAction(const G4Run *)
The primary generator action class with particle gun.
G4CsvAnalysisManager G4AnalysisManager
DetectorConstruction * fDetector
G4double GetParticleEnergy() const
PrimaryGeneratorAction * fPrimary
G4ParticleDefinition * GetParticleDefinition() const
Simple detector construction with a box volume placed in a world.