|
Geant4
10.03
|
#include <G4AccumulableManager.hh>
Collaboration diagram for G4AccumulableManager:Public Member Functions | |
| virtual | ~G4AccumulableManager () |
| template<typename T > | |
| G4Accumulable< T > * | CreateAccumulable (const G4String &name, T value, G4MergeMode mergeMode=G4MergeMode::kAddition) |
| template<typename T > | |
| G4Accumulable< T > * | CreateAccumulable (T value, G4MergeMode mergeMode=G4MergeMode::kAddition) |
| template<typename T > | |
| G4bool | RegisterAccumulable (G4Accumulable< T > &accumulable) |
| G4bool | RegisterAccumulable (G4VAccumulable *accumulable) |
| template<typename T > | |
| G4Accumulable< T > * | GetAccumulable (const G4String &name, G4bool warn=true) const |
| G4VAccumulable * | GetAccumulable (const G4String &name, G4bool warn=true) const |
| template<typename T > | |
| G4Accumulable< T > * | GetAccumulable (G4int id, G4bool warn=true) const |
| G4VAccumulable * | GetAccumulable (G4int id, G4bool warn=true) const |
| G4int | GetNofAccumulables () const |
| std::vector< G4VAccumulable * > ::iterator | Begin () |
| std::vector< G4VAccumulable * > ::iterator | End () |
| std::vector< G4VAccumulable * > ::const_iterator | BeginConst () const |
| std::vector< G4VAccumulable * > ::const_iterator | EndConst () const |
| void | Merge () |
| void | Reset () |
Static Public Member Functions | |
| static G4AccumulableManager * | Instance () |
Private Member Functions | |
| G4AccumulableManager (G4bool isMaster) | |
| G4String | GenerateName () const |
| G4bool | CheckName (const G4String &name, const G4String &where) const |
| template<typename T > | |
| G4Accumulable< T > * | GetAccumulable (G4VAccumulable *accumulable, G4bool warn) const |
Private Attributes | |
| const G4String | kBaseName = "accumulable" |
| std::vector< G4VAccumulable * > | fVector |
| std::map< G4String, G4VAccumulable * > | fMap |
| std::vector< G4VAccumulable * > | fAccumulablesToDelete |
Static Private Attributes | |
| static G4AccumulableManager * | fgMasterInstance = nullptr |
| static G4ThreadLocal G4AccumulableManager * | fgInstance = nullptr |
Definition at line 44 of file G4AccumulableManager.hh.
|
virtual |
Definition at line 74 of file G4AccumulableManager.cc.
References fAccumulablesToDelete.
|
private |
Definition at line 56 of file G4AccumulableManager.cc.
References FatalException, fgInstance, fgMasterInstance, and G4Exception().
Referenced by Instance().
Here is the call graph for this function:
Here is the caller graph for this function:| std::vector<G4VAccumulable*>::iterator G4AccumulableManager::Begin | ( | ) |
| std::vector<G4VAccumulable*>::const_iterator G4AccumulableManager::BeginConst | ( | ) | const |
|
private |
Definition at line 98 of file G4AccumulableManager.cc.
References G4String::append(), fMap, G4endl, G4Exception(), and JustWarning.
Referenced by RegisterAccumulable().
Here is the call graph for this function:
Here is the caller graph for this function:| G4Accumulable<T>* G4AccumulableManager::CreateAccumulable | ( | const G4String & | name, |
| T | value, | ||
| G4MergeMode | mergeMode = G4MergeMode::kAddition |
||
| ) |
| G4Accumulable<T>* G4AccumulableManager::CreateAccumulable | ( | T | value, |
| G4MergeMode | mergeMode = G4MergeMode::kAddition |
||
| ) |
| std::vector<G4VAccumulable*>::iterator G4AccumulableManager::End | ( | ) |
| std::vector<G4VAccumulable*>::const_iterator G4AccumulableManager::EndConst | ( | ) | const |
|
private |
Definition at line 87 of file G4AccumulableManager.cc.
References G4String::append(), fVector, kBaseName, and G4InuclParticleNames::name().
Referenced by RegisterAccumulable().
Here is the call graph for this function:
Here is the caller graph for this function:| G4Accumulable<T>* G4AccumulableManager::GetAccumulable | ( | const G4String & | name, |
| G4bool | warn = true |
||
| ) | const |
| G4VAccumulable * G4AccumulableManager::GetAccumulable | ( | const G4String & | name, |
| G4bool | warn = true |
||
| ) | const |
Definition at line 136 of file G4AccumulableManager.cc.
References fMap, G4Exception(), and JustWarning.
Here is the call graph for this function:| G4Accumulable<T>* G4AccumulableManager::GetAccumulable | ( | G4int | id, |
| G4bool | warn = true |
||
| ) | const |
| G4VAccumulable * G4AccumulableManager::GetAccumulable | ( | G4int | id, |
| G4bool | warn = true |
||
| ) | const |
Definition at line 155 of file G4AccumulableManager.cc.
References fVector, G4Exception(), and JustWarning.
Here is the call graph for this function:
|
private |
| G4int G4AccumulableManager::GetNofAccumulables | ( | ) | const |
|
static |
Definition at line 45 of file G4AccumulableManager.cc.
References fgInstance, G4AccumulableManager(), and G4Threading::IsWorkerThread().
Referenced by B1RunAction::B1RunAction(), B3aRunAction::B3aRunAction(), B3aRunAction::BeginOfRunAction(), B1RunAction::BeginOfRunAction(), B3aRunAction::EndOfRunAction(), and B1RunAction::EndOfRunAction().
Here is the call graph for this function:
Here is the caller graph for this function:| void G4AccumulableManager::Merge | ( | ) |
Definition at line 172 of file G4AccumulableManager.cc.
References fgMasterInstance, fVector, G4endl, G4Exception(), G4Threading::IsWorkerThread(), JustWarning, and G4TemplateAutoLock< M, L, U >::unlock().
Referenced by B3aRunAction::EndOfRunAction(), and B1RunAction::EndOfRunAction().
Here is the call graph for this function:
Here is the caller graph for this function:| G4bool G4AccumulableManager::RegisterAccumulable | ( | G4Accumulable< T > & | accumulable | ) |
Referenced by B1RunAction::B1RunAction(), and B3aRunAction::B3aRunAction().
Here is the caller graph for this function:| G4bool G4AccumulableManager::RegisterAccumulable | ( | G4VAccumulable * | accumulable | ) |
Definition at line 116 of file G4AccumulableManager.cc.
References CheckName(), fMap, G4VAccumulable::fName, fVector, GenerateName(), G4VAccumulable::GetName(), and G4InuclParticleNames::name().
Here is the call graph for this function:| void G4AccumulableManager::Reset | ( | ) |
Definition at line 207 of file G4AccumulableManager.cc.
References fVector.
Referenced by B3aRunAction::BeginOfRunAction(), and B1RunAction::BeginOfRunAction().
Here is the caller graph for this function:
|
private |
Definition at line 124 of file G4AccumulableManager.hh.
Referenced by ~G4AccumulableManager().
|
staticprivate |
Definition at line 119 of file G4AccumulableManager.hh.
Referenced by G4AccumulableManager(), and Instance().
|
staticprivate |
Definition at line 118 of file G4AccumulableManager.hh.
Referenced by G4AccumulableManager(), and Merge().
|
private |
Definition at line 123 of file G4AccumulableManager.hh.
Referenced by CheckName(), GetAccumulable(), and RegisterAccumulable().
|
private |
Definition at line 122 of file G4AccumulableManager.hh.
Referenced by GenerateName(), GetAccumulable(), Merge(), RegisterAccumulable(), and Reset().
|
private |
Definition at line 115 of file G4AccumulableManager.hh.
Referenced by GenerateName().