Geant4-11
|
#include <G4RegionStore.hh>
Public Member Functions | |
G4Region * | FindOrCreateRegion (const G4String &name) |
G4RegionStore (const G4RegionStore &)=delete | |
const std::map< G4String, std::vector< G4Region * > > & | GetMap () const |
G4Region * | GetRegion (const G4String &name, G4bool verbose=true) const |
G4bool | IsMapValid () const |
G4bool | IsModified () const |
G4RegionStore & | operator= (const G4RegionStore &)=delete |
void | ResetRegionModified () |
void | SetMapValid (G4bool val) |
void | SetWorldVolume () |
void | UpdateMap () |
void | UpdateMaterialList (G4VPhysicalVolume *currentWorld=nullptr) |
virtual | ~G4RegionStore () |
Static Public Member Functions | |
static void | Clean () |
static void | DeRegister (G4Region *pRegion) |
static G4RegionStore * | GetInstance () |
static void | Register (G4Region *pRegion) |
static void | SetNotifier (G4VStoreNotifier *pNotifier) |
Protected Member Functions | |
G4RegionStore () | |
Private Attributes | |
std::map< G4String, std::vector< G4Region * > > | bmap |
G4bool | mvalid = false |
Static Private Attributes | |
static G4RegionStore * | fgInstance = nullptr |
static G4ThreadLocal G4VStoreNotifier * | fgNotifier = nullptr |
static G4ThreadLocal G4bool | locked = false |
Definition at line 58 of file G4RegionStore.hh.
|
virtual |
|
delete |
|
protected |
Definition at line 58 of file G4RegionStore.cc.
|
static |
Definition at line 78 of file G4RegionStore.cc.
References bmap, fgNotifier, G4cout, G4endl, GetInstance(), G4GeometryManager::IsGeometryClosed(), locked, mvalid, G4VNotifier::NotifyDeRegistration(), and pos.
Referenced by ~G4RegionStore().
|
static |
Definition at line 183 of file G4RegionStore.cc.
References bmap, fgNotifier, GetInstance(), G4Region::GetName(), locked, and G4VNotifier::NotifyDeRegistration().
Referenced by G4Region::~G4Region().
Definition at line 315 of file G4RegionStore.cc.
References GetRegion(), and G4InuclParticleNames::name().
|
static |
Definition at line 224 of file G4RegionStore.cc.
References fgInstance.
Referenced by G4EmBiasingManager::ActivateForcedInteraction(), G4EmModelActivator::ActivatePAI(), G4EmBiasingManager::ActivateSecondaryBiasing(), G4LowECapture::BuildPhysicsTable(), G4RunManagerKernel::CheckRegions(), Clean(), G4TheRayTracer::CreateBitMap(), G4EmExtraParameters::DefineRegParamForLoss(), DeRegister(), G4RunManagerKernel::DumpRegion(), G4GDMLParser::ExportRegions(), G4EmCalculator::FindCouple(), G4EmCalculator::FindRegion(), G4EmConfigurator::FindRegion(), G4ProductionCutsTable::G4ProductionCutsTable(), G4Region::G4Region(), G4RunManagerKernel::G4RunManagerKernel(), G4VUserPhysicsList::GetCutValue(), GetRegion(), G4PAIModel::Initialise(), G4PAIPhotModel::Initialise(), G4EmModelManager::Initialise(), G4VAtomDeexcitation::InitialiseAtomicDeexcitation(), IsModified(), Register(), G4RunManager::ReinitializeGeometry(), ResetRegionModified(), G4VUserPhysicsList::SetCutValue(), G4VAtomDeexcitation::SetDeexcitationActiveRegion(), G4ScoringProbe::SetMaterial(), G4Region::SetName(), SetNotifier(), G4VUserPhysicsList::SetParticleCuts(), G4MaterialScanner::SetRegionName(), G4ScoringProbe::SetupGeometry(), SetWorldVolume(), G4GlobalFastSimulationManager::ShowSetup(), G4WorkerThread::UpdateGeometryAndPhysicsVectorFromMaster(), UpdateMap(), UpdateMaterialList(), G4RunManagerKernel::UpdateRegion(), and G4Region::~G4Region().
Definition at line 279 of file G4RegionStore.cc.
References bmap, G4endl, G4Exception(), GetInstance(), JustWarning, mvalid, G4InuclParticleNames::name(), pos, and UpdateMap().
Referenced by G4EmBiasingManager::ActivateForcedInteraction(), G4EmModelActivator::ActivatePAI(), G4EmBiasingManager::ActivateSecondaryBiasing(), G4LowECapture::BuildPhysicsTable(), G4ProductionCutsTable::CheckMaterialCutsCoupleInfo(), G4EmExtraParameters::DefineRegParamForLoss(), G4RunManagerKernel::DumpRegion(), FindOrCreateRegion(), G4EmCalculator::FindRegion(), G4EmConfigurator::FindRegion(), G4Region::G4Region(), G4RunManagerKernel::G4RunManagerKernel(), G4VUserPhysicsList::GetCutValue(), G4EmModelManager::Initialise(), G4VAtomDeexcitation::InitialiseAtomicDeexcitation(), G4VUserPhysicsList::SetCutValue(), G4ScoringProbe::SetMaterial(), G4VUserPhysicsList::SetParticleCuts(), G4MaterialScanner::SetRegionName(), and G4ScoringProbe::SetupGeometry().
|
inline |
G4bool G4RegionStore::IsModified | ( | ) | const |
Definition at line 239 of file G4RegionStore.cc.
References GetInstance().
|
delete |
|
static |
Definition at line 160 of file G4RegionStore.cc.
References bmap, fgNotifier, GetInstance(), G4Region::GetName(), mvalid, and G4VNotifier::NotifyRegistration().
Referenced by G4Region::G4Region().
void G4RegionStore::ResetRegionModified | ( | ) |
Definition at line 253 of file G4RegionStore.cc.
References GetInstance().
|
inline |
Definition at line 91 of file G4RegionStore.hh.
References mvalid.
Referenced by G4Region::SetName().
|
static |
Definition at line 123 of file G4RegionStore.cc.
References fgNotifier, and GetInstance().
void G4RegionStore::SetWorldVolume | ( | ) |
Definition at line 330 of file G4RegionStore.cc.
References G4PhysicalVolumeStore::GetInstance(), GetInstance(), and G4VPhysicalVolume::GetMotherLogical().
void G4RegionStore::UpdateMap | ( | ) |
Definition at line 133 of file G4RegionStore.cc.
References bmap, GetInstance(), anonymous_namespace{G4RegionStore.cc}::mapMutex, mvalid, pos, and G4TemplateAutoLock< _Mutex_t >::unlock().
Referenced by GetRegion().
void G4RegionStore::UpdateMaterialList | ( | G4VPhysicalVolume * | currentWorld = nullptr | ) |
Definition at line 265 of file G4RegionStore.cc.
References GetInstance().
Referenced by G4TheRayTracer::CreateBitMap(), and G4RunManagerKernel::UpdateRegion().
Definition at line 127 of file G4RegionStore.hh.
Referenced by Clean(), DeRegister(), GetMap(), GetRegion(), Register(), and UpdateMap().
|
staticprivate |
Definition at line 123 of file G4RegionStore.hh.
Referenced by GetInstance().
|
staticprivate |
Definition at line 124 of file G4RegionStore.hh.
Referenced by Clean(), DeRegister(), Register(), and SetNotifier().
|
staticprivate |
Definition at line 125 of file G4RegionStore.hh.
Referenced by Clean(), and DeRegister().
|
private |
Definition at line 128 of file G4RegionStore.hh.
Referenced by Clean(), GetRegion(), IsMapValid(), Register(), SetMapValid(), and UpdateMap().