Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4ITNavigator1.cc File Reference
#include <iomanip>
#include "G4ITNavigator1.hh"
#include "G4ios.hh"
#include "G4SystemOfUnits.hh"
#include "G4GeometryTolerance.hh"
#include "G4VPhysicalVolume.hh"
#include "G4VoxelSafety.hh"
Include dependency graph for G4ITNavigator1.cc:

Go to the source code of this file.

Macros

#define G4DEBUG_NAVIGATION   1
 
#define G4NEW_SAFETY   1
 

Functions

std::ostream & operator<< (std::ostream &os, const G4ITNavigator1 &n)
 

Macro Definition Documentation

#define G4DEBUG_NAVIGATION   1

Definition at line 53 of file G4ITNavigator1.cc.

#define G4NEW_SAFETY   1

Definition at line 1681 of file G4ITNavigator1.cc.

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const G4ITNavigator1 n 
)

Definition at line 2007 of file G4ITNavigator1.cc.

2008 {
2009  // Old version did only the following:
2010  // os << "Current History: " << G4endl << n.fHistory;
2011  // Old behaviour is recovered for fVerbose = 0
2012 
2013  // Adapted from G4ITNavigator1::PrintState() const
2014 
2015  G4int oldcoutPrec = os.precision(4);
2016  if( n.fVerbose >= 4 )
2017  {
2018  os << "The current state of G4ITNavigator1 is: " << G4endl;
2019  os << " ValidExitNormal= " << n.fValidExitNormal << G4endl
2020  << " ExitNormal = " << n.fExitNormal << G4endl
2021  << " Exiting = " << n.fExiting << G4endl
2022  << " Entering = " << n.fEntering << G4endl
2023  << " BlockedPhysicalVolume= " ;
2024  if (n.fBlockedPhysicalVolume==0)
2025  os << "None";
2026  else
2027  os << n.fBlockedPhysicalVolume->GetName();
2028  os << G4endl
2029  << " BlockedReplicaNo = " << n.fBlockedReplicaNo << G4endl
2030  << " LastStepWasZero = " << n.fLastStepWasZero << G4endl
2031  << G4endl;
2032  }
2033  if( ( 1 < n.fVerbose) && (n.fVerbose < 4) )
2034  {
2035  os << G4endl; // Make sure to line up
2036  os << std::setw(30) << " ExitNormal " << " "
2037  << std::setw( 5) << " Valid " << " "
2038  << std::setw( 9) << " Exiting " << " "
2039  << std::setw( 9) << " Entering" << " "
2040  << std::setw(15) << " Blocked:Volume " << " "
2041  << std::setw( 9) << " ReplicaNo" << " "
2042  << std::setw( 8) << " LastStepZero " << " "
2043  << G4endl;
2044  os << "( " << std::setw(7) << n.fExitNormal.x()
2045  << ", " << std::setw(7) << n.fExitNormal.y()
2046  << ", " << std::setw(7) << n.fExitNormal.z() << " ) "
2047  << std::setw( 5) << n.fValidExitNormal << " "
2048  << std::setw( 9) << n.fExiting << " "
2049  << std::setw( 9) << n.fEntering << " ";
2050  if ( n.fBlockedPhysicalVolume==0 )
2051  { os << std::setw(15) << "None"; }
2052  else
2053  { os << std::setw(15)<< n.fBlockedPhysicalVolume->GetName(); }
2054  os << std::setw( 9) << n.fBlockedReplicaNo << " "
2055  << std::setw( 8) << n.fLastStepWasZero << " "
2056  << G4endl;
2057  }
2058  if( n.fVerbose > 2 )
2059  {
2060  os.precision(8);
2061  os << " Current Localpoint = " << n.fLastLocatedPointLocal << G4endl;
2062  os << " PreviousSftOrigin = " << n.fPreviousSftOrigin << G4endl;
2063  os << " PreviousSafety = " << n.fPreviousSafety << G4endl;
2064  }
2065  if( n.fVerbose > 3 || n.fVerbose == 0 )
2066  {
2067  os << "Current History: " << G4endl << n.fHistory;
2068  }
2069 
2070  os.precision(oldcoutPrec);
2071  return os;
2072 }
double x() const
int G4int
Definition: G4Types.hh:78
double z() const
const G4String & GetName() const
G4NavigationHistory fHistory
double y() const
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function: