|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
G4NavigationHistory is a class responsible for the maintenance of the history of the path taken through the geometrical hierarchy. More...
#include <G4NavigationHistory.hh>
Public Member Functions | |
| G4NavigationHistory () | |
| ~G4NavigationHistory () | |
| G4NavigationHistory (const G4NavigationHistory &h) | |
| G4NavigationHistory & | operator= (const G4NavigationHistory &h) |
| void | Reset () |
| void | Clear () |
| void | SetFirstEntry (G4VPhysicalVolume *pVol) |
| const G4AffineTransform & | GetTopTransform () const |
| const G4AffineTransform * | GetPtrTopTransform () const |
| G4int | GetTopReplicaNo () const |
| EVolume | GetTopVolumeType () const |
| G4VPhysicalVolume * | GetTopVolume () const |
| std::size_t | GetDepth () const |
| std::size_t | GetMaxDepth () const |
| const G4AffineTransform & | GetTransform (G4int n) const |
| G4int | GetReplicaNo (G4int n) const |
| EVolume | GetVolumeType (G4int n) const |
| G4VPhysicalVolume * | GetVolume (G4int n) const |
| void | NewLevel (G4VPhysicalVolume *pNewMother, EVolume vType=kNormal, G4int nReplica=-1) |
| void | BackLevel () |
| void | BackLevel (G4int n) |
| void * | operator new (std::size_t) |
| void | operator delete (void *aHistory) |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const G4NavigationHistory &h) |
G4NavigationHistory is a class responsible for the maintenance of the history of the path taken through the geometrical hierarchy.
Definition at line 57 of file G4NavigationHistory.hh.
| G4NavigationHistory::G4NavigationHistory | ( | ) |
Constructor. Sizes history lists & resets histories.
Definition at line 40 of file G4NavigationHistory.cc.
Referenced by G4NavigationHistory(), operator<<, and operator=().
| G4NavigationHistory::~G4NavigationHistory | ( | ) |
Default Destructor.
Definition at line 61 of file G4NavigationHistory.cc.
| G4NavigationHistory::G4NavigationHistory | ( | const G4NavigationHistory & | h | ) |
Copy contructor and assigment operator.
Definition at line 46 of file G4NavigationHistory.cc.
|
inline |
Backs up one level in history: from mother to grandmother. It does not erase the history record of the current mother.
Referenced by G4ReplicaNavigation::BackLocate(), and G4ParameterisedNavigation::LevelLocate().
|
inline |
Backs up the specified number of levels in history.
| [in] | n | The history level. |
|
inline |
Clears entries, zeroing transforms, matrices & negating replica history.
Referenced by G4NavigationHistory().
|
inline |
Returns the current history depth.
Referenced by G4ReplicaNavigation::BackLocate(), G4ReplicaNavigation::ComputeSafety(), G4ReplicaNavigation::ComputeStep(), G4RegularNavigation::ComputeStepSkippingEqualMaterials(), and operator<<.
|
inline |
Returns the current maximum size of the history. The maximum depth is set to 16, meaning history entries [0..15] inclusive.
Referenced by G4NavigationHistory().
|
inline |
Returns a pointer to the topmost transformation.
Returns the specified replica number record.
| [in] | n | The history level. |
Referenced by G4ReplicaNavigation::BackLocate(), G4ReplicaNavigation::ComputeSafety(), G4ReplicaNavigation::ComputeStep(), and operator<<.
|
inline |
Returns the topmost replica number record.
Referenced by G4ReplicaNavigation::ComputeSafety(), and G4ReplicaNavigation::ComputeStep().
|
inline |
Returns the topmost transformation.
Referenced by G4RegularNavigation::ComputeStep(), G4ReplicaNavigation::ComputeStep(), G4DrawVoxels::DrawVoxels(), G4PSCylinderSurfaceCurrent::IsSelectedSurface(), G4PSCylinderSurfaceFlux::IsSelectedSurface(), G4PSFlatSurfaceCurrent::IsSelectedSurface(), G4PSFlatSurfaceFlux::IsSelectedSurface(), G4PSSphereSurfaceCurrent::IsSelectedSurface(), G4PSSphereSurfaceFlux::IsSelectedSurface(), G4ParameterisedNavigation::LevelLocate(), G4RegularNavigation::LevelLocate(), G4PSCylinderSurfaceFlux::ProcessHits(), G4PSFlatSurfaceFlux::ProcessHits(), G4PSSphereSurfaceFlux::ProcessHits(), and G4PSVolumeFlux::ProcessHits().
|
inline |
Returns the topmost physical volume pointer.
Referenced by G4NormalNavigation::ComputeSafety(), G4ParameterisedNavigation::ComputeSafety(), G4ReplicaNavigation::ComputeSafety(), G4VoxelNavigation::ComputeSafety(), G4NormalNavigation::ComputeStep(), G4ParameterisedNavigation::ComputeStep(), G4RegularNavigation::ComputeStep(), G4ReplicaNavigation::ComputeStep(), G4VoxelNavigation::ComputeStep(), G4ParameterisedNavigation::LevelLocate(), and G4RegularNavigation::LevelLocate().
|
inline |
Returns the topmost volume type.
|
inline |
Returns the specified transformation.
| [in] | n | The history level. |
Referenced by G4ReplicaNavigation::BackLocate(), G4ReplicaNavigation::ComputeSafety(), G4ReplicaNavigation::ComputeStep(), and G4RegularNavigation::ComputeStepSkippingEqualMaterials().
|
inline |
Returns the specified physical volume pointer.
| [in] | n | The history level. |
Referenced by G4ReplicaNavigation::BackLocate(), G4ReplicaNavigation::ComputeSafety(), G4ReplicaNavigation::ComputeStep(), and operator<<.
Returns the specified volume type.
| [in] | n | The history level. |
Referenced by G4ReplicaNavigation::BackLocate(), G4ReplicaNavigation::ComputeSafety(), G4ReplicaNavigation::ComputeStep(), and operator<<.
|
inline |
Changes the navigation level to that of the new mother.
| [in] | pNewMother | Pointer to the mother physical volume |
| [in] | vType | The volume type. |
| [in] | nReplica | The replica number. |
Referenced by G4ParameterisedNavigation::LevelLocate(), and G4RegularNavigation::LevelLocate().
|
inline |
|
inline |
New/delete override for "G4Allocator".
|
inline |
|
inline |
Resets history. It does clear most entries. Level 0 is preserved.
|
inline |
Setups the initial entry in stack: copies through volume transform and rotarion matrix. The volume 'pVol' is assumed to be unrotated.
|
friend |
Streaming operator.
Definition at line 66 of file G4NavigationHistory.cc.