Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
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"

Go to the source code of this file.

Namespaces

namespace  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

◆ fBlockedPhysicalVolume

◆ fBlockedReplicaNo

◆ fCalculatedExitNormal

◆ fChangedGrandMotherRefFrame

◆ fEnteredDaughter

◆ fEntering

◆ fExitedMother

◆ fExiting

◆ fExitNormal

◆ fExitNormalGlobalFrame

#define fExitNormalGlobalFrame   fpNavigatorState->fExitNormalGlobalFrame

◆ fGrandMotherExitNormal

#define fGrandMotherExitNormal   fpNavigatorState->fGrandMotherExitNormal

◆ fHistory

◆ fLastLocatedPointLocal

◆ fLastStepEndPointLocal

#define fLastStepEndPointLocal   fpNavigatorState->fLastStepEndPointLocal

◆ fLastStepWasZero

◆ fLastTriedStepComputation [1/2]

◆ fLastTriedStepComputation [2/2]

#define fLastTriedStepComputation   fpNavigatorState->fLastTriedStepComputation

Definition at line 58 of file G4ITNavigator2.cc.

◆ fLocatedOnEdge

◆ fLocatedOutsideWorld

◆ fNumberZeroSteps

◆ fPreviousSafety

◆ fPreviousSftOrigin

◆ fPushed

◆ fStepEndPoint

#define fStepEndPoint   fpNavigatorState->fStepEndPoint

◆ fValidExitNormal

◆ fWasLimitedByGeometry

#define fWasLimitedByGeometry   fpNavigatorState->fWasLimitedByGeometry

Definition at line 61 of file G4ITNavigator2.cc.

◆ G4NEW_SAFETY

#define G4NEW_SAFETY   1

Definition at line 1898 of file G4ITNavigator2.cc.

Function Documentation

◆ operator<<()

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

Definition at line 2429 of file G4ITNavigator2.cc.

2430{
2431 // Old version did only the following:
2432 // os << "Current History: " << G4endl << n.fHistory;
2433 // Old behaviour is recovered for fVerbose = 0
2434
2435 // Adapted from G4ITNavigator2::PrintState() const
2436
2437 G4long oldcoutPrec = os.precision(4);
2438 if( n.fVerbose >= 4 )
2439 {
2440 os << "The current state of G4ITNavigator2 is: " << G4endl;
2441 os << " ValidExitNormal= " << n.fValidExitNormal << G4endl
2442 << " ExitNormal = " << n.fExitNormal << G4endl
2443 << " Exiting = " << n.fExiting << G4endl
2444 << " Entering = " << n.fEntering << G4endl
2445 << " BlockedPhysicalVolume= " ;
2446
2447 if (n.fBlockedPhysicalVolume==nullptr)
2448 {
2449 os << "None";
2450 }
2451 else
2452 {
2453 os << n.fBlockedPhysicalVolume->GetName();
2454 }
2455
2456 os << G4endl
2457 << " BlockedReplicaNo = " << n.fBlockedReplicaNo << G4endl
2458 << " LastStepWasZero = " << n.fLastStepWasZero << G4endl
2459 << G4endl;
2460 }
2461 if( ( 1 < n.fVerbose) && (n.fVerbose < 4) )
2462 {
2463 os << G4endl; // Make sure to line up
2464 os << std::setw(30) << " ExitNormal " << " "
2465 << std::setw( 5) << " Valid " << " "
2466 << std::setw( 9) << " Exiting " << " "
2467 << std::setw( 9) << " Entering" << " "
2468 << std::setw(15) << " Blocked:Volume " << " "
2469 << std::setw( 9) << " ReplicaNo" << " "
2470 << std::setw( 8) << " LastStepZero " << " "
2471 << G4endl;
2472 os << "( " << std::setw(7) << n.fExitNormal.x()
2473 << ", " << std::setw(7) << n.fExitNormal.y()
2474 << ", " << std::setw(7) << n.fExitNormal.z() << " ) "
2475 << std::setw( 5) << n.fValidExitNormal << " "
2476 << std::setw( 9) << n.fExiting << " "
2477 << std::setw( 9) << n.fEntering << " ";
2478
2479 if ( n.fBlockedPhysicalVolume==nullptr )
2480 { os << std::setw(15) << "None"; }
2481 else
2482 { os << std::setw(15)<< n.fBlockedPhysicalVolume->GetName(); }
2483
2484 os << std::setw( 9) << n.fBlockedReplicaNo << " "
2485 << std::setw( 8) << n.fLastStepWasZero << " "
2486 << G4endl;
2487 }
2488 if( n.fVerbose > 2 )
2489 {
2490 os.precision(8);
2491 os << " Current Localpoint = " << n.fLastLocatedPointLocal << G4endl;
2492 os << " PreviousSftOrigin = " << n.fPreviousSftOrigin << G4endl;
2493 os << " PreviousSafety = " << n.fPreviousSafety << G4endl;
2494 }
2495 if( n.fVerbose > 3 || n.fVerbose == 0 )
2496 {
2497 os << "Current History: " << G4endl << n.fHistory;
2498 }
2499
2500 os.precision(oldcoutPrec);
2501 return os;
2502}
long G4long
Definition G4Types.hh:87
#define G4endl
Definition G4ios.hh:67