78 G4cout <<
"WARNING - Attempt to delete the assembly store"
79 <<
" while geometry closed !" <<
G4endl;
90 for(
auto pos=store->cbegin(); pos!=store->cend(); ++pos)
93 if (*pos) {
delete *pos; }
107 fgNotifier = pNotifier;
147 if (fgInstance ==
nullptr)
149 fgInstance = &assemblyStore;
163 if ((*i)->GetAssemblyID() == id) {
return *i; }
167 std::ostringstream message;
168 message <<
"Assembly NOT found in store !" <<
G4endl
169 <<
" Assembly " <<
id <<
" NOT found in store !" <<
G4endl
170 <<
" Returning NULL pointer.";
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4GLOB_DLL std::ostream G4cout
virtual ~G4AssemblyStore()
static G4AssemblyStore * GetInstance()
static void DeRegister(G4AssemblyVolume *pAssembly)
static void SetNotifier(G4VStoreNotifier *pNotifier)
G4AssemblyVolume * GetAssembly(unsigned int id, G4bool verbose=true) const
static void Register(G4AssemblyVolume *pAssembly)
static G4bool IsGeometryClosed()
virtual void NotifyRegistration()=0
virtual void NotifyDeRegistration()=0