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

Go to the source code of this file.

Namespaces

 BoundingBox
 

Macros

#define fHistory   fpNavigatorState->fHistory
 
#define fLastTriedStepComputation   fpNavigatorState->fLastTriedStepComputation
 
#define fEnteredDaughter   fpNavigatorState->fEnteredDaughter
 
#define fExitedMother   fpNavigatorState->fExitedMother
 
#define fWasLimitedByGeometry   fpNavigatorState->fWasLimitedByGeometry
 
#define fStepEndPoint   fpNavigatorState->fStepEndPoint
 
#define fLastStepEndPointLocal   fpNavigatorState->fLastStepEndPointLocal
 
#define fPushed   fpNavigatorState->fPushed
 
#define fLastTriedStepComputation   fpNavigatorState->fLastTriedStepComputation
 
#define fEntering   fpNavigatorState->fEntering
 
#define fExiting   fpNavigatorState->fExiting
 
#define fBlockedPhysicalVolume   fpNavigatorState->fBlockedPhysicalVolume
 
#define fBlockedReplicaNo   fpNavigatorState->fBlockedReplicaNo
 
#define fLastLocatedPointLocal   fpNavigatorState->fLastLocatedPointLocal
 
#define fLocatedOutsideWorld   fpNavigatorState->fLocatedOutsideWorld
 
#define fValidExitNormal   fpNavigatorState->fValidExitNormal
 
#define fExitNormal   fpNavigatorState->fExitNormal
 
#define fGrandMotherExitNormal   fpNavigatorState->fGrandMotherExitNormal
 
#define fChangedGrandMotherRefFrame   fpNavigatorState->fChangedGrandMotherRefFrame
 
#define fExitNormalGlobalFrame   fpNavigatorState->fExitNormalGlobalFrame
 
#define fCalculatedExitNormal   fpNavigatorState->fCalculatedExitNormal
 
#define fLastStepWasZero   fpNavigatorState->fLastStepWasZero
 
#define fLocatedOnEdge   fpNavigatorState->fLocatedOnEdge
 
#define fNumberZeroSteps   fpNavigatorState->fNumberZeroSteps
 
#define fPreviousSftOrigin   fpNavigatorState->fPreviousSftOrigin
 
#define fPreviousSafety   fpNavigatorState->fPreviousSafety
 
#define G4NEW_SAFETY   1
 

Enumerations

enum  BoundingBox::Boundary { BoundingBox::kMin, BoundingBox::kMax }
 

Functions

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

Macro Definition Documentation

#define fBlockedPhysicalVolume   fpNavigatorState->fBlockedPhysicalVolume

Definition at line 69 of file G4ITNavigator2.cc.

#define fBlockedReplicaNo   fpNavigatorState->fBlockedReplicaNo

Definition at line 70 of file G4ITNavigator2.cc.

#define fCalculatedExitNormal   fpNavigatorState->fCalculatedExitNormal

Definition at line 78 of file G4ITNavigator2.cc.

#define fChangedGrandMotherRefFrame   fpNavigatorState->fChangedGrandMotherRefFrame

Definition at line 76 of file G4ITNavigator2.cc.

#define fEnteredDaughter   fpNavigatorState->fEnteredDaughter

Definition at line 60 of file G4ITNavigator2.cc.

#define fEntering   fpNavigatorState->fEntering

Definition at line 67 of file G4ITNavigator2.cc.

#define fExitedMother   fpNavigatorState->fExitedMother

Definition at line 61 of file G4ITNavigator2.cc.

#define fExiting   fpNavigatorState->fExiting

Definition at line 68 of file G4ITNavigator2.cc.

#define fExitNormal   fpNavigatorState->fExitNormal

Definition at line 74 of file G4ITNavigator2.cc.

#define fExitNormalGlobalFrame   fpNavigatorState->fExitNormalGlobalFrame

Definition at line 77 of file G4ITNavigator2.cc.

#define fGrandMotherExitNormal   fpNavigatorState->fGrandMotherExitNormal

Definition at line 75 of file G4ITNavigator2.cc.

#define fHistory   fpNavigatorState->fHistory

Definition at line 58 of file G4ITNavigator2.cc.

#define fLastLocatedPointLocal   fpNavigatorState->fLastLocatedPointLocal

Definition at line 71 of file G4ITNavigator2.cc.

#define fLastStepEndPointLocal   fpNavigatorState->fLastStepEndPointLocal

Definition at line 64 of file G4ITNavigator2.cc.

#define fLastStepWasZero   fpNavigatorState->fLastStepWasZero

Definition at line 79 of file G4ITNavigator2.cc.

#define fLastTriedStepComputation   fpNavigatorState->fLastTriedStepComputation

Definition at line 66 of file G4ITNavigator2.cc.

#define fLastTriedStepComputation   fpNavigatorState->fLastTriedStepComputation

Definition at line 66 of file G4ITNavigator2.cc.

#define fLocatedOnEdge   fpNavigatorState->fLocatedOnEdge

Definition at line 80 of file G4ITNavigator2.cc.

#define fLocatedOutsideWorld   fpNavigatorState->fLocatedOutsideWorld

Definition at line 72 of file G4ITNavigator2.cc.

#define fNumberZeroSteps   fpNavigatorState->fNumberZeroSteps

Definition at line 81 of file G4ITNavigator2.cc.

#define fPreviousSafety   fpNavigatorState->fPreviousSafety

Definition at line 83 of file G4ITNavigator2.cc.

#define fPreviousSftOrigin   fpNavigatorState->fPreviousSftOrigin

Definition at line 82 of file G4ITNavigator2.cc.

#define fPushed   fpNavigatorState->fPushed

Definition at line 65 of file G4ITNavigator2.cc.

#define fStepEndPoint   fpNavigatorState->fStepEndPoint

Definition at line 63 of file G4ITNavigator2.cc.

#define fValidExitNormal   fpNavigatorState->fValidExitNormal

Definition at line 73 of file G4ITNavigator2.cc.

#define fWasLimitedByGeometry   fpNavigatorState->fWasLimitedByGeometry

Definition at line 62 of file G4ITNavigator2.cc.

#define G4NEW_SAFETY   1

Definition at line 1881 of file G4ITNavigator2.cc.

Function Documentation

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

Definition at line 2407 of file G4ITNavigator2.cc.

2408 {
2409  // Old version did only the following:
2410  // os << "Current History: " << G4endl << n.fHistory;
2411  // Old behaviour is recovered for fVerbose = 0
2412 
2413  // Adapted from G4ITNavigator2::PrintState() const
2414 
2415  G4int oldcoutPrec = os.precision(4);
2416  if( n.fVerbose >= 4 )
2417  {
2418  os << "The current state of G4ITNavigator2 is: " << G4endl;
2419  os << " ValidExitNormal= " << n.fValidExitNormal << G4endl
2420  << " ExitNormal = " << n.fExitNormal << G4endl
2421  << " Exiting = " << n.fExiting << G4endl
2422  << " Entering = " << n.fEntering << G4endl
2423  << " BlockedPhysicalVolume= " ;
2424 
2425  if (n.fBlockedPhysicalVolume==0)
2426  {
2427  os << "None";
2428  }
2429  else
2430  {
2431  os << n.fBlockedPhysicalVolume->GetName();
2432  }
2433 
2434  os << G4endl
2435  << " BlockedReplicaNo = " << n.fBlockedReplicaNo << G4endl
2436  << " LastStepWasZero = " << n.fLastStepWasZero << G4endl
2437  << G4endl;
2438  }
2439  if( ( 1 < n.fVerbose) && (n.fVerbose < 4) )
2440  {
2441  os << G4endl; // Make sure to line up
2442  os << std::setw(30) << " ExitNormal " << " "
2443  << std::setw( 5) << " Valid " << " "
2444  << std::setw( 9) << " Exiting " << " "
2445  << std::setw( 9) << " Entering" << " "
2446  << std::setw(15) << " Blocked:Volume " << " "
2447  << std::setw( 9) << " ReplicaNo" << " "
2448  << std::setw( 8) << " LastStepZero " << " "
2449  << G4endl;
2450  os << "( " << std::setw(7) << n.fExitNormal.x()
2451  << ", " << std::setw(7) << n.fExitNormal.y()
2452  << ", " << std::setw(7) << n.fExitNormal.z() << " ) "
2453  << std::setw( 5) << n.fValidExitNormal << " "
2454  << std::setw( 9) << n.fExiting << " "
2455  << std::setw( 9) << n.fEntering << " ";
2456 
2457  if ( n.fBlockedPhysicalVolume==0 )
2458  { os << std::setw(15) << "None"; }
2459  else
2460  { os << std::setw(15)<< n.fBlockedPhysicalVolume->GetName(); }
2461 
2462  os << std::setw( 9) << n.fBlockedReplicaNo << " "
2463  << std::setw( 8) << n.fLastStepWasZero << " "
2464  << G4endl;
2465  }
2466  if( n.fVerbose > 2 )
2467  {
2468  os.precision(8);
2469  os << " Current Localpoint = " << n.fLastLocatedPointLocal << G4endl;
2470  os << " PreviousSftOrigin = " << n.fPreviousSftOrigin << G4endl;
2471  os << " PreviousSafety = " << n.fPreviousSafety << G4endl;
2472  }
2473  if( n.fVerbose > 3 || n.fVerbose == 0 )
2474  {
2475  os << "Current History: " << G4endl << n.fHistory;
2476  }
2477 
2478  os.precision(oldcoutPrec);
2479  return os;
2480 }
int G4int
Definition: G4Types.hh:78
#define G4endl
Definition: G4ios.hh:61