Geant4 10.7.0
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
 
size_t GetDepth () const
 
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 (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 : fStackDepth(0)
43{
45 Clear();
46}
static G4NavigationHistoryPool * GetInstance()
std::vector< G4NavigationLevel > * GetLevels()

◆ ~G4NavigationHistory()

G4NavigationHistory::~G4NavigationHistory ( )

Definition at line 63 of file G4NavigationHistory.cc.

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

◆ G4NavigationHistory() [2/2]

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 ( G4long ilev=G4long(h.fStackDepth); ilev>=0; --ilev )
57 {
58 (*fNavHistory)[ilev] = (*h.fNavHistory)[ilev];
59 }
60 fStackDepth = h.fStackDepth;
61}
long G4long
Definition: G4Types.hh:87
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()

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 ( 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 Function Documentation

◆ operator<<

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

Definition at line 68 of file G4NavigationHistory.cc.

70{
71 os << "History depth=" << nav.GetDepth() << G4endl;
72 for ( size_t i=0; i<=nav.GetDepth(); ++i )
73 {
74 os << "Level=["<<i<<"]: ";
75 if( nav.GetVolume(i) != nullptr )
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 case kExternal:
91 os << "E" << nav.GetReplicaNo(i);
92 break;
93 }
94 os << "]";
95 }
96 else
97 {
98 os << "Phys = <Null>";
99 }
100 os << G4endl;
101 }
102 return os;
103}
#define G4endl
Definition: G4ios.hh:57
@ 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: