ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4Region Class Reference

#include <geant4/tree/geant4-10.6-release/source/geometry/management/include/G4Region.hh>

+ Collaboration diagram for G4Region:

Public Member Functions

 G4Region (const G4String &name)
 
virtual ~G4Region ()
 
 G4Region (const G4Region &)=delete
 
G4Regionoperator= (const G4Region &)=delete
 
G4bool operator== (const G4Region &rg) const
 
void AddRootLogicalVolume (G4LogicalVolume *lv, G4bool search=true)
 
void RemoveRootLogicalVolume (G4LogicalVolume *lv, G4bool scan=true)
 
void SetName (const G4String &name)
 
const G4StringGetName () const
 
void RegionModified (G4bool flag)
 
G4bool IsModified () const
 
void SetProductionCuts (G4ProductionCuts *cut)
 
G4ProductionCutsGetProductionCuts () const
 
std::vector< G4LogicalVolume * >
::iterator 
GetRootLogicalVolumeIterator ()
 
std::vector< G4Material * >
::const_iterator 
GetMaterialIterator () const
 
size_t GetNumberOfMaterials () const
 
size_t GetNumberOfRootVolumes () const
 
void UpdateMaterialList ()
 
void ClearMaterialList ()
 
void ScanVolumeTree (G4LogicalVolume *lv, G4bool region)
 
void SetUserInformation (G4VUserRegionInformation *ui)
 
G4VUserRegionInformationGetUserInformation () const
 
void SetUserLimits (G4UserLimits *ul)
 
G4UserLimitsGetUserLimits () const
 
void ClearMap ()
 
void RegisterMaterialCouplePair (G4Material *mat, G4MaterialCutsCouple *couple)
 
G4MaterialCutsCoupleFindCouple (G4Material *mat)
 
void SetFastSimulationManager (G4FastSimulationManager *fsm)
 
G4FastSimulationManagerGetFastSimulationManager () const
 
void ClearFastSimulationManager ()
 
void SetFieldManager (G4FieldManager *fm)
 
G4FieldManagerGetFieldManager () const
 
G4VPhysicalVolumeGetWorldPhysical () const
 
void SetWorld (G4VPhysicalVolume *wp)
 
G4bool BelongsTo (G4VPhysicalVolume *thePhys) const
 
G4RegionGetParentRegion (G4bool &unique) const
 
void SetRegionalSteppingAction (G4UserSteppingAction *rusa)
 
G4UserSteppingActionGetRegionalSteppingAction () const
 
 G4Region (__void__ &)
 
G4int GetInstanceID () const
 
void UsedInMassGeometry (G4bool val=true)
 
void UsedInParallelGeometry (G4bool val=true)
 
G4bool IsInMassGeometry () const
 
G4bool IsInParallelGeometry () const
 

Static Public Member Functions

static const G4RegionManagerGetSubInstanceManager ()
 
static void Clean ()
 

Private Types

typedef std::vector
< G4LogicalVolume * > 
G4RootLVList
 
typedef std::vector< G4Material * > G4MaterialList
 
typedef std::pair< G4Material
*, G4MaterialCutsCouple * > 
G4MaterialCouplePair
 
typedef std::map< G4Material
*, G4MaterialCutsCouple * > 
G4MaterialCoupleMap
 

Private Member Functions

void AddMaterial (G4Material *aMaterial)
 

Private Attributes

G4String fName
 
G4RootLVList fRootVolumes
 
G4MaterialList fMaterials
 
G4MaterialCoupleMap fMaterialCoupleMap
 
G4bool fRegionMod = true
 
G4ProductionCutsfCut = nullptr
 
G4VUserRegionInformationfUserInfo = nullptr
 
G4UserLimitsfUserLimits = nullptr
 
G4FieldManagerfFieldManager = nullptr
 
G4VPhysicalVolumefWorldPhys = nullptr
 
G4bool fInMassGeometry = false
 
G4bool fInParallelGeometry = false
 
G4int instanceID
 

Static Private Attributes

static G4GEOM_DLL G4RegionManager subInstanceManager
 

Detailed Description

Definition at line 95 of file G4Region.hh.

View newest version in sPHENIX GitHub at line 95 of file G4Region.hh

Member Typedef Documentation

Definition at line 100 of file G4Region.hh.

View newest version in sPHENIX GitHub at line 100 of file G4Region.hh

Definition at line 99 of file G4Region.hh.

View newest version in sPHENIX GitHub at line 99 of file G4Region.hh

typedef std::vector<G4Material*> G4Region::G4MaterialList
private

Definition at line 98 of file G4Region.hh.

View newest version in sPHENIX GitHub at line 98 of file G4Region.hh

typedef std::vector<G4LogicalVolume*> G4Region::G4RootLVList
private

Definition at line 97 of file G4Region.hh.

View newest version in sPHENIX GitHub at line 97 of file G4Region.hh

Constructor & Destructor Documentation

G4Region::G4Region ( const G4String name)

Definition at line 65 of file G4Region.cc.

View newest version in sPHENIX GitHub at line 65 of file G4Region.cc

References G4GeomSplitter< T >::CreateSubInstance(), G4endl, G4Exception(), G4MT_fsmanager, G4MT_rsaction, G4RegionStore::GetInstance(), G4RegionStore::GetRegion(), instanceID, JustWarning, message(), G4RegionStore::Register(), and subInstanceManager.

+ Here is the call graph for this function:

G4Region::~G4Region ( )
virtual

Definition at line 111 of file G4Region.cc.

View newest version in sPHENIX GitHub at line 111 of file G4Region.cc

References G4RegionStore::DeRegister(), fUserInfo, and G4RegionStore::GetInstance().

+ Here is the call graph for this function:

G4Region::G4Region ( const G4Region )
delete
G4Region::G4Region ( __void__ &  )

Definition at line 94 of file G4Region.cc.

View newest version in sPHENIX GitHub at line 94 of file G4Region.cc

References G4GeomSplitter< T >::CreateSubInstance(), G4MT_fsmanager, G4MT_rsaction, G4RegionStore::GetInstance(), instanceID, G4RegionStore::Register(), and subInstanceManager.

+ Here is the call graph for this function:

Member Function Documentation

void G4Region::AddMaterial ( G4Material aMaterial)
inlineprivate

Referenced by ScanVolumeTree().

+ Here is the caller graph for this function:

void G4Region::AddRootLogicalVolume ( G4LogicalVolume lv,
G4bool  search = true 
)

Definition at line 283 of file G4Region.cc.

View newest version in sPHENIX GitHub at line 283 of file G4Region.cc

References fRegionMod, fRootVolumes, pos(), ScanVolumeTree(), and G4LogicalVolume::SetRegionRootFlag().

Referenced by ExTGRCRegionCutsMgr::BuildRegions(), G4RunManagerKernel::CheckRegions(), Par01ParallelWorldForPion::Construct(), Par01DetectorConstruction::Construct(), RE01DetectorConstruction::Construct(), DetectorBarr90::Construct(), DetectorWatase86::Construct(), ExGflash2ParallelWorld::Construct(), DetectorHarris73::Construct(), DetectorSimpleALICE::Construct(), ExGflash1DetectorConstruction::Construct(), ExGflash3DetectorConstruction::Construct(), DetectorALICE06::Construct(), DetectorBari05::Construct(), ExGflashDetectorConstruction::Construct(), CML2Ph_BoxInBox::Construct(), CML2Ph_FullWater::Construct(), HadrontherapyDetectorConstruction::ConstructDetector(), DetectorConstruction::ConstructDetector(), PHG4FCalDetector::ConstructMe(), PHG4RICHDetector::ConstructMe(), PHG4TpcDetector::ConstructTpcGasVolume(), G4RunManagerKernel::DefineWorldVolume(), export_G4Region(), CML2Acc1::flatteningFilter(), CML2Acc2::flatteningFilter(), CML2AccSaturn::flatteningFilter(), G4GDMLParser::ImportRegions(), CML2Acc1::ionizationChamber(), CML2Acc2::ionizationChamber(), CML2Acc1::Jaw1X(), CML2Acc2::Jaw1X(), CML2AccSaturn::Jaw1X(), CML2Acc2::Jaw1Y(), CML2AccSaturn::Jaw1Y(), CML2Acc2::Jaw2X(), CML2Acc2::Jaw2Y(), CML2Acc2::MLC(), CML2Acc1::primaryCollimator(), CML2Acc2::primaryCollimator(), G4ReflectionFactory::ReflectLV(), RE06DetectorConstruction::SetupGeometry(), CexmcSetup::SetupSpecialVolumes(), CML2Acc2::target(), and CML2Acc2::vacuumWindow().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4Region::BelongsTo ( G4VPhysicalVolume thePhys) const

Definition at line 404 of file G4Region.cc.

View newest version in sPHENIX GitHub at line 404 of file G4Region.cc

References G4LogicalVolume::GetDaughter(), G4VPhysicalVolume::GetLogicalVolume(), G4LogicalVolume::GetNoDaughters(), and G4LogicalVolume::GetRegion().

Referenced by G4RunManagerKernel::CheckRegions(), export_G4Region(), and SetWorld().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4Region::Clean ( )
static

Definition at line 346 of file G4Region.cc.

View newest version in sPHENIX GitHub at line 346 of file G4Region.cc

References G4GeomSplitter< T >::FreeSlave(), and subInstanceManager.

Referenced by G4RegionStore::~G4RegionStore().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4Region::ClearFastSimulationManager ( )

Definition at line 424 of file G4Region.cc.

View newest version in sPHENIX GitHub at line 424 of file G4Region.cc

References fName, G4endl, G4Exception(), G4MT_fsmanager, GetFastSimulationManager(), GetParentRegion(), JustWarning, and message().

Referenced by export_G4Region(), and G4FastSimulationManager::~G4FastSimulationManager().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4Region::ClearMap ( )
inline

Referenced by export_G4Region().

+ Here is the caller graph for this function:

void G4Region::ClearMaterialList ( )

Definition at line 356 of file G4Region.cc.

View newest version in sPHENIX GitHub at line 356 of file G4Region.cc

References fMaterials.

Referenced by export_G4Region(), and UpdateMaterialList().

+ Here is the caller graph for this function:

G4MaterialCutsCouple* G4Region::FindCouple ( G4Material mat)
inline

Referenced by export_G4Region(), G4PAIPhotModel::Initialise(), G4PAIModel::Initialise(), and G4LogicalVolume::UpdateMaterial().

+ Here is the caller graph for this function:

G4FastSimulationManager * G4Region::GetFastSimulationManager ( ) const

Definition at line 130 of file G4Region.cc.

View newest version in sPHENIX GitHub at line 130 of file G4Region.cc

References G4MT_fsmanager.

Referenced by ClearFastSimulationManager(), G4GlobalFastSimulationManager::DisplayRegion(), G4RunManagerKernel::DumpRegion(), export_G4Region(), G4VFastSimulationModel::G4VFastSimulationModel(), G4WorkerThread::UpdateGeometryAndPhysicsVectorFromMaster(), and G4FastSimulationManager::~G4FastSimulationManager().

+ Here is the caller graph for this function:

G4FieldManager* G4Region::GetFieldManager ( ) const
inline

Referenced by G4VFieldModel::DescribeYourselfTo(), and G4PropagatorInField::FindAndSetFieldManager().

+ Here is the caller graph for this function:

G4int G4Region::GetInstanceID ( ) const
inline
std::vector<G4Material*>::const_iterator G4Region::GetMaterialIterator ( ) const
inline

Referenced by ExGflash3DetectorConstruction::ConstructSDandField(), G4RunManagerKernel::DumpRegion(), and G4ProductionCutsTable::IsCoupleUsedInTheRegion().

+ Here is the caller graph for this function:

size_t G4Region::GetNumberOfMaterials ( ) const
inline

Referenced by G4RunManagerKernel::DumpRegion(), export_G4Region(), and G4ProductionCutsTable::IsCoupleUsedInTheRegion().

+ Here is the caller graph for this function:

size_t G4Region::GetNumberOfRootVolumes ( ) const
inline

Referenced by G4RunManagerKernel::DumpRegion(), export_G4Region(), and G4RunManagerKernel::SetupDefaultRegion().

+ Here is the caller graph for this function:

G4Region * G4Region::GetParentRegion ( G4bool unique) const

Definition at line 459 of file G4Region.cc.

View newest version in sPHENIX GitHub at line 459 of file G4Region.cc

References G4LogicalVolumeStore::GetInstance().

Referenced by ClearFastSimulationManager(), and export_G4Region().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4UserSteppingAction * G4Region::GetRegionalSteppingAction ( ) const

Definition at line 148 of file G4Region.cc.

View newest version in sPHENIX GitHub at line 148 of file G4Region.cc

References G4MT_rsaction.

Referenced by G4RunManagerKernel::DumpRegion(), PHG4FCalDetector::GetSteppingAction(), PHG4FPbScDetector::GetSteppingAction(), PHG4RICHDetector::GetSteppingAction(), PHG4HcalDetector::GetSteppingAction(), G4SteppingManager::Stepping(), and G4WorkerThread::UpdateGeometryAndPhysicsVectorFromMaster().

+ Here is the caller graph for this function:

std::vector<G4LogicalVolume*>::iterator G4Region::GetRootLogicalVolumeIterator ( )
inline

Referenced by G4RunManagerKernel::DumpRegion(), and G4RunManagerKernel::SetupDefaultRegion().

+ Here is the caller graph for this function:

const G4RegionManager & G4Region::GetSubInstanceManager ( )
static

Definition at line 55 of file G4Region.cc.

View newest version in sPHENIX GitHub at line 55 of file G4Region.cc

References subInstanceManager.

Referenced by G4GeometryWorkspace::G4GeometryWorkspace().

+ Here is the caller graph for this function:

G4VUserRegionInformation* G4Region::GetUserInformation ( ) const
inline

Referenced by G4RunManagerKernel::DumpRegion(), export_G4Region(), and RE01SteppingAction::UserSteppingAction().

+ Here is the caller graph for this function:

G4UserLimits* G4Region::GetUserLimits ( ) const
inline

Referenced by G4RunManagerKernel::DumpRegion(), and export_G4Region().

+ Here is the caller graph for this function:

G4VPhysicalVolume* G4Region::GetWorldPhysical ( ) const
inline

Referenced by G4RunManagerKernel::DumpRegion(), export_G4Region(), and G4FastSimulationManager::ListTitle().

+ Here is the caller graph for this function:

G4bool G4Region::IsInMassGeometry ( ) const
inline

Referenced by G4RunManagerKernel::CheckRegions(), and G4RunManagerKernel::DumpRegion().

+ Here is the caller graph for this function:

G4bool G4Region::IsInParallelGeometry ( ) const
inline

Referenced by G4RunManagerKernel::CheckRegions(), and G4RunManagerKernel::DumpRegion().

+ Here is the caller graph for this function:

G4bool G4Region::IsModified ( ) const
inline

Referenced by export_G4Region().

+ Here is the caller graph for this function:

G4Region& G4Region::operator= ( const G4Region )
delete
G4bool G4Region::operator== ( const G4Region rg) const
inline
void G4Region::RegionModified ( G4bool  flag)
inline

Referenced by G4LogicalVolume::AddDaughter(), G4LogicalVolume::ClearDaughters(), export_G4Region(), and G4LogicalVolume::RemoveDaughter().

+ Here is the caller graph for this function:

void G4Region::RegisterMaterialCouplePair ( G4Material mat,
G4MaterialCutsCouple couple 
)
inline

Referenced by export_G4Region().

+ Here is the caller graph for this function:

void G4Region::RemoveRootLogicalVolume ( G4LogicalVolume lv,
G4bool  scan = true 
)

Definition at line 318 of file G4Region.cc.

View newest version in sPHENIX GitHub at line 318 of file G4Region.cc

References fRegionMod, fRootVolumes, pos(), G4LogicalVolume::SetRegionRootFlag(), and UpdateMaterialList().

Referenced by export_G4Region(), G4RunManagerKernel::SetupDefaultRegion(), XrayFluoDetectorConstruction::UpdateGeometry(), and G4LogicalVolume::~G4LogicalVolume().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4Region::ScanVolumeTree ( G4LogicalVolume lv,
G4bool  region 
)
void G4Region::SetFastSimulationManager ( G4FastSimulationManager fsm)

Definition at line 121 of file G4Region.cc.

View newest version in sPHENIX GitHub at line 121 of file G4Region.cc

References G4MT_fsmanager.

Referenced by export_G4Region(), G4FastSimulationManager::G4FastSimulationManager(), and G4WorkerThread::UpdateGeometryAndPhysicsVectorFromMaster().

+ Here is the caller graph for this function:

void G4Region::SetFieldManager ( G4FieldManager fm)
inline
void G4Region::SetName ( const G4String name)
inline

Referenced by export_G4Region().

+ Here is the caller graph for this function:

void G4Region::SetRegionalSteppingAction ( G4UserSteppingAction rusa)

Definition at line 139 of file G4Region.cc.

View newest version in sPHENIX GitHub at line 139 of file G4Region.cc

References G4MT_rsaction.

Referenced by PHG4FCalDetector::ConstructMe(), PHG4RICHDetector::ConstructMe(), and G4WorkerThread::UpdateGeometryAndPhysicsVectorFromMaster().

+ Here is the caller graph for this function:

void G4Region::SetUserInformation ( G4VUserRegionInformation ui)
inline

Referenced by PHG4PhenixDetector::Construct(), RE01DetectorConstruction::Construct(), and export_G4Region().

+ Here is the caller graph for this function:

void G4Region::SetUserLimits ( G4UserLimits ul)
inline

Referenced by export_G4Region(), and G4GDMLParser::ImportRegions().

+ Here is the caller graph for this function:

void G4Region::SetWorld ( G4VPhysicalVolume wp)

Definition at line 388 of file G4Region.cc.

View newest version in sPHENIX GitHub at line 388 of file G4Region.cc

References BelongsTo(), fWorldPhys, and wp.

Referenced by G4RunManagerKernel::CheckRegions(), and export_G4Region().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4Region::UpdateMaterialList ( )

Definition at line 367 of file G4Region.cc.

View newest version in sPHENIX GitHub at line 367 of file G4Region.cc

References ClearMaterialList(), fRootVolumes, and ScanVolumeTree().

Referenced by export_G4Region(), and RemoveRootLogicalVolume().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4Region::UsedInMassGeometry ( G4bool  val = true)
inline

Referenced by G4RunManagerKernel::CheckRegions().

+ Here is the caller graph for this function:

void G4Region::UsedInParallelGeometry ( G4bool  val = true)
inline

Referenced by G4RunManagerKernel::CheckRegions().

+ Here is the caller graph for this function:

Member Data Documentation

G4ProductionCuts* G4Region::fCut = nullptr
private

Definition at line 258 of file G4Region.hh.

View newest version in sPHENIX GitHub at line 258 of file G4Region.hh

G4FieldManager* G4Region::fFieldManager = nullptr
private

Definition at line 262 of file G4Region.hh.

View newest version in sPHENIX GitHub at line 262 of file G4Region.hh

G4bool G4Region::fInMassGeometry = false
private

Definition at line 266 of file G4Region.hh.

View newest version in sPHENIX GitHub at line 266 of file G4Region.hh

Referenced by ScanVolumeTree().

G4bool G4Region::fInParallelGeometry = false
private

Definition at line 267 of file G4Region.hh.

View newest version in sPHENIX GitHub at line 267 of file G4Region.hh

G4MaterialCoupleMap G4Region::fMaterialCoupleMap
private

Definition at line 255 of file G4Region.hh.

View newest version in sPHENIX GitHub at line 255 of file G4Region.hh

G4MaterialList G4Region::fMaterials
private

Definition at line 254 of file G4Region.hh.

View newest version in sPHENIX GitHub at line 254 of file G4Region.hh

Referenced by ClearMaterialList().

G4String G4Region::fName
private

Definition at line 251 of file G4Region.hh.

View newest version in sPHENIX GitHub at line 251 of file G4Region.hh

Referenced by ClearFastSimulationManager().

G4bool G4Region::fRegionMod = true
private

Definition at line 257 of file G4Region.hh.

View newest version in sPHENIX GitHub at line 257 of file G4Region.hh

Referenced by AddRootLogicalVolume(), and RemoveRootLogicalVolume().

G4RootLVList G4Region::fRootVolumes
private

Definition at line 253 of file G4Region.hh.

View newest version in sPHENIX GitHub at line 253 of file G4Region.hh

Referenced by AddRootLogicalVolume(), RemoveRootLogicalVolume(), and UpdateMaterialList().

G4VUserRegionInformation* G4Region::fUserInfo = nullptr
private

Definition at line 260 of file G4Region.hh.

View newest version in sPHENIX GitHub at line 260 of file G4Region.hh

Referenced by ~G4Region().

G4UserLimits* G4Region::fUserLimits = nullptr
private

Definition at line 261 of file G4Region.hh.

View newest version in sPHENIX GitHub at line 261 of file G4Region.hh

G4VPhysicalVolume* G4Region::fWorldPhys = nullptr
private

Definition at line 264 of file G4Region.hh.

View newest version in sPHENIX GitHub at line 264 of file G4Region.hh

Referenced by SetWorld().

G4int G4Region::instanceID
private

Definition at line 269 of file G4Region.hh.

View newest version in sPHENIX GitHub at line 269 of file G4Region.hh

Referenced by G4Region().

G4RegionManager G4Region::subInstanceManager
staticprivate

Definition at line 271 of file G4Region.hh.

View newest version in sPHENIX GitHub at line 271 of file G4Region.hh

Referenced by Clean(), G4Region(), and GetSubInstanceManager().


The documentation for this class was generated from the following files: