31 #include "ExG4RunAction01.hh"
42 const G4String ExG4RunAction01::fgkDefaultRndmFileName =
"run0.rndm";
49 fRndmFileName(fgkDefaultRndmFileName),
69 if ( fVerboseLevel > 0 ) {
75 G4cout <<
"\n---> rndm status restored from file: " << fRndmFileName <<
G4endl;
76 G4Random::restoreEngineStatus(fRndmFileName);
77 G4Random::showEngineStatus();
90 time_t systime = time(NULL);
91 seeds[0] = (long) systime;
93 G4Random::setTheSeeds(seeds);
94 G4Random::showEngineStatus();
100 std::ostringstream fileName;
101 fileName <<
"run" << runNumber <<
".rndm";
102 G4Random::saveEngineStatus(fileName.str().c_str());
103 G4Random::showEngineStatus();
118 std::ostringstream fileName;
119 fileName <<
"run" << runNumber <<
"end.rndm";
120 G4Random::saveEngineStatus(fileName.str().c_str());
121 G4Random::showEngineStatus();
virtual void BeginOfRunAction(const G4Run *run)
static G4VVisManager * GetConcreteInstance()
void SetRandomNumberStore(G4bool flag)
virtual void EndOfRunAction(const G4Run *run)
static G4UImanager * GetUIpointer()
G4GLOB_DLL std::ostream G4cout
static G4RunManager * GetRunManager()
void SetRandomNumberStoreDir(const G4String &dir)
G4int ApplyCommand(const char *aCommand)