43 #define G4MT_fsmanager ((subInstanceManager.offset[instanceID]).fFastSimulationManager)
44 #define G4MT_rsaction ((subInstanceManager.offset[instanceID]).fRegionalSteppingAction)
77 message <<
"The region has NOT been registered !" <<
G4endl
78 <<
" Region " << pName <<
" already existing in store !"
173 message <<
"Logical volume <" << lv->
GetName() <<
">" <<
G4endl
174 <<
"does not have a valid material pointer." <<
G4endl
175 <<
"A logical volume belonging to the (tracking) world volume "
176 <<
"must have a valid material.";
177 G4Exception(
"G4Region::ScanVolumeTree()",
"GeomMgt0002",
182 currentRegion =
this;
183 if (volMat !=
nullptr)
198 if(noDaughters==0)
return;
217 message <<
"The parameterisation for the physical volume <"
219 <<
"does not return a valid material pointer." <<
G4endl
220 <<
"A volume belonging to the (tracking) world volume must "
221 <<
"have a valid material.";
222 G4Exception(
"G4Region::ScanVolumeTree()",
"GeomMgt0002",
225 if (volMat !=
nullptr)
236 for (
size_t rep=0; rep<repNo; ++rep)
242 message <<
"The parameterisation for the physical volume <"
244 <<
"does not return a valid material pointer." <<
G4endl
245 <<
"A volume belonging to the (tracking) world volume must "
246 <<
"have a valid material.";
247 G4Exception(
"G4Region::ScanVolumeTree()",
"GeomMgt0002",
250 if(volMat !=
nullptr)
263 for (
size_t i=0; i<noDaughters; ++i)
407 if (currLog->
GetRegion()==
this) {
return true;}
428 if(parent !=
nullptr)
437 message <<
"Region <" <<
fName <<
"> belongs to more than"
438 <<
" one parent region !" <<
G4endl
439 <<
"A region cannot belong to more than one direct parent region,"
441 <<
"to have fast-simulation assigned.";
442 G4Exception(
"G4Region::ClearFastSimulationManager()",
461 G4Region* parent =
nullptr; unique =
true;
466 for(
auto lvItr=lvStore->cbegin(); lvItr!=lvStore->cend(); ++lvItr)
468 G4int nD = (*lvItr)->GetNoDaughters();
469 G4Region* aR = (*lvItr)->GetRegion();
473 for(
auto iD=0; iD<nD; ++iD)
475 if((*lvItr)->GetDaughter(iD)->GetLogicalVolume()->GetRegion()==
this)
479 if(parent!=aR) { unique =
false; }