|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
G4Region defines a region or a group of regions in the detector geometry setup, sharing properties associated to materials or production cuts which may affect or bias specific physics processes. More...
#include <G4Region.hh>
Static Public Member Functions | |
| static const G4RegionManager & | GetSubInstanceManager () |
| static void | Clean () |
G4Region defines a region or a group of regions in the detector geometry setup, sharing properties associated to materials or production cuts which may affect or bias specific physics processes.
Definition at line 89 of file G4Region.hh.
| G4Region::G4Region | ( | const G4String & | name | ) |
Constructor for G4Region.
| [in] | name | The name of the region. |
Definition at line 65 of file G4Region.cc.
Referenced by ClearFastSimulationManager(), G4Region(), GetParentRegion(), GetWorldPhysical(), operator=(), operator==(), and ScanVolumeTree().
| G4Region::~G4Region | ( | ) |
|
delete |
Copy constructor and assignment operator not allowed.
| G4Region::G4Region | ( | __void__ & | ) |
Fake default constructor for usage restricted to direct object persistency for clients requiring preallocation of memory for persistifiable objects.
Definition at line 93 of file G4Region.cc.
| void G4Region::AddRootLogicalVolume | ( | G4LogicalVolume * | lv, |
| G4bool | search = true ) |
Adds a root logical volume and sets its daughters flags as regions. It also recompute the materials list for the region. Search in the tree can be turned off, assuming the user guarantees the logical volume is NOT already inserted, in which case significant speedup can be achieved in complex flat geometry setups.
| [in] | lv | Pointer to the logical volume to act as root region. |
| [in] | search | To enable/disable search in the tree (default true). |
Definition at line 292 of file G4Region.cc.
| G4bool G4Region::BelongsTo | ( | G4VPhysicalVolume * | pv | ) | const |
Returns whether the region belongs to the given physical volume 'pv' (recursively scanned to the bottom of the hierarchy).
Definition at line 431 of file G4Region.cc.
Referenced by BelongsTo(), and SetWorld().
|
static |
Clears the memory allocated by the MT sub-instance manager.
Definition at line 369 of file G4Region.cc.
Referenced by G4RegionStore::~G4RegionStore().
| void G4Region::ClearFastSimulationManager | ( | ) |
Sets the G4FastSimulationManager pointer to the one for the parent region if it exists, otherwise it sets it to null.
Definition at line 451 of file G4Region.cc.
|
inline |
Resets the material-cuts-couples map.
| void G4Region::ClearMaterialList | ( | ) |
Clears the material list.
Definition at line 379 of file G4Region.cc.
Referenced by UpdateMaterialList().
|
inline |
Finds a G4MaterialCutsCouple which corresponds to the material 'mat' in the region.
Referenced by G4EmUtility::FillFluctFlags().
| G4FastSimulationManager * G4Region::GetFastSimulationManager | ( | ) | const |
Definition at line 139 of file G4Region.cc.
Referenced by ClearFastSimulationManager(), G4CoherentPairProductionPhysics::ConstructProcess(), G4RunManagerKernel::DumpRegion(), and G4VFastSimulationModel::G4VFastSimulationModel().
|
inline |
Referenced by G4VFieldModel::DescribeYourselfTo(), and G4PropagatorInField::FindAndSetFieldManager().
|
inline |
Returns the instance ID for multi-threading.
|
inline |
Referenced by G4RunManagerKernel::DumpRegion().
|
inline |
Referenced by AddRootLogicalVolume(), G4PhysicalVolumeModel::CreateCurrentAttValues(), G4RunManagerKernel::DefineWorldVolume(), G4RegionStore::DeRegister(), G4RunManagerKernel::DumpRegion(), G4EmCalculator::FindCouple(), G4CoherentPairProduction::GetMeanFreePath(), G4ElNeutrinoNucleusProcess::GetMeanFreePath(), G4MuNeutrinoNucleusProcess::GetMeanFreePath(), G4NeutrinoElectronProcess::GetMeanFreePath(), G4NuVacOscProcess::GetMeanFreePath(), G4TauNeutrinoNucleusProcess::GetMeanFreePath(), G4EmBiasingManager::Initialise(), G4EmModelManager::Initialise(), G4PAIModel::Initialise(), G4PAIPhotModel::Initialise(), G4ElNeutrinoNucleusProcess::PostStepDoIt(), G4MuNeutrinoNucleusProcess::PostStepDoIt(), G4NeutrinoElectronProcess::PostStepDoIt(), G4NuVacOscProcess::PostStepDoIt(), G4TauNeutrinoNucleusProcess::PostStepDoIt(), G4VEnergyLossProcess::PreparePhysicsTable(), G4RegionStore::Register(), and G4GlobalFastSimulationManager::ShowSetup().
|
inline |
Methods to return the number of elements in the lists of materials and root logical volumes.
Referenced by G4RunManagerKernel::DumpRegion().
|
inline |
Referenced by G4RunManagerKernel::DumpRegion().
Returns a region that contains this region. Otherwise null returned.
| [out] | unique | Returns true if there is only one parent region containing the current region. |
Definition at line 486 of file G4Region.cc.
Referenced by ClearFastSimulationManager().
|
inline |
| G4UserSteppingAction * G4Region::GetRegionalSteppingAction | ( | ) | const |
Definition at line 157 of file G4Region.cc.
Referenced by G4RunManagerKernel::DumpRegion().
|
inline |
Methods to return iterators to the lists of root logical volumes and materials.
Referenced by G4RunManagerKernel::DumpRegion().
|
static |
Returns the private data instance manager for multi-threading.
Definition at line 55 of file G4Region.cc.
Referenced by G4GeometryWorkspace::G4GeometryWorkspace().
|
inline |
Referenced by G4RunManagerKernel::DumpRegion().
|
inline |
Referenced by G4RunManagerKernel::DumpRegion().
|
inline |
Get method for the world physical volume which the region belongs to. A valid pointer will be assigned by G4RunManagerKernel through the G4RegionStore when the geometry is to be closed. Thus, this pointer may be incorrect at the PreInit and Idle state. If the pointer is null at the proper state, this particular region does not belong to any world (maybe not assigned to any volume, etc.).
Referenced by G4RunManagerKernel::DumpRegion().
|
inline |
Referenced by G4RunManagerKernel::DumpRegion().
|
inline |
Referenced by G4RunManagerKernel::DumpRegion().
|
inline |
Equality operator, defined by address only.
|
inline |
Accessors to flag identifying if a region has been modified (and still cuts needs to be computed) or not.
|
inline |
Method invoked by G4ProductionCutsTable to register the material-cuts couple pair.
| void G4Region::RemoveRootLogicalVolume | ( | G4LogicalVolume * | lv, |
| G4bool | scan = true ) |
Removes a root logical volume and resets its daughters flags as regions. It also recompute the materials list for the region. The flag for scanning the subtree is always enabled by default.
| [in] | lv | Pointer to the logical volume to remove as root region. |
| [in] | scan | To enable/disable scanning the tree (default true). |
Definition at line 341 of file G4Region.cc.
| void G4Region::ScanVolumeTree | ( | G4LogicalVolume * | lv, |
| G4bool | region ) |
Scans recursively the 'lv' logical volume tree, retrieves and places all materials in the list if becoming a region.
Definition at line 171 of file G4Region.cc.
Referenced by AddRootLogicalVolume(), ScanVolumeTree(), and UpdateMaterialList().
| void G4Region::SetFastSimulationManager | ( | G4FastSimulationManager * | fsm | ) |
Setter/getter for the fast-simulation manager. The root logical volume that has the region with G4FastSimulationManager becomes an envelope of fast simulation.
Definition at line 130 of file G4Region.cc.
Referenced by G4FastSimulationManager::G4FastSimulationManager().
|
inline |
Setter/getter for the field manager. The region with assigned field-manager sets the field to the geometrical area associated with it; priority is anyhow given to local fields eventually set to logical volumes.
| void G4Region::SetName | ( | const G4String & | name | ) |
Setter/getter for the region's name.
Definition at line 120 of file G4Region.cc.
|
inline |
Setter/getter for the production cuts values.
Referenced by G4RunManagerKernel::DumpRegion(), and G4VUserPhysicsList::SetParticleCuts().
| void G4Region::SetRegionalSteppingAction | ( | G4UserSteppingAction * | rusa | ) |
Setter/getter methods for the regional user stepping action.
Definition at line 148 of file G4Region.cc.
|
inline |
Setter/getter for the user information data.
|
inline |
Setter/getter for the user-limits associated to a region. Once user-limits are set, it will propagate to the daughter volumes.
| void G4Region::SetWorld | ( | G4VPhysicalVolume * | wp | ) |
Sets the world physical volume if the region belongs to this world. If 'wp' pointer is null, resets the pointer.
Definition at line 411 of file G4Region.cc.
| void G4Region::UpdateMaterialList | ( | ) |
Clears the material list and recomputes it, looping through each root logical volume in the region.
Definition at line 390 of file G4Region.cc.
Referenced by RemoveRootLogicalVolume().
|
inline |
Utility methods to identify if the region is part of the main mass geometry for tracking or part of a parallel geometry.
|
inline |