|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
G4RegularNavigationHelper is a singleton utility class for navigation on regular structures, providing step lengths counting for each regular voxel of the structure. More...
#include <G4RegularNavigationHelper.hh>
Public Member Functions | |
| ~G4RegularNavigationHelper ()=default | |
| void | ClearStepLengths () |
| void | AddStepLength (G4int copyNo, G4double slen) |
| const std::vector< std::pair< G4int, G4double > > & | GetStepLengths () |
Static Public Member Functions | |
| static G4RegularNavigationHelper * | Instance () |
Friends | |
| class | G4ThreadLocalSingleton< G4RegularNavigationHelper > |
G4RegularNavigationHelper is a singleton utility class for navigation on regular structures, providing step lengths counting for each regular voxel of the structure.
Definition at line 52 of file G4RegularNavigationHelper.hh.
|
default |
Default Destructor.
Stores step in container, associated to given voxel.
| [in] | copyNo | Voxel number. |
| [in] | slen | Value of step length to store. |
Definition at line 48 of file G4RegularNavigationHelper.cc.
Referenced by G4RegularNavigation::ComputeStepSkippingEqualMaterials().
| void G4RegularNavigationHelper::ClearStepLengths | ( | ) |
Resets the state.
Definition at line 41 of file G4RegularNavigationHelper.cc.
Referenced by G4RegularNavigation::ComputeStepSkippingEqualMaterials().
Returns the collection of stored steps per voxels.
Definition at line 56 of file G4RegularNavigationHelper.cc.
Referenced by G4EnergySplitter::GetFirstVoxelID(), G4EnergySplitter::GetLastVoxelID(), G4EnergySplitter::GetVoxelID(), and G4EnergySplitter::SplitEnergyInVolumes().
|
static |
Singleton instance accessor.
Definition at line 33 of file G4RegularNavigationHelper.cc.
Referenced by G4RegularNavigation::ComputeStepSkippingEqualMaterials(), G4EnergySplitter::GetFirstVoxelID(), G4EnergySplitter::GetLastVoxelID(), G4EnergySplitter::GetVoxelID(), G4ScoreSplittingProcess::PostStepDoIt(), and G4EnergySplitter::SplitEnergyInVolumes().
|
friend |
Definition at line 1 of file G4RegularNavigationHelper.hh.