34 #include "RunAction.hh"
35 #include "DetectorConstruction.hh"
36 #include "PhysicsList.hh"
37 #include "PrimaryGeneratorAction.hh"
39 #include "HistoManager.hh"
50 fpDetector(0), fpRun(0),fpHistoManager(0)
86 if ( analysisManager->IsActive() ) {
87 analysisManager->OpenFile();
113 if ( analysisManager->IsActive() ) {
114 analysisManager->Write();
115 analysisManager->CloseFile();
PrimaryGeneratorAction class.
const G4VUserPrimaryGeneratorAction * GetUserPrimaryGeneratorAction() const
void BeginOfRunAction(const G4Run *)
HistoManager * fpHistoManager
const G4VUserDetectorConstruction * GetUserDetectorConstruction() const
virtual G4Run * GenerateRun()
void EndOfRunAction(const G4Run *)
ExG4HbookAnalysisManager G4AnalysisManager
static G4RunManager * GetRunManager()
G4ParticleGun * GetParticleGun()
G4double energy(const ThreeVector &p, const G4double m)
PrimaryGeneratorAction * primary
G4ParticleDefinition * GetParticleDefinition() const
Detector construction class to demonstrate various ways of placement.
const DetectorConstruction * fpDetector
void SetPrimary(G4ParticleDefinition *particle, G4double energy)
G4double GetParticleEnergy() const