43 const G4int ExG4EventAction01::fgkDefaultVerboseLevel = 1;
44 const G4int ExG4EventAction01::fgkDefaultPrintModulo = 10000;
50 fVerboseLevel(fgkDefaultVerboseLevel),
51 fPrintModulo(fgkDefaultPrintModulo),
68 G4int eventNumber =
event->GetEventID();
69 if ( eventNumber%fPrintModulo == 0 ) {
70 G4cout <<
"\n---> Begin of Event: " << eventNumber <<
G4endl;
75 if ( fVerboseLevel > 1 ) {
76 G4cout <<
"<<< Event " << eventNumber <<
" started." <<
G4endl;
85 if ( fVerboseLevel > 1 ) {
86 G4cout <<
"<<< Event " <<
event->GetEventID() <<
" ended." <<
G4endl;
94 G4int eventNumber =
event->GetEventID();
95 std::ostringstream fileName;
96 fileName <<
"run" << runNumber <<
"event" << eventNumber <<
".rndm";
99 if ( eventNumber%fPrintModulo == 0 ) {
100 G4cout <<
"\n---> End of Event: " << eventNumber <<
G4endl;
const G4Run * GetCurrentRun() const
virtual void BeginOfEventAction(const G4Event *event)
virtual ~ExG4EventAction01()
G4GLOB_DLL std::ostream G4cout
Definition of the ExG4EventAction01 class.
static void showEngineStatus()
virtual void EndOfEventAction(const G4Event *event)
static G4RunManager * GetRunManager()
static void saveEngineStatus(const char filename[]="Config.conf")