Geant4  10.02.p03
G4RegularNavigationHelper Class Reference

#include <G4RegularNavigationHelper.hh>

Collaboration diagram for G4RegularNavigationHelper:

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 ()
 

Public Attributes

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

Private Member Functions

 G4RegularNavigationHelper ()
 

Static Private Attributes

static G4ThreadLocal G4RegularNavigationHelpertheInstance = 0
 

Detailed Description

Definition at line 49 of file G4RegularNavigationHelper.hh.

Constructor & Destructor Documentation

◆ ~G4RegularNavigationHelper()

G4RegularNavigationHelper::~G4RegularNavigationHelper ( )

Definition at line 58 of file G4RegularNavigationHelper.cc.

59 {
60  if (theInstance) { delete theInstance; theInstance=0; }
61 }
static G4ThreadLocal G4RegularNavigationHelper * theInstance

◆ G4RegularNavigationHelper()

G4RegularNavigationHelper::G4RegularNavigationHelper ( )
private

Definition at line 52 of file G4RegularNavigationHelper.cc.

53 {
54 }
Here is the caller graph for this function:

Member Function Documentation

◆ AddStepLength()

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

Definition at line 72 of file G4RegularNavigationHelper.cc.

73 {
74  theStepLengths.push_back( std::pair<G4int,G4double>(copyNo,slen) );
75 }
std::vector< std::pair< G4int, G4double > > theStepLengths
Here is the caller graph for this function:

◆ ClearStepLengths()

void G4RegularNavigationHelper::ClearStepLengths ( )

Definition at line 65 of file G4RegularNavigationHelper.cc.

66 {
67  theStepLengths.clear();
68 }
std::vector< std::pair< G4int, G4double > > theStepLengths
Here is the caller graph for this function:

◆ GetStepLengths()

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

Definition at line 79 of file G4RegularNavigationHelper.cc.

80 {
81  return theStepLengths;
82 }
std::vector< std::pair< G4int, G4double > > theStepLengths
Here is the caller graph for this function:

◆ Instance()

G4RegularNavigationHelper * G4RegularNavigationHelper::Instance ( void  )
static

Definition at line 41 of file G4RegularNavigationHelper.cc.

42 {
43  if(!theInstance)
44  {
46  }
47  return theInstance;
48 }
static G4ThreadLocal G4RegularNavigationHelper * theInstance
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ theInstance

G4ThreadLocal G4RegularNavigationHelper * G4RegularNavigationHelper::theInstance = 0
staticprivate

Definition at line 63 of file G4RegularNavigationHelper.hh.

◆ theStepLengths

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

Definition at line 59 of file G4RegularNavigationHelper.hh.


The documentation for this class was generated from the following files: