34 #include "RunAction.hh"
36 #include "RunMessenger.hh"
37 #include "DetectorConstruction.hh"
38 #include "PrimaryGeneratorAction.hh"
39 #include "HistoManager.hh"
52 fDetector(det), fPrimary(prim), fRun(0), fHistoManager(0),
53 fRunMessenger(0), fPrint(true)
80 if (
isMaster) G4Random::showEngineStatus();
93 if ( analysisManager->IsActive() ) {
94 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 *)
RunMessenger * fRunMessenger
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
void SetPrintFlag(G4bool)
G4ParticleDefinition * GetParticleDefinition() const
Simple detector construction with a box volume placed in a world.