34 #include "RunAction.hh"
36 #include "DetectorConstruction.hh"
37 #include "PrimaryGeneratorAction.hh"
38 #include "HistoManager.hh"
52 fDetector(det), fPrimary(prim), fRun(0), fHistoManager(0)
69 fRun =
new Run(fDetector);
79 if (
isMaster) G4Random::showEngineStatus();
92 if ( analysisManager->IsActive() ) {
93 analysisManager->OpenFile();
105 if ( analysisManager->IsActive() ) {
106 analysisManager->Write();
107 analysisManager->CloseFile();
111 if (
isMaster) G4Random::showEngineStatus();
The primary generator action class with particle gun.
void BeginOfRunAction(const G4Run *)
void SetRandomNumberStore(G4bool flag)
virtual G4Run * GenerateRun()
void EndOfRunAction(const G4Run *)
static G4RunManager * GetRunManager()
G4ParticleGun * GetParticleGun()
G4double energy(const ThreeVector &p, const G4double m)
G4ParticleDefinition * GetParticleDefinition() const
Detector construction class to define materials and geometry.
void SetPrimary(G4ParticleDefinition *particle, G4double energy)
G4CsvAnalysisManager G4AnalysisManager
G4double GetParticleEnergy() const