Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4NavigationHistory Class Reference

#include <G4NavigationHistory.hh>

Public Member Functions

 G4NavigationHistory ()
 
 ~G4NavigationHistory ()
 
 G4NavigationHistory (const G4NavigationHistory &h)
 
G4NavigationHistoryoperator= (const G4NavigationHistory &h)
 
void Reset ()
 
void Clear ()
 
void SetFirstEntry (G4VPhysicalVolume *pVol)
 
const G4AffineTransformGetTopTransform () const
 
const G4AffineTransformGetPtrTopTransform () const
 
G4int GetTopReplicaNo () const
 
EVolume GetTopVolumeType () const
 
G4VPhysicalVolumeGetTopVolume () const
 
G4int GetDepth () const
 
G4int GetMaxDepth () const
 
const G4AffineTransformGetTransform (G4int n) const
 
G4int GetReplicaNo (G4int n) const
 
EVolume GetVolumeType (G4int n) const
 
G4VPhysicalVolumeGetVolume (G4int n) const
 
void NewLevel (G4VPhysicalVolume *pNewMother, EVolume vType=kNormal, G4int nReplica=-1)
 
void BackLevel ()
 
void BackLevel (G4int n)
 
voidoperator new (size_t)
 
void operator delete (void *aHistory)
 

Friends

std::ostream & operator<< (std::ostream &os, const G4NavigationHistory &h)
 

Detailed Description

Definition at line 57 of file G4NavigationHistory.hh.

Constructor & Destructor Documentation

G4NavigationHistory::G4NavigationHistory ( )

Definition at line 41 of file G4NavigationHistory.cc.

42  : fStackDepth(0)
43 {
45  Clear();
46 }
std::vector< G4NavigationLevel > * GetLevels()
static G4NavigationHistoryPool * GetInstance()

Here is the call graph for this function:

G4NavigationHistory::~G4NavigationHistory ( )

Definition at line 63 of file G4NavigationHistory.cc.

64 {
66 }
void DeRegister(std::vector< G4NavigationLevel > *pLevels)
static G4NavigationHistoryPool * GetInstance()

Here is the call graph for this function:

G4NavigationHistory::G4NavigationHistory ( const G4NavigationHistory h)

Definition at line 48 of file G4NavigationHistory.cc.

49 {
51  if( GetMaxDepth() != h.GetMaxDepth() )
52  {
53  fNavHistory->resize( h.GetMaxDepth() );
54  }
55 
56  for ( G4int ilev=h.fStackDepth; ilev>=0; --ilev )
57  {
58  (*fNavHistory)[ilev] = (*h.fNavHistory)[ilev];
59  }
60  fStackDepth=h.fStackDepth;
61 }
G4int GetMaxDepth() const
int G4int
Definition: G4Types.hh:78
std::vector< G4NavigationLevel > * GetLevels()
static G4NavigationHistoryPool * GetInstance()

Here is the call graph for this function:

Member Function Documentation

void G4NavigationHistory::BackLevel ( )
inline

Here is the caller graph for this function:

void G4NavigationHistory::BackLevel ( G4int  n)
inline
void G4NavigationHistory::Clear ( )
inline

Here is the caller graph for this function:

G4int G4NavigationHistory::GetDepth ( ) const
inline

Here is the caller graph for this function:

G4int G4NavigationHistory::GetMaxDepth ( ) const
inline

Here is the caller graph for this function:

const G4AffineTransform* G4NavigationHistory::GetPtrTopTransform ( ) const
inline
G4int G4NavigationHistory::GetReplicaNo ( G4int  n) const
inline

Here is the caller graph for this function:

G4int G4NavigationHistory::GetTopReplicaNo ( ) const
inline

Here is the caller graph for this function:

const G4AffineTransform& G4NavigationHistory::GetTopTransform ( ) const
inline

Here is the caller graph for this function:

G4VPhysicalVolume* G4NavigationHistory::GetTopVolume ( ) const
inline

Here is the caller graph for this function:

EVolume G4NavigationHistory::GetTopVolumeType ( ) const
inline

Here is the caller graph for this function:

const G4AffineTransform& G4NavigationHistory::GetTransform ( G4int  n) const
inline

Here is the caller graph for this function:

G4VPhysicalVolume* G4NavigationHistory::GetVolume ( G4int  n) const
inline

Here is the caller graph for this function:

EVolume G4NavigationHistory::GetVolumeType ( G4int  n) const
inline

Here is the caller graph for this function:

void G4NavigationHistory::NewLevel ( G4VPhysicalVolume pNewMother,
EVolume  vType = kNormal,
G4int  nReplica = -1 
)
inline

Here is the caller graph for this function:

void G4NavigationHistory::operator delete ( void aHistory)
inline
void* G4NavigationHistory::operator new ( size_t  )
inline
G4NavigationHistory& G4NavigationHistory::operator= ( const G4NavigationHistory h)
inline
void G4NavigationHistory::Reset ( )
inline
void G4NavigationHistory::SetFirstEntry ( G4VPhysicalVolume pVol)
inline

Here is the caller graph for this function:

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const G4NavigationHistory h 
)
friend

Definition at line 69 of file G4NavigationHistory.cc.

70 {
71  os << "History depth=" << nav.GetDepth() << G4endl;
72  for ( G4int i=0; i<=nav.GetDepth(); i++ )
73  {
74  os << "Level=["<<i<<"]: ";
75  if( nav.GetVolume(i) != 0 )
76  {
77  os << "Phys Name=["<< nav.GetVolume(i)->GetName()
78  << "] Type=[";
79  switch(nav.GetVolumeType(i))
80  {
81  case kNormal:
82  os << "N";
83  break;
84  case kReplica:
85  os << "R" << nav.GetReplicaNo(i);
86  break;
87  case kParameterised:
88  os << "P" << nav.GetReplicaNo(i);
89  break;
90  }
91  os << "]";
92  }
93  else
94  {
95  os << "Phys = <Null>";
96  }
97  os << G4endl;
98  }
99  return os;
100 }
int G4int
Definition: G4Types.hh:78
#define G4endl
Definition: G4ios.hh:61

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