|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
G4NormalNavigation is a concrete utility class for navigation in volumes containing only G4PVPlacement daughter volumes. More...
#include <G4NormalNavigation.hh>
Public Member Functions | |
| G4NormalNavigation () | |
| ~G4NormalNavigation () override | |
| G4bool | LevelLocate (G4NavigationHistory &history, const G4VPhysicalVolume *blockedVol, const G4int blockedNum, const G4ThreeVector &globalPoint, const G4ThreeVector *globalDirection, const G4bool pLocatedOnEdge, G4ThreeVector &localPoint) final |
| G4double | ComputeStep (const G4ThreeVector &localPoint, const G4ThreeVector &localDirection, const G4double currentProposedStepLength, G4double &newSafety, G4NavigationHistory &history, G4bool &validExitNormal, G4ThreeVector &exitNormal, G4bool &exiting, G4bool &entering, G4VPhysicalVolume *(*pBlockedPhysical), G4int &blockedReplicaNo) final |
| G4double | ComputeSafety (const G4ThreeVector &localpoint, const G4NavigationHistory &history, const G4double pMaxLength=DBL_MAX) final |
| G4int | GetVerboseLevel () const final |
| void | SetVerboseLevel (G4int level) final |
| Public Member Functions inherited from G4VNavigation | |
| virtual | ~G4VNavigation ()=default |
| virtual void | RelocateWithinVolume (G4VPhysicalVolume *, const G4ThreeVector &) |
| void | CheckMode (G4bool mode) |
Additional Inherited Members | |
| Protected Attributes inherited from G4VNavigation | |
| G4int | fVerbose = 0 |
| G4bool | fCheck = false |
G4NormalNavigation is a concrete utility class for navigation in volumes containing only G4PVPlacement daughter volumes.
Definition at line 56 of file G4NormalNavigation.hh.
| G4NormalNavigation::G4NormalNavigation | ( | ) |
Constructor and Destructor.
Definition at line 39 of file G4NormalNavigation.cc.
|
override |
Definition at line 48 of file G4NormalNavigation.cc.
|
finalvirtual |
Calculates the isotropic distance to the nearest boundary from the specified point in the local coordinate system. The localpoint utilised must be within the current volume.
| [in] | localPoint | Local point. |
| [in] | history | Navigation history. |
| [in] | pMaxLength | Maximum step length beyond which volumes need not be checked. |
Implements G4VNavigation.
Definition at line 333 of file G4NormalNavigation.cc.
|
finalvirtual |
Computes the length of a step to the next boundary. Does not test against pBlockedPhysical. Identifies the next candidate volume (if a daughter of the current volume), and returns it in: pBlockedPhysical, blockedReplicaNo.
| [in] | localPoint | Local point. |
| [in] | localDirection | Pointer to local direction or null pointer. |
| [in] | currentProposedStepLength | Current proposed step length. |
| [in,out] | newSafety | New safety. |
| [in,out] | history | Navigation history. |
| [in,out] | validExitNormal | Flag to indicate whether exit normal is valid or not. |
| [in,out] | exitNormal | Exit normal. |
| [in,out] | exiting | Flag to indicate whether exiting a volume. |
| [in,out] | entering | Flag to indicate whether entering a volume. |
| [in,out] | pBlockedPhysical | Blocked physical volume that should be ignored in queries. |
| [in,out] | blockedReplicaNo | Copy number for blocked replica volumes. |
localDirection. Implements G4VNavigation.
Definition at line 63 of file G4NormalNavigation.cc.
|
finalvirtual |
Verbosity control.
Reimplemented from G4VNavigation.
Definition at line 398 of file G4NormalNavigation.cc.
|
inlinefinalvirtual |
Searches positioned volumes in mother at current top level of history for volume containing globalPoint. Do not test against blockedVol. If a containing volume is found, push it onto navigation history state and return true, else return false (the point lying in the mother but not any of the daughters).
| [in,out] | history | Navigation history. |
| [in,out] | blockedVol | Blocked volume to be ignored in queries. |
| [in,out] | blockedNum | Copy number for blocked volumes. |
| [in,out] | globalPoint | Point in global coordinates system. |
| [in,out] | globalDirection | Pointer to global direction or null. |
| [in] | pLocatedOnEdge | Flag specifying if point is located on edge. |
| [in,out] | localPoint | Point in local coordinates system. |
Implements G4VNavigation.
|
finalvirtual |
Sets current verbosity level.
Reimplemented from G4VNavigation.
Definition at line 407 of file G4NormalNavigation.cc.
Referenced by LevelLocate().