Geant4 9.6.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
 
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)
 

Friends

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

Detailed Description

Definition at line 56 of file G4NavigationHistory.hh.

Constructor & Destructor Documentation

◆ G4NavigationHistory() [1/2]

G4NavigationHistory::G4NavigationHistory ( )

Definition at line 48 of file G4NavigationHistory.cc.

49 : fNavHistory(kHistoryMax), fStackDepth(0)
50{
51 Clear();
52}

◆ ~G4NavigationHistory()

G4NavigationHistory::~G4NavigationHistory ( )

Definition at line 59 of file G4NavigationHistory.cc.

60{
61}

◆ G4NavigationHistory() [2/2]

G4NavigationHistory::G4NavigationHistory ( const G4NavigationHistory h)

Definition at line 54 of file G4NavigationHistory.cc.

55 : fNavHistory(h.fNavHistory), fStackDepth(h.fStackDepth)
56{
57}

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

G4int G4NavigationHistory::GetMaxDepth ( ) const
inline

◆ GetPtrTopTransform()

const G4AffineTransform * G4NavigationHistory::GetPtrTopTransform ( ) const
inline

◆ GetReplicaNo()

◆ GetTopReplicaNo()

◆ GetTopTransform()

◆ GetTopVolume()

◆ GetTopVolumeType()

◆ GetTransform()

◆ GetVolume()

◆ GetVolumeType()

◆ NewLevel()

◆ operator=()

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

◆ 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 63 of file G4NavigationHistory.cc.

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

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