29 #include "RunAction.hh"
30 #include "DetectorConstruction.hh"
31 #include "PhysicsList.hh"
32 #include "PrimaryGeneratorAction.hh"
34 #include "HistoManager.hh"
45 fpDetector(0), fpRun(0),fpHistoManager(0)
81 if ( analysisManager->IsActive() ) {
82 analysisManager->OpenFile();
108 if ( analysisManager->IsActive() ) {
109 analysisManager->Write();
110 analysisManager->CloseFile();
static G4RunManager * GetRunManager()
const DetectorConstruction * fpDetector
void SetPrimary(G4ParticleDefinition *particle, G4double energy)
void EndOfRunAction(const G4Run *)
virtual G4Run * GenerateRun()
G4ParticleGun * GetParticleGun()
void BeginOfRunAction(const G4Run *)
The primary generator action class with particle gun.
G4CsvAnalysisManager G4AnalysisManager
G4double GetParticleEnergy() const
PrimaryGeneratorAction * primary
HistoManager * fpHistoManager
G4ParticleDefinition * GetParticleDefinition() const
const G4VUserDetectorConstruction * GetUserDetectorConstruction() const
Simple detector construction with a box volume placed in a world.
const G4VUserPrimaryGeneratorAction * GetUserPrimaryGeneratorAction() const