34 #include "RunAction.hh"
35 #include "PrimaryGeneratorAction.hh"
36 #include "HistoManager.hh"
46 :
G4UserRunAction(), fDetector(det), fPrimary(kin), fRun(0), fHistoManager(0)
72 if (
isMaster) G4Random::showEngineStatus();
85 if ( analysisManager->IsActive() ) {
86 analysisManager->OpenFile();
98 if ( analysisManager->IsActive() ) {
99 analysisManager->Write();
100 analysisManager->CloseFile();
104 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.