34 #include "RunAction.hh"
35 #include "DetectorConstruction.hh"
36 #include "PrimaryGeneratorAction.hh"
37 #include "HistoManager.hh"
50 :
G4UserRunAction(),fDetector(det),fPrimary(kin),fRun(0),fHistoManager(0)
74 if (
isMaster) G4Random::showEngineStatus();
87 if ( analysisManager->IsActive() ) {
88 analysisManager->OpenFile();
102 if ( analysisManager->IsActive() ) {
103 analysisManager->Write();
104 analysisManager->CloseFile();
108 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.