GGS(GenericGEANT4Simulation)Software  2.99.0
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Macros
GGSMTRunManager Class Reference

A multi-threaded run manager for GGS simulations. More...

#include <GGSMTRunManager.h>

Inheritance diagram for GGSMTRunManager:
Inheritance graph
[legend]
Collaboration diagram for GGSMTRunManager:
Collaboration graph
[legend]

Additional Inherited Members

- Public Member Functions inherited from GGSRunManagerExtensions
 GGSRunManagerExtensions ()
 Constructor.
 
virtual ~GGSRunManagerExtensions ()=default
 Destructor. More...
 
int GetNKilledEvents ()
 Getter method for number of killed events. More...
 
void KillEvent ()
 Kills the current event. More...
 
void SimulateAgainKilledEvent ()
 Simulates again a killed event. More...
 
bool IsCurrentEventKilled ()
 Getter method for killed event flag. More...
 
const std::string & GetRandomStateAtBeginOfEvent ()
 Getter method for random engine state at the beginning of the current event. More...
 
void SetGGSGeneratorAction (G4VUserPrimaryGeneratorAction *userAction)
 Replacement of the SetUserAction method. More...
 
int GetNDiscardedEvents ()
 Getter method for number of discarded events. More...
 
const std::string & RngStateRestoredFrom ()
 The random engine state file for this event. More...
 
- Protected Member Functions inherited from GGSRunManagerExtensions
void BeginOfEventProcessing ()
 Method for storing the random engine state and resetting the internal flags at the beginning event generation. More...
 
void BeginOfEventSimulation ()
 Reset the internal flags at the beginning of event simulation. More...
 
void DumpStatus (G4int eventID)
 Prints the status of the random number generator. More...
 
bool IsKilledAndToBeSimulatedAgain (const G4Event *ev)
 Checks if the event has been killed and has to be re-simulated. More...
 
void PrintLogVols ()
 Print a list of logical volumes in current geometries.
 
void HandleEventRngStateFile (int runID, int eventID)
 Handles the read/write operations to/from the random generator state file for each event. More...
 

Detailed Description

A multi-threaded run manager for GGS simulations.

This class extends the G4 MT run manager interface with some GGS-specific features through the GGSMTRunManagerExtensions interface. Due to the way the run manager instances are handled in multi-threaded Geant4, the extension interface must be queried as:

auto &rme = dynamic_cast<GGSRunManagerExtensions &>(*(G4RunManager::GetRunManager()));

Definition at line 27 of file GGSMTRunManager.h.


The documentation for this class was generated from the following file: