34 #include "RunAction.hh"
36 #include "PrimaryGeneratorAction.hh"
37 #include "HistoManager.hh"
50 fPrimary(kin), fRun(0), fHistoManager(0)
83 if ( analysisManager->IsActive() ) {
84 analysisManager->OpenFile();
101 if ( analysisManager->IsActive() ) {
102 analysisManager->Write();
103 analysisManager->CloseFile();
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
void SetPrimary(G4ParticleDefinition *particle, G4double energy)
G4CsvAnalysisManager G4AnalysisManager
G4double GetParticleEnergy() const