#include <G4RegionStore.hh>
Definition at line 59 of file G4RegionStore.hh.
◆ ~G4RegionStore()
G4RegionStore::~G4RegionStore |
( |
| ) |
|
|
virtual |
◆ G4RegionStore() [1/2]
◆ G4RegionStore() [2/2]
G4RegionStore::G4RegionStore |
( |
| ) |
|
|
protected |
Definition at line 52 of file G4RegionStore.cc.
53 : std::vector<G4Region*>()
54{
55 reserve(20);
56}
◆ Clean()
void G4RegionStore::Clean |
( |
| ) |
|
|
static |
Definition at line 72 of file G4RegionStore.cc.
73{
74
75
77 {
78 G4cout <<
"WARNING - Attempt to delete the region store"
79 <<
" while geometry closed !" <<
G4endl;
80 return;
81 }
82
83
84
85
86 locked = true;
87
88 size_t i=0;
90
91#ifdef G4GEOMETRY_VOXELDEBUG
92 G4cout <<
"Deleting Regions ... ";
93#endif
94
95 for(auto pos=store->cbegin(); pos!=store->cend(); ++pos)
96 {
99 }
100
101#ifdef G4GEOMETRY_VOXELDEBUG
102 if (store->size() < i-1)
103 {
G4cout <<
"No regions deleted. Already deleted by user ?" <<
G4endl; }
104 else
106#endif
107
108 locked = false;
109 store->clear();
110}
G4GLOB_DLL std::ostream G4cout
static G4bool IsGeometryClosed()
static G4RegionStore * GetInstance()
virtual void NotifyDeRegistration()=0
Referenced by ~G4RegionStore().
◆ DeRegister()
void G4RegionStore::DeRegister |
( |
G4Region * |
pRegion | ) |
|
|
static |
◆ FindOrCreateRegion()
Definition at line 235 of file G4RegionStore.cc.
236{
238 if (target == nullptr)
239 {
241 }
242 return target;
243}
G4Region * GetRegion(const G4String &name, G4bool verbose=true) const
◆ GetInstance()
Definition at line 156 of file G4RegionStore.cc.
157{
159 if (fgInstance == nullptr)
160 {
161 fgInstance = &worldStore;
162 }
163 return fgInstance;
164}
Referenced by G4EmBiasingManager::ActivateForcedInteraction(), G4EmBiasingManager::ActivateSecondaryBiasing(), G4VEnergyLossProcess::ActivateSubCutoff(), G4LowECapture::BuildPhysicsTable(), G4RunManagerKernel::CheckRegions(), Clean(), G4TheRayTracer::CreateBitMap(), G4EmExtraParameters::DefineRegParamForLoss(), DeRegister(), G4RunManagerKernel::DumpRegion(), G4EmCalculator::FindCouple(), G4EmCalculator::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(), SetNotifier(), G4VUserPhysicsList::SetParticleCuts(), G4MaterialScanner::SetRegionName(), G4ScoringProbe::SetupGeometry(), SetWorldVolume(), G4GlobalFastSimulationManager::ShowSetup(), G4WorkerThread::UpdateGeometryAndPhysicsVectorFromMaster(), UpdateMaterialList(), G4RunManagerKernel::UpdateRegion(), and G4Region::~G4Region().
◆ GetRegion()
Definition at line 211 of file G4RegionStore.cc.
212{
214 {
215 if ((*i)->GetName() ==
name) {
return *i; }
216 }
217 if (verbose)
218 {
219 std::ostringstream message;
220 message <<
"Region NOT found in store !" <<
G4endl
221 <<
" Region " <<
name <<
" NOT found in store !" <<
G4endl
222 << " Returning NULL pointer.";
225 }
226 return 0;
227}
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
const char * name(G4int ptype)
Referenced by G4EmBiasingManager::ActivateForcedInteraction(), G4EmBiasingManager::ActivateSecondaryBiasing(), G4VEnergyLossProcess::ActivateSubCutoff(), G4LowECapture::BuildPhysicsTable(), G4ProductionCutsTable::CheckMaterialCutsCoupleInfo(), G4EmExtraParameters::DefineRegParamForLoss(), G4RunManagerKernel::DumpRegion(), FindOrCreateRegion(), G4EmCalculator::FindRegion(), G4Region::G4Region(), G4RunManagerKernel::G4RunManagerKernel(), G4VUserPhysicsList::GetCutValue(), G4EmModelManager::Initialise(), G4VAtomDeexcitation::InitialiseAtomicDeexcitation(), G4VUserPhysicsList::SetCutValue(), G4ScoringProbe::SetMaterial(), G4VUserPhysicsList::SetParticleCuts(), G4MaterialScanner::SetRegionName(), and G4ScoringProbe::SetupGeometry().
◆ IsModified()
G4bool G4RegionStore::IsModified |
( |
| ) |
const |
Definition at line 171 of file G4RegionStore.cc.
172{
174 {
175 if ((*i)->IsModified()) { return true; }
176 }
177 return false;
178}
◆ operator=()
◆ Register()
void G4RegionStore::Register |
( |
G4Region * |
pRegion | ) |
|
|
static |
◆ ResetRegionModified()
void G4RegionStore::ResetRegionModified |
( |
| ) |
|
Definition at line 185 of file G4RegionStore.cc.
186{
188 {
189 (*i)->RegionModified(false);
190 }
191}
◆ SetNotifier()
◆ SetWorldVolume()
void G4RegionStore::SetWorldVolume |
( |
| ) |
|
Definition at line 250 of file G4RegionStore.cc.
251{
252
253
255 { (*i)->SetWorld(nullptr); }
256
257
258
261 size_t nPhys = fPhysicalVolumeStore->size();
262 for(size_t iPhys=0; iPhys<nPhys; ++iPhys)
263 {
266
267
268
270 { (*i)->SetWorld(fPhys); }
271 }
272}
static G4PhysicalVolumeStore * GetInstance()
G4LogicalVolume * GetMotherLogical() const
◆ UpdateMaterialList()
The documentation for this class was generated from the following files: