Geant4 11.1.1
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

#define fBlockedPhysicalVolume   fpNavigatorState->fBlockedPhysicalVolume

Definition at line 68 of file G4ITNavigator2.cc.

◆ fBlockedReplicaNo

#define fBlockedReplicaNo   fpNavigatorState->fBlockedReplicaNo

Definition at line 69 of file G4ITNavigator2.cc.

◆ fCalculatedExitNormal

#define fCalculatedExitNormal   fpNavigatorState->fCalculatedExitNormal

Definition at line 77 of file G4ITNavigator2.cc.

◆ fChangedGrandMotherRefFrame

#define fChangedGrandMotherRefFrame   fpNavigatorState->fChangedGrandMotherRefFrame

Definition at line 75 of file G4ITNavigator2.cc.

◆ fEnteredDaughter

#define fEnteredDaughter   fpNavigatorState->fEnteredDaughter

Definition at line 59 of file G4ITNavigator2.cc.

◆ fEntering

#define fEntering   fpNavigatorState->fEntering

Definition at line 66 of file G4ITNavigator2.cc.

◆ fExitedMother

#define fExitedMother   fpNavigatorState->fExitedMother

Definition at line 60 of file G4ITNavigator2.cc.

◆ fExiting

#define fExiting   fpNavigatorState->fExiting

Definition at line 67 of file G4ITNavigator2.cc.

◆ fExitNormal

#define fExitNormal   fpNavigatorState->fExitNormal

Definition at line 73 of file G4ITNavigator2.cc.

◆ fExitNormalGlobalFrame

#define fExitNormalGlobalFrame   fpNavigatorState->fExitNormalGlobalFrame

Definition at line 76 of file G4ITNavigator2.cc.

◆ fGrandMotherExitNormal

#define fGrandMotherExitNormal   fpNavigatorState->fGrandMotherExitNormal

Definition at line 74 of file G4ITNavigator2.cc.

◆ fHistory

#define fHistory   fpNavigatorState->fHistory

Definition at line 57 of file G4ITNavigator2.cc.

◆ fLastLocatedPointLocal

#define fLastLocatedPointLocal   fpNavigatorState->fLastLocatedPointLocal

Definition at line 70 of file G4ITNavigator2.cc.

◆ fLastStepEndPointLocal

#define fLastStepEndPointLocal   fpNavigatorState->fLastStepEndPointLocal

Definition at line 63 of file G4ITNavigator2.cc.

◆ fLastStepWasZero

#define fLastStepWasZero   fpNavigatorState->fLastStepWasZero

Definition at line 78 of file G4ITNavigator2.cc.

◆ fLastTriedStepComputation [1/2]

#define fLastTriedStepComputation   fpNavigatorState->fLastTriedStepComputation

Definition at line 65 of file G4ITNavigator2.cc.

◆ fLastTriedStepComputation [2/2]

#define fLastTriedStepComputation   fpNavigatorState->fLastTriedStepComputation

Definition at line 65 of file G4ITNavigator2.cc.

◆ fLocatedOnEdge

#define fLocatedOnEdge   fpNavigatorState->fLocatedOnEdge

Definition at line 79 of file G4ITNavigator2.cc.

◆ fLocatedOutsideWorld

#define fLocatedOutsideWorld   fpNavigatorState->fLocatedOutsideWorld

Definition at line 71 of file G4ITNavigator2.cc.

◆ fNumberZeroSteps

#define fNumberZeroSteps   fpNavigatorState->fNumberZeroSteps

Definition at line 80 of file G4ITNavigator2.cc.

◆ fPreviousSafety

#define fPreviousSafety   fpNavigatorState->fPreviousSafety

Definition at line 82 of file G4ITNavigator2.cc.

◆ fPreviousSftOrigin

#define fPreviousSftOrigin   fpNavigatorState->fPreviousSftOrigin

Definition at line 81 of file G4ITNavigator2.cc.

◆ fPushed

#define fPushed   fpNavigatorState->fPushed

Definition at line 64 of file G4ITNavigator2.cc.

◆ fStepEndPoint

#define fStepEndPoint   fpNavigatorState->fStepEndPoint

Definition at line 62 of file G4ITNavigator2.cc.

◆ fValidExitNormal

#define fValidExitNormal   fpNavigatorState->fValidExitNormal

Definition at line 72 of file G4ITNavigator2.cc.

◆ fWasLimitedByGeometry

#define fWasLimitedByGeometry   fpNavigatorState->fWasLimitedByGeometry

Definition at line 61 of file G4ITNavigator2.cc.

◆ G4NEW_SAFETY

#define G4NEW_SAFETY   1

Definition at line 1901 of file G4ITNavigator2.cc.

Function Documentation

◆ operator<<()

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

Definition at line 2432 of file G4ITNavigator2.cc.

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