Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
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
 
std::size_t GetDepth () const
 
std::size_t 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)
 
void * operator new (std::size_t)
 
void operator delete (void *aHistory)
 

Friends

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

Detailed Description

Definition at line 52 of file G4NavigationHistory.hh.

Constructor & Destructor Documentation

◆ G4NavigationHistory() [1/2]

G4NavigationHistory::G4NavigationHistory ( )

Definition at line 41 of file G4NavigationHistory.cc.

42{
44 Clear();
45}
static G4NavigationHistoryPool * GetInstance()
std::vector< G4NavigationLevel > * GetLevels()

◆ ~G4NavigationHistory()

G4NavigationHistory::~G4NavigationHistory ( )

Definition at line 62 of file G4NavigationHistory.cc.

63{
65}
void DeRegister(std::vector< G4NavigationLevel > *pLevels)

◆ G4NavigationHistory() [2/2]

G4NavigationHistory::G4NavigationHistory ( const G4NavigationHistory & h)

Definition at line 47 of file G4NavigationHistory.cc.

48{
50 if( GetMaxDepth() != h.GetMaxDepth() )
51 {
52 fNavHistory->resize( h.GetMaxDepth() );
53 }
54
55 for ( auto ilev=G4long(h.fStackDepth); ilev>=0; --ilev )
56 {
57 (*fNavHistory)[ilev] = (*h.fNavHistory)[ilev];
58 }
59 fStackDepth = h.fStackDepth;
60}
long G4long
Definition G4Types.hh:87
std::size_t GetMaxDepth() const

Member Function Documentation

◆ BackLevel() [1/2]

◆ BackLevel() [2/2]

void G4NavigationHistory::BackLevel ( G4int n)
inline

◆ Clear()

void G4NavigationHistory::Clear ( )
inline

Referenced by G4NavigationHistory().

◆ GetDepth()

◆ GetMaxDepth()

std::size_t G4NavigationHistory::GetMaxDepth ( ) const
inline

Referenced by G4NavigationHistory().

◆ GetPtrTopTransform()

const G4AffineTransform * G4NavigationHistory::GetPtrTopTransform ( ) const
inline

◆ GetReplicaNo()

◆ GetTopReplicaNo()

◆ GetTopTransform()

◆ GetTopVolume()

◆ GetTopVolumeType()

◆ GetTransform()

◆ GetVolume()

◆ GetVolumeType()

◆ NewLevel()

◆ operator delete()

void G4NavigationHistory::operator delete ( void * aHistory)
inline

◆ operator new()

void * G4NavigationHistory::operator new ( std::size_t )
inline

◆ operator=()

G4NavigationHistory & G4NavigationHistory::operator= ( const G4NavigationHistory & h)
inline

◆ Reset()

void G4NavigationHistory::Reset ( )
inline

◆ SetFirstEntry()

void G4NavigationHistory::SetFirstEntry ( G4VPhysicalVolume * pVol)
inline

Friends And Related Symbol Documentation

◆ operator<<

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

Definition at line 67 of file G4NavigationHistory.cc.

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

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