|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
G4SafetyHelper is a helper class for physics processes which require knowledge of the safety, and the step size for the 'mass' geometry. More...
#include <G4SafetyHelper.hh>
Public Member Functions | |
| G4SafetyHelper () | |
| ~G4SafetyHelper ()=default | |
| G4double | CheckNextStep (const G4ThreeVector &position, const G4ThreeVector &direction, const G4double currentMaxStep, G4double &newSafety) |
| G4double | ComputeSafety (const G4ThreeVector &pGlobalPoint, G4double maxRadius=DBL_MAX) |
| void | Locate (const G4ThreeVector &pGlobalPoint, const G4ThreeVector &direction) |
| void | ReLocateWithinVolume (const G4ThreeVector &pGlobalPoint) |
| void | EnableParallelNavigation (G4bool parallel) |
| void | InitialiseNavigator () |
| G4int | SetVerboseLevel (G4int lev) |
| G4VPhysicalVolume * | GetWorldVolume () |
| void | SetCurrentSafety (G4double val, const G4ThreeVector &pos) |
| void | InitialiseHelper () |
G4SafetyHelper is a helper class for physics processes which require knowledge of the safety, and the step size for the 'mass' geometry.
Definition at line 51 of file G4SafetyHelper.hh.
| G4SafetyHelper::G4SafetyHelper | ( | ) |
Constructor and default Destructor.
Definition at line 39 of file G4SafetyHelper.cc.
|
default |
| G4double G4SafetyHelper::CheckNextStep | ( | const G4ThreeVector & | position, |
| const G4ThreeVector & | direction, | ||
| const G4double | currentMaxStep, | ||
| G4double & | newSafety ) |
Computes the distance in the mass geometry.
| [in] | position | Point in global coordinates. |
| [in] | direction | Direction. |
| [in] | currentMaxStep | Proposed step length to nearest boundary. |
| [in,out] | newSafety | New safety. |
Definition at line 76 of file G4SafetyHelper.cc.
| G4double G4SafetyHelper::ComputeSafety | ( | const G4ThreeVector & | pGlobalPoint, |
| G4double | maxRadius = DBL_MAX ) |
Computes the safety distance for all geometries.
| [in] | pGlobalPoint | Point in global coordinates. |
| [in] | maxRadius | Radius of interest (e.g. maximum displacement). Giving this, one can reduce the average computational cost. If not provided, the real isotropic safety is computed. |
Definition at line 97 of file G4SafetyHelper.cc.
|
inline |
Enables navigation in parallel geometries.
| [in] | parallel | Flag to have parallel worlds considered. Alternative is to use single (mass) navigator directly. |
|
inline |
Retrieves the world volume of the mass geometry.
| void G4SafetyHelper::InitialiseHelper | ( | ) |
Initialises all data and navigator.
Definition at line 66 of file G4SafetyHelper.cc.
Referenced by G4ElNeutrinoNucleusProcess::G4ElNeutrinoNucleusProcess(), G4MuNeutrinoNucleusProcess::G4MuNeutrinoNucleusProcess(), G4NeutrinoElectronProcess::G4NeutrinoElectronProcess(), G4TauNeutrinoNucleusProcess::G4TauNeutrinoNucleusProcess(), G4VMscModel::GetParticleChangeForMSC(), and G4VMultipleScattering::PreparePhysicsTable().
| void G4SafetyHelper::InitialiseNavigator | ( | ) |
Checks for new navigator for tracking, and reinitialises pointer.
Definition at line 45 of file G4SafetyHelper.cc.
Referenced by InitialiseHelper().
| void G4SafetyHelper::Locate | ( | const G4ThreeVector & | pGlobalPoint, |
| const G4ThreeVector & | direction ) |
Locates the point for all geometries.
| [in] | pGlobalPoint | Point in global coordinates. |
| [in] | direction | Direction. |
Definition at line 178 of file G4SafetyHelper.cc.
| void G4SafetyHelper::ReLocateWithinVolume | ( | const G4ThreeVector & | pGlobalPoint | ) |
Relocates the point in the volume of interest.
| [in] | pGlobalPoint | Point in global coordinates. |
Definition at line 143 of file G4SafetyHelper.cc.
|
inline |
Sets the safety value for the given position.
| [in] | val | The safety value. |
| [in] | pos | The position. |
Verbosity control.
| [in] | lev | The new verbosity level to enable. |