|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
G4FieldManagerStore is a container for all field managers, with functionality derived from std::vector<T>. The class is a singleton. All field managers should be registered with G4FieldManagerStore, and removed on their destruction. Intended principally to enable resetting of 'state' at start of an event. More...
#include <G4FieldManagerStore.hh>
Public Member Functions | |
| void | ClearAllChordFindersState () |
| ~G4FieldManagerStore () | |
Static Public Member Functions | |
| static G4FieldManagerStore * | GetInstance () |
| static G4FieldManagerStore * | GetInstanceIfExist () |
| static void | Register (G4FieldManager *pFieldMan) |
| static void | DeRegister (G4FieldManager *pFieldMan) |
| static void | Clean () |
G4FieldManagerStore is a container for all field managers, with functionality derived from std::vector<T>. The class is a singleton. All field managers should be registered with G4FieldManagerStore, and removed on their destruction. Intended principally to enable resetting of 'state' at start of an event.
Definition at line 57 of file G4FieldManagerStore.hh.
| G4FieldManagerStore::~G4FieldManagerStore | ( | ) |
Destructor: takes care to delete the allocated field managers.
Definition at line 78 of file G4FieldManagerStore.cc.
|
static |
Deletes all managers from the store.
Definition at line 88 of file G4FieldManagerStore.cc.
Referenced by ~G4FieldManagerStore().
| void G4FieldManagerStore::ClearAllChordFindersState | ( | ) |
Loops over all field managers and calls each one to reset step estimate.
Definition at line 139 of file G4FieldManagerStore.cc.
Referenced by G4Transportation::StartTracking().
|
static |
Removes the field manager from the collection.
Definition at line 119 of file G4FieldManagerStore.cc.
Referenced by G4FieldManager::~G4FieldManager().
|
static |
Gets a pointer to the unique G4FieldManagerStore, creating it if necessary.
Definition at line 46 of file G4FieldManagerStore.cc.
Referenced by Clean(), ClearAllChordFindersState(), DeRegister(), Register(), G4ITTransportation::StartTracking(), and G4Transportation::StartTracking().
|
static |
Definition at line 59 of file G4FieldManagerStore.cc.
Referenced by G4RunManagerKernel::~G4RunManagerKernel().
|
static |
Adds the field manager to the collection.
Definition at line 110 of file G4FieldManagerStore.cc.
Referenced by G4FieldManager::G4FieldManager(), and G4FieldManager::G4FieldManager().