8 #ifndef GGSRUNMANAGEREXTENSIONS_H_
9 #define GGSRUNMANAGEREXTENSIONS_H_
15 #include "G4GenericMessenger.hh"
16 #include "G4RunManager.hh"
17 #include "G4VUserPrimaryGeneratorAction.hh"
18 #include "Randomize.hh"
180 int _nDiscardedEvsInKilledEvs;
182 bool _isCurrEvKilled;
183 bool _simAgainKilledEv;
185 std::string _stateAtBeginOfEvent;
191 std::string _eventRandomFileBase, _eventRandomFilePath, _restoredFrom;
192 bool _readEventRngStateFromFile, _saveEventRngStateToFile;
194 G4GenericMessenger _messenger, _randomMessenger;
void PrintLogVols()
Print a list of logical volumes in current geometries.
void SetGGSGeneratorAction(G4VUserPrimaryGeneratorAction *userAction)
Replacement of the SetUserAction method.
bool IsKilledAndToBeSimulatedAgain(const G4Event *ev)
Checks if the event has been killed and has to be re-simulated.
Base class for GGS generator actions.
Class with additional functionalities for run managers.
void SimulateAgainKilledEvent()
Simulates again a killed event.
void HandleEventRngStateFile(int runID, int eventID)
Handles the read/write operations to/from the random generator state file for each event...
int GetNDiscardedEvents()
Getter method for number of discarded events.
virtual ~GGSRunManagerExtensions()=default
Destructor.
bool IsCurrentEventKilled()
Getter method for killed event flag.
GGSRunManagerExtensions()
Constructor.
void DumpStatus(G4int eventID)
Prints the status of the random number generator.
const std::string & GetRandomStateAtBeginOfEvent()
Getter method for random engine state at the beginning of the current event.
int GetNKilledEvents()
Getter method for number of killed events.
void BeginOfEventSimulation()
Reset the internal flags at the beginning of event simulation.
void BeginOfEventProcessing()
Method for storing the random engine state and resetting the internal flags at the beginning event ge...
const std::string & RngStateRestoredFrom()
The random engine state file for this event.
void KillEvent()
Kills the current event.