40 #include "RunAction.hh"
41 #include "DetectorConstruction.hh"
42 #include "PrimaryGeneratorAction.hh"
43 #include "HistoManager.hh"
52 :
G4UserRunAction(),fDetector(det), fPrimary(kin), fRun(0), fHistoManager(0)
63 #ifdef G4MULTITHREADED
89 if ( analysisManager->IsActive() ) {
90 analysisManager->OpenFile();
104 if ( analysisManager->IsActive() ) {
105 analysisManager->Write();
106 analysisManager->CloseFile();
110 if (
isMaster) G4Random::showEngineStatus();
void EndOfRunAction(const G4Run *)
virtual G4Run * GenerateRun()
HistoManager * fHistoManager
void BeginOfRunAction(const G4Run *)
The primary generator action class with particle gun.
G4CsvAnalysisManager G4AnalysisManager
DetectorConstruction * fDetector
PrimaryGeneratorAction * fPrimary
void Update(DetectorConstruction *det, bool bForceActivation=false)
static void showEngineStatus()
Simple detector construction with a box volume placed in a world.