43 #include "RunAction.hh"
44 #include "PrimaryGeneratorAction.hh"
46 #include "HistoManager.hh"
54 fDetector(0), fRun(0),fHistoManager(0)
90 if ( analysisManager->IsActive() ) {
91 analysisManager->OpenFile();
117 if ( analysisManager->IsActive() ) {
118 analysisManager->Write();
119 analysisManager->CloseFile();
static G4RunManager * GetRunManager()
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 * primary
G4ParticleDefinition * GetParticleDefinition() const
const G4VUserDetectorConstruction * GetUserDetectorConstruction() const
Simple detector construction with a box volume placed in a world.
const G4VUserPrimaryGeneratorAction * GetUserPrimaryGeneratorAction() const