G4RegularNavigationHelper Class Reference

#include <G4RegularNavigationHelper.hh>


Public Member Functions

 ~G4RegularNavigationHelper ()
void ClearStepLengths ()
void AddStepLength (G4int copyNo, G4double slen)
const std::vector< std::pair<
G4int, G4double > > & 
GetStepLengths ()

Static Public Member Functions

static G4RegularNavigationHelperInstance ()

Data Fields

std::vector< std::pair< G4int,
G4double > > 
theStepLengths


Detailed Description

Definition at line 47 of file G4RegularNavigationHelper.hh.


Constructor & Destructor Documentation

G4RegularNavigationHelper::~G4RegularNavigationHelper (  ) 

Definition at line 58 of file G4RegularNavigationHelper.cc.

00059 {
00060 }


Member Function Documentation

void G4RegularNavigationHelper::AddStepLength ( G4int  copyNo,
G4double  slen 
)

Definition at line 71 of file G4RegularNavigationHelper.cc.

References theStepLengths.

Referenced by G4RegularNavigation::ComputeStepSkippingEqualMaterials().

00072 {
00073   theStepLengths.push_back( std::pair<G4int,G4double>(copyNo,slen) );
00074 }

void G4RegularNavigationHelper::ClearStepLengths (  ) 

Definition at line 64 of file G4RegularNavigationHelper.cc.

References theStepLengths.

Referenced by G4RegularNavigation::ComputeStepSkippingEqualMaterials().

00065 {
00066   theStepLengths.clear();
00067 }

const std::vector< std::pair< G4int, G4double > > & G4RegularNavigationHelper::GetStepLengths (  ) 

Definition at line 78 of file G4RegularNavigationHelper.cc.

References theStepLengths.

Referenced by G4EnergySplitter::GetFirstVoxelID(), G4EnergySplitter::GetLastVoxelID(), G4EnergySplitter::GetVoxelID(), G4ScoreSplittingProcess::PostStepDoIt(), and G4EnergySplitter::SplitEnergyInVolumes().

00079 {
00080   return theStepLengths;
00081 }

G4RegularNavigationHelper * G4RegularNavigationHelper::Instance (  )  [static]

Definition at line 40 of file G4RegularNavigationHelper.cc.

Referenced by G4RegularNavigation::ComputeStepSkippingEqualMaterials(), G4EnergySplitter::GetFirstVoxelID(), G4EnergySplitter::GetLastVoxelID(), G4EnergySplitter::GetVoxelID(), G4ScoreSplittingProcess::PostStepDoIt(), and G4EnergySplitter::SplitEnergyInVolumes().

00041 {
00042   if(theInstance == 0)
00043   {
00044     static G4RegularNavigationHelper helper;
00045     theInstance = &helper;
00046   }
00047   return theInstance;
00048 }


Field Documentation

std::vector< std::pair<G4int,G4double> > G4RegularNavigationHelper::theStepLengths

Definition at line 57 of file G4RegularNavigationHelper.hh.

Referenced by AddStepLength(), ClearStepLengths(), and GetStepLengths().


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:53:17 2013 for Geant4 by  doxygen 1.4.7