Geant4  10.03
G4Region Class Reference

#include <G4Region.hh>

+ Collaboration diagram for G4Region:

Public Member Functions

 G4Region (const G4String &name)
 
virtual ~G4Region ()
 
G4bool operator== (const G4Region &rg) const
 
void AddRootLogicalVolume (G4LogicalVolume *lv)
 
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 ()
 

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

 G4Region (const G4Region &)
 
G4Regionoperator= (const G4Region &)
 
void AddMaterial (G4Material *aMaterial)
 

Private Attributes

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

Static Private Attributes

static G4GEOM_DLL G4RegionManager subInstanceManager
 

Detailed Description

Definition at line 99 of file G4Region.hh.

Member Typedef Documentation

Definition at line 104 of file G4Region.hh.

Definition at line 103 of file G4Region.hh.

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

Definition at line 102 of file G4Region.hh.

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

Definition at line 101 of file G4Region.hh.

Constructor & Destructor Documentation

G4Region::G4Region ( const G4String name)

Definition at line 68 of file G4Region.cc.

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

+ Here is the call graph for this function:

G4Region::~G4Region ( )
virtual

Definition at line 118 of file G4Region.cc.

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

+ Here is the call graph for this function:

G4Region::G4Region ( __void__ &  )

Definition at line 99 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:

G4Region::G4Region ( const G4Region )
private

Member Function Documentation

void G4Region::AddMaterial ( G4Material aMaterial)
inlineprivate

Referenced by ScanVolumeTree().

+ Here is the caller graph for this function:

G4bool G4Region::BelongsTo ( G4VPhysicalVolume thePhys) const

Definition at line 398 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::ClearFastSimulationManager ( )

Definition at line 418 of file G4Region.cc.

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

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 349 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 137 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 G4MagneticFieldModel::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 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 453 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 155 of file G4Region.cc.

References G4MT_rsaction.

Referenced by G4RunManagerKernel::DumpRegion(), 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 58 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 )
private
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 319 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::SetFastSimulationManager ( G4FastSimulationManager fsm)

Definition at line 128 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 146 of file G4Region.cc.

References G4MT_rsaction.

Referenced by G4WorkerThread::UpdateGeometryAndPhysicsVectorFromMaster().

+ Here is the caller graph for this function:

void G4Region::SetUserInformation ( G4VUserRegionInformation ui)
inline

Referenced by 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 382 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 360 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
private

Definition at line 255 of file G4Region.hh.

G4FieldManager* G4Region::fFieldManager
private

Definition at line 259 of file G4Region.hh.

G4bool G4Region::fInMassGeometry
private

Definition at line 263 of file G4Region.hh.

Referenced by ScanVolumeTree().

G4bool G4Region::fInParallelGeometry
private

Definition at line 264 of file G4Region.hh.

G4MaterialCoupleMap G4Region::fMaterialCoupleMap
private

Definition at line 252 of file G4Region.hh.

G4MaterialList G4Region::fMaterials
private

Definition at line 251 of file G4Region.hh.

Referenced by ClearMaterialList().

G4String G4Region::fName
private

Definition at line 248 of file G4Region.hh.

Referenced by ClearFastSimulationManager().

G4bool G4Region::fRegionMod
private

Definition at line 254 of file G4Region.hh.

Referenced by AddRootLogicalVolume(), and RemoveRootLogicalVolume().

G4RootLVList G4Region::fRootVolumes
private

Definition at line 250 of file G4Region.hh.

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

G4VUserRegionInformation* G4Region::fUserInfo
private

Definition at line 257 of file G4Region.hh.

Referenced by ~G4Region().

G4UserLimits* G4Region::fUserLimits
private

Definition at line 258 of file G4Region.hh.

G4VPhysicalVolume* G4Region::fWorldPhys
private

Definition at line 261 of file G4Region.hh.

Referenced by SetWorld().

G4int G4Region::instanceID
private

Definition at line 266 of file G4Region.hh.

Referenced by G4Region().

G4RegionManager G4Region::subInstanceManager
staticprivate

Definition at line 268 of file G4Region.hh.

Referenced by G4Region(), and GetSubInstanceManager().


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