|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
G4TransportationManager is a singleton class which stores the navigator used by the transportation process to do the geometrical tracking. It also stores a pointer to the propagator used in a (magnetic) field and to the field manager. More...
#include <G4TransportationManager.hh>
Static Public Member Functions | |
| static G4TransportationManager * | GetTransportationManager () |
| static G4TransportationManager * | GetInstanceIfExist () |
| static G4Navigator * | GetFirstTrackingNavigator () |
| static void | SetFirstTrackingNavigator (G4Navigator *nav) |
Static Public Attributes | |
| static constexpr G4int | kMassNavigatorId = 0 |
G4TransportationManager is a singleton class which stores the navigator used by the transportation process to do the geometrical tracking. It also stores a pointer to the propagator used in a (magnetic) field and to the field manager.
Definition at line 60 of file G4TransportationManager.hh.
| G4TransportationManager::~G4TransportationManager | ( | ) |
Destructor. Called internally only by G4RunManagerKernel.
Definition at line 96 of file G4TransportationManager.cc.
| G4int G4TransportationManager::ActivateNavigator | ( | G4Navigator * | aNavigator | ) |
Definition at line 323 of file G4TransportationManager.cc.
Referenced by G4FastSimulationManagerProcess::StartTracking().
| void G4TransportationManager::ClearParallelWorlds | ( | ) |
Clears collection of navigators and deletes the allocated objects associated with parallel worlds. Internal method, called only by the RunManager when the entire geometry is rebuilt from scratch.
Definition at line 469 of file G4TransportationManager.cc.
Referenced by G4WorkerRunManager::InitializeGeometry(), and G4RunManager::ReinitializeGeometry().
| void G4TransportationManager::DeActivateNavigator | ( | G4Navigator * | aNavigator | ) |
Definition at line 355 of file G4TransportationManager.cc.
| void G4TransportationManager::DeRegisterNavigator | ( | G4Navigator * | aNavigator | ) |
Definition at line 285 of file G4TransportationManager.cc.
|
inline |
Accessors for the active navigators.
Referenced by G4OpBoundaryProcess::PostStepDoIt().
|
inline |
Referenced by G4ErrorSurfaceTrajState::BuildErrorMatrix(), G4VFieldModel::DescribeYourselfTo(), G4ITTransportation::DoesGlobalFieldExist(), G4ErrorFreeTrajState::G4ErrorFreeTrajState(), G4ErrorPropagatorManager::InitFieldForBackwards(), G4ErrorMagFieldLimitProcess::PostStepGetPhysicalInteractionLength(), and G4ErrorFreeTrajState::PropagateError().
|
static |
Accessor and modifier for the tracking navigator. Retrieves/sets the first navigator pointer for the 'mass' geometry. It will be used as a template for cloning the tracking navigator of additional threads.
Definition at line 491 of file G4TransportationManager.cc.
|
static |
Retrieve singleton instance pointer.
Definition at line 124 of file G4TransportationManager.cc.
Referenced by G4RunManagerKernel::~G4RunManagerKernel().
| G4Navigator * G4TransportationManager::GetNavigator | ( | const G4String & | worldName | ) |
Returns a navigator associated to either the world volume name or associated to the pointer to the world physical volume. If not existing already, creates it and registers it in the collection.
Definition at line 209 of file G4TransportationManager.cc.
Referenced by G4FastSimulationManagerProcess::StartTracking().
| G4Navigator * G4TransportationManager::GetNavigator | ( | G4VPhysicalVolume * | aWorld | ) |
Definition at line 251 of file G4TransportationManager.cc.
|
inline |
Accessor and modifier for the navigator for tracking.
Referenced by G4RayTrajectory::AppendStep(), G4AdjointPrimaryGenerator::ComputeAccumulatedDepthVectorAlongBackRay(), G4TheRayTracer::CreateBitMap(), G4VFieldModel::DescribeYourselfTo(), G4TrajectoryDrawByOriginVolume::Draw(), G4TrajectoryOriginVolumeFilter::Evaluate(), G4GeometrySampler::G4GeometrySampler(), G4ImportanceConfigurator::G4ImportanceConfigurator(), G4Transportation::G4Transportation(), G4VisManager::G4VisSubThread(), G4XrayReflection::GetMeanFreePath(), GetParallelWorld(), G4SafetyHelper::InitialiseNavigator(), G4FastSimHitMaker::make(), GFlashHitMaker::make(), G4MicroElecSurface::PostStepDoIt(), G4VTransitionRadiation::PostStepDoIt(), G4IStore::SetWorldVolume(), G4WeightWindowStore::SetWorldVolume(), and G4FastSimulationManagerProcess::StartTracking().
|
inline |
|
inline |
Referenced by G4RunManagerKernel::CheckRegions(), G4ToolsSGSceneHandler::EstablishBaseNodes(), G4TouchableUtils::FindTouchableProperties(), G4VisCommandSceneAddLocalAxes::SetNewValue(), G4VisCommandSceneAddVolume::SetNewValue(), G4VisCommandSetTouchable::SetNewValue(), G4VisCommandSetVolumeForField::SetNewValue(), G4VisCommandsTouchable::SetNewValue(), and G4VisCommandViewerCentreOn::SetNewValue().
| G4VPhysicalVolume * G4TransportationManager::GetParallelWorld | ( | const G4String & | worldName | ) |
Returns an exact copy of the tracking world volume. If already existing just returns the pointer.
Definition at line 185 of file G4TransportationManager.cc.
Referenced by G4ParallelWorldPhysics::ConstructProcess(), G4RunManager::ConstructScoringWorlds(), G4ImportanceConfigurator::G4ImportanceConfigurator(), G4VUserParallelWorld::GetWorld(), G4FastSimHitMaker::make(), GFlashHitMaker::make(), G4IStore::SetParallelWorldVolume(), and G4WeightWindowStore::SetParallelWorldVolume().
|
inline |
Accessors and modifiers for field handling.
Referenced by G4DecayWithSpin::AtRestDoIt(), G4ITTransportation::G4ITTransportation(), G4ITTransportation::G4ITTransportation(), G4SynchrotronRadiation::G4SynchrotronRadiation(), G4SynchrotronRadiationInMat::G4SynchrotronRadiationInMat(), G4Transportation::G4Transportation(), and G4TrackingMessenger::SetNewValue().
|
inline |
Returns the pointer to the navigation safety helper instance.
Referenced by G4ElNeutrinoNucleusProcess::G4ElNeutrinoNucleusProcess(), G4MuNeutrinoNucleusProcess::G4MuNeutrinoNucleusProcess(), G4NeutrinoElectronProcess::G4NeutrinoElectronProcess(), G4TauNeutrinoNucleusProcess::G4TauNeutrinoNucleusProcess(), G4Transportation::G4Transportation(), G4VEnergyLossProcess::G4VEnergyLossProcess(), G4VMscModel::GetParticleChangeForMSC(), and G4VMultipleScattering::PreparePhysicsTable().
|
static |
Retrieve the static instance.
Definition at line 110 of file G4TransportationManager.cc.
Referenced by G4Scene::AddWorldIfEmpty(), G4RayTrajectory::AppendStep(), G4DecayWithSpin::AtRestDoIt(), G4ErrorSurfaceTrajState::BuildErrorMatrix(), G4RunManagerKernel::CheckRegions(), G4VPrimaryGenerator::CheckVertexInsideWorld(), G4AdjointPrimaryGenerator::ComputeAccumulatedDepthVectorAlongBackRay(), G4ParallelWorldPhysics::ConstructProcess(), G4MTRunManager::ConstructScoringWorlds(), G4RunManager::ConstructScoringWorlds(), G4SubEvtRunManager::ConstructScoringWorlds(), G4TaskRunManager::ConstructScoringWorlds(), G4WorkerRunManager::ConstructScoringWorlds(), G4TheRayTracer::CreateBitMap(), G4RunManagerKernel::DefineWorldVolume(), G4VFieldModel::DescribeYourselfTo(), G4ITTransportation::DoesGlobalFieldExist(), G4TrajectoryDrawByOriginVolume::Draw(), G4DrawVoxels::DrawVoxels(), G4CoupledTransportation::EndTracking(), G4ToolsSGSceneHandler::EstablishBaseNodes(), G4TrajectoryOriginVolumeFilter::Evaluate(), G4TouchableUtils::FindTouchableProperties(), G4ElNeutrinoNucleusProcess::G4ElNeutrinoNucleusProcess(), G4ErrorFreeTrajState::G4ErrorFreeTrajState(), G4FastSimulationManagerProcess::G4FastSimulationManagerProcess(), G4FastSimulationManagerProcess::G4FastSimulationManagerProcess(), G4FastSimulationManagerProcess::G4FastSimulationManagerProcess(), G4GeometrySampler::G4GeometrySampler(), G4ImportanceConfigurator::G4ImportanceConfigurator(), G4ImportanceProcess::G4ImportanceProcess(), G4ITTransportation::G4ITTransportation(), G4ITTransportation::G4ITTransportation(), G4MultiNavigator::G4MultiNavigator(), G4MuNeutrinoNucleusProcess::G4MuNeutrinoNucleusProcess(), G4NeutrinoElectronProcess::G4NeutrinoElectronProcess(), G4ParallelGeometriesLimiterProcess::G4ParallelGeometriesLimiterProcess(), G4ParallelWorldProcess::G4ParallelWorldProcess(), G4ParallelWorldScoringProcess::G4ParallelWorldScoringProcess(), G4SteppingManager::G4SteppingManager(), G4SynchrotronRadiation::G4SynchrotronRadiation(), G4SynchrotronRadiationInMat::G4SynchrotronRadiationInMat(), G4TauNeutrinoNucleusProcess::G4TauNeutrinoNucleusProcess(), G4Transportation::G4Transportation(), G4VEnergyLossProcess::G4VEnergyLossProcess(), G4VisManager::G4VisSubThread(), G4WeightCutOffProcess::G4WeightCutOffProcess(), G4WeightWindowProcess::G4WeightWindowProcess(), G4VisManager::GeometryHasChanged(), G4XrayReflection::GetMeanFreePath(), G4VMscModel::GetParticleChangeForMSC(), G4VUserParallelWorld::GetWorld(), G4ErrorPropagatorManager::InitFieldForBackwards(), G4TDNAOneStepThermalizationModel< MODEL >::Initialise(), G4SafetyHelper::InitialiseNavigator(), G4BOptnForceCommonTruncatedExp::Initialize(), G4ErrorRunManagerHelper::InitializeGeometry(), G4WorkerRunManager::InitializeGeometry(), G4FastSimulationManager::ListTitle(), G4FastSimHitMaker::make(), GFlashHitMaker::make(), G4MicroElecSurface::PostStepDoIt(), G4OpBoundaryProcess::PostStepDoIt(), G4UCNBoundaryProcess::PostStepDoIt(), G4VTransitionRadiation::PostStepDoIt(), G4ErrorMagFieldLimitProcess::PostStepGetPhysicalInteractionLength(), G4VMultipleScattering::PreparePhysicsTable(), G4ErrorFreeTrajState::PropagateError(), G4RunManager::ReinitializeGeometry(), G4TrackingMessenger::SetNewValue(), G4VisCommandSceneAddLocalAxes::SetNewValue(), G4VisCommandSceneAddVolume::SetNewValue(), G4VisCommandSetTouchable::SetNewValue(), G4VisCommandSetVolumeForField::SetNewValue(), G4VisCommandsTouchable::SetNewValue(), G4VisCommandViewerCentreOn::SetNewValue(), G4IStore::SetParallelWorldVolume(), G4WeightWindowStore::SetParallelWorldVolume(), G4RTPrimaryGeneratorAction::SetUp(), G4IStore::SetWorldVolume(), G4WeightWindowStore::SetWorldVolume(), G4GlobalFastSimulationManager::ShowSetup(), G4FastSimulationManagerProcess::StartTracking(), G4RunManagerKernel::WorkerDefineWorldVolume(), and G4RunManagerKernel::WorkerUpdateWorldVolume().
|
inline |
Accessors for the registered worlds.
Referenced by G4RunManagerKernel::CheckRegions(), G4MTRunManager::ConstructScoringWorlds(), G4SubEvtRunManager::ConstructScoringWorlds(), G4TaskRunManager::ConstructScoringWorlds(), G4ToolsSGSceneHandler::EstablishBaseNodes(), G4TouchableUtils::FindTouchableProperties(), G4VisCommandSceneAddLocalAxes::SetNewValue(), G4VisCommandSceneAddVolume::SetNewValue(), G4VisCommandSetTouchable::SetNewValue(), G4VisCommandSetVolumeForField::SetNewValue(), G4VisCommandsTouchable::SetNewValue(), and G4VisCommandViewerCentreOn::SetNewValue().
| void G4TransportationManager::InactivateAll | ( | ) |
Definition at line 385 of file G4TransportationManager.cc.
Referenced by G4CoupledTransportation::EndTracking().
| G4VPhysicalVolume * G4TransportationManager::IsWorldExisting | ( | const G4String & | worldName | ) |
Verifies existance or not of an istance of the world volume with same name in the collection.
Definition at line 406 of file G4TransportationManager.cc.
Referenced by G4RunManager::ConstructScoringWorlds(), G4WorkerRunManager::ConstructScoringWorlds(), GetNavigator(), GetParallelWorld(), and G4RunManagerKernel::WorkerUpdateWorldVolume().
| G4bool G4TransportationManager::RegisterWorld | ( | G4VPhysicalVolume * | aWorld | ) |
Methods for handling navigators. Navigator for tracking is always the first (i.e. position 0 in the collection) and cannot be de-registered.
Definition at line 425 of file G4TransportationManager.cc.
Referenced by GetParallelWorld(), G4RunManagerKernel::WorkerDefineWorldVolume(), and G4RunManagerKernel::WorkerUpdateWorldVolume().
| void G4TransportationManager::SetFieldManager | ( | G4FieldManager * | newFieldManager | ) |
Definition at line 134 of file G4TransportationManager.cc.
|
static |
Definition at line 501 of file G4TransportationManager.cc.
| void G4TransportationManager::SetNavigatorForTracking | ( | G4Navigator * | newNavigator | ) |
Definition at line 154 of file G4TransportationManager.cc.
|
inline |
|
inline |
Sets the world volume for tracking. This method is to be invoked by G4RunManagerKernel.
Referenced by G4RunManagerKernel::DefineWorldVolume(), and G4RunManagerKernel::WorkerDefineWorldVolume().
|
staticconstexpr |
Navigator identifier. Accessed by G4CoupledTransportation.
Definition at line 171 of file G4TransportationManager.hh.
Referenced by G4CoupledTransportation::AlongStepGetPhysicalInteractionLength(), and G4CoupledTransportation::PostStepDoIt().