Geant4 10.7.0
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 1913 of file G4ITNavigator2.cc.

Function Documentation

◆ operator<<()

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

Definition at line 2444 of file G4ITNavigator2.cc.

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