Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4NavigationHistory.cc File Reference
#include "G4ios.hh"
#include "G4NavigationHistory.hh"
Include dependency graph for G4NavigationHistory.cc:

Go to the source code of this file.

Functions

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

Variables

G4ThreadLocal G4Allocator
< G4NavigationHistory > * 
aNavigHistoryAllocator = 0
 

Function Documentation

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

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 }
G4int GetDepth() const
EVolume GetVolumeType(G4int n) const
int G4int
Definition: G4Types.hh:78
const G4String & GetName() const
G4int GetReplicaNo(G4int n) const
#define G4endl
Definition: G4ios.hh:61
G4VPhysicalVolume * GetVolume(G4int n) const

Here is the call graph for this function:

Variable Documentation

G4ThreadLocal G4Allocator<G4NavigationHistory>* aNavigHistoryAllocator = 0

Definition at line 39 of file G4NavigationHistory.cc.