Geant4-11
Public Member Functions | Data Fields | Private Attributes | Friends
G4ITNavigator2::G4NavigatorState Struct Reference

#include <G4ITNavigator2.hh>

Inheritance diagram for G4ITNavigator2::G4NavigatorState:
G4ITNavigatorState_Lock2

Public Member Functions

 G4NavigatorState ()
 
 G4NavigatorState (const G4NavigatorState &)
 
G4NavigatorStateoperator= (const G4NavigatorState &)
 
G4NavigatorStateoperator= (const G4SaveNavigatorState &)
 
void ResetStack ()
 
void ResetStackAndState ()
 
void ResetState ()
 
virtual ~G4NavigatorState ()
 

Data Fields

G4bool fEnteredDaughter
 
G4bool fExitedMother
 
G4NavigationHistory fHistory
 
G4ThreeVector fLastStepEndPointLocal
 
G4bool fPushed
 
G4ThreeVector fStepEndPoint
 
G4bool fWasLimitedByGeometry
 

Private Attributes

G4VPhysicalVolumefBlockedPhysicalVolume
 
G4int fBlockedReplicaNo
 
G4bool fCalculatedExitNormal
 
G4bool fChangedGrandMotherRefFrame
 
G4bool fEntering
 
G4bool fExiting
 
G4ThreeVector fExitNormal
 
G4ThreeVector fExitNormalGlobalFrame
 
G4ThreeVector fGrandMotherExitNormal
 
G4ThreeVector fLastLocatedPointLocal
 
G4bool fLastStepWasZero
 
G4bool fLastTriedStepComputation
 
G4bool fLocatedOnEdge
 
G4bool fLocatedOutsideWorld
 
G4int fNumberZeroSteps
 
G4double fPreviousSafety
 
G4ThreeVector fPreviousSftOrigin
 
G4bool fValidExitNormal
 

Friends

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

Detailed Description

Definition at line 431 of file G4ITNavigator2.hh.

Constructor & Destructor Documentation

◆ G4NavigatorState() [1/2]

G4ITNavigator2::G4NavigatorState::G4NavigatorState ( )

◆ G4NavigatorState() [2/2]

G4ITNavigator2::G4NavigatorState::G4NavigatorState ( const G4NavigatorState rhs)

Definition at line 81 of file G4ITNavigatorState2.cc.

81 :
83{
84 fExitNormal = rhs.fExitNormal;
85 fValidExitNormal = rhs.fValidExitNormal;
86 fExiting = rhs.fExiting;
87 fEntering = rhs.fEntering;
88
89 fBlockedPhysicalVolume = rhs.fBlockedPhysicalVolume;
90 fBlockedReplicaNo = rhs.fBlockedReplicaNo,
91
92 fLastStepWasZero = rhs.fLastStepWasZero;
93
94 fLocatedOutsideWorld = rhs.fLocatedOutsideWorld;
95 fLastLocatedPointLocal = rhs.fLastLocatedPointLocal;
96 fEnteredDaughter = rhs.fEnteredDaughter;
97 fExitedMother = rhs.fExitedMother;
98 fWasLimitedByGeometry = rhs.fWasLimitedByGeometry;
99
100 fPreviousSftOrigin = rhs.fPreviousSftOrigin;
101 fPreviousSafety = rhs.fPreviousSafety;
102
103 fLastTriedStepComputation = rhs.fLastTriedStepComputation;
104 fChangedGrandMotherRefFrame = rhs.fChangedGrandMotherRefFrame;
105 fCalculatedExitNormal = rhs.fCalculatedExitNormal;
106
107 fNumberZeroSteps = rhs.fNumberZeroSteps;
108 fLocatedOnEdge = rhs.fLocatedOnEdge;
109 fPushed = rhs.fPushed;
110 fNumberZeroSteps = rhs.fNumberZeroSteps;
111}
G4VPhysicalVolume * fBlockedPhysicalVolume

References fBlockedPhysicalVolume, fBlockedReplicaNo, fCalculatedExitNormal, fChangedGrandMotherRefFrame, fEnteredDaughter, fEntering, fExitedMother, fExiting, fExitNormal, fLastLocatedPointLocal, fLastStepWasZero, fLastTriedStepComputation, fLocatedOnEdge, fLocatedOutsideWorld, fNumberZeroSteps, fPreviousSafety, fPreviousSftOrigin, fPushed, fValidExitNormal, and fWasLimitedByGeometry.

◆ ~G4NavigatorState()

virtual G4ITNavigator2::G4NavigatorState::~G4NavigatorState ( )
inlinevirtual

Definition at line 435 of file G4ITNavigator2.hh.

436 { ;}

Member Function Documentation

◆ operator=() [1/2]

G4ITNavigator2::G4NavigatorState & G4ITNavigator2::G4NavigatorState::operator= ( const G4NavigatorState rhs)

Definition at line 114 of file G4ITNavigatorState2.cc.

115{
116 if (this == &rhs) return *this;
117 fExitNormal = rhs.fExitNormal;
118 fValidExitNormal = rhs.fValidExitNormal;
119 fExiting = rhs.fExiting;
120 fEntering = rhs.fEntering;
121
122 fBlockedPhysicalVolume = rhs.fBlockedPhysicalVolume;
123 fBlockedReplicaNo = rhs.fBlockedReplicaNo;
124 fCalculatedExitNormal = rhs.fCalculatedExitNormal;
125
126 fLastStepWasZero = rhs.fLastStepWasZero;
127 fLastTriedStepComputation = rhs.fLastTriedStepComputation;
128 fChangedGrandMotherRefFrame = rhs.fChangedGrandMotherRefFrame;
129
130 fPreviousSftOrigin = rhs.fPreviousSftOrigin;
131 fPreviousSafety = rhs.fPreviousSafety;
132 fNumberZeroSteps = rhs.fNumberZeroSteps;
133 fLocatedOnEdge = rhs.fLocatedOnEdge;
134 fWasLimitedByGeometry = rhs.fWasLimitedByGeometry;
135 fPushed = rhs.fPushed;
136 fNumberZeroSteps = rhs.fNumberZeroSteps;
137 fEnteredDaughter = rhs.fEnteredDaughter;
138 fExitedMother = rhs.fExitedMother;
139
140 fLastLocatedPointLocal = rhs.fLastLocatedPointLocal;
141 fLocatedOutsideWorld = rhs.fLocatedOutsideWorld;
142
143 return *this;
144}

References fBlockedPhysicalVolume, fBlockedPhysicalVolume, fBlockedReplicaNo, fBlockedReplicaNo, fCalculatedExitNormal, fCalculatedExitNormal, fChangedGrandMotherRefFrame, fChangedGrandMotherRefFrame, fEnteredDaughter, fEnteredDaughter, fEntering, fEntering, fExitedMother, fExitedMother, fExiting, fExiting, fExitNormal, fExitNormal, fLastLocatedPointLocal, fLastLocatedPointLocal, fLastStepWasZero, fLastStepWasZero, fLastTriedStepComputation, fLastTriedStepComputation, fLocatedOnEdge, fLocatedOnEdge, fLocatedOutsideWorld, fLocatedOutsideWorld, fNumberZeroSteps, fNumberZeroSteps, fPreviousSafety, fPreviousSafety, fPreviousSftOrigin, fPreviousSftOrigin, fPushed, fPushed, fValidExitNormal, fValidExitNormal, fWasLimitedByGeometry, and fWasLimitedByGeometry.

◆ operator=() [2/2]

G4ITNavigator2::G4NavigatorState & G4ITNavigator2::G4NavigatorState::operator= ( const G4SaveNavigatorState rhs)

Definition at line 202 of file G4ITNavigatorState2.cc.

203{
204 fExitNormal = rhs.sExitNormal;
205 fValidExitNormal = rhs.sValidExitNormal;
206 fExiting = rhs.sExiting;
207 fEntering = rhs.sEntering;
208
209 fBlockedPhysicalVolume = rhs.spBlockedPhysicalVolume;
210 fBlockedReplicaNo = rhs.sBlockedReplicaNo;
211// fCalculatedExitNormal = rhs.sCalculatedExitNormal;
212
213 fLastStepWasZero = rhs.sLastStepWasZero;
214// fLastTriedStepComputation =rhs.sLastTriedStepComputation;
215// fChangedGrandMotherRefFrame = rhs.sChangedGrandMotherRefFrame;
216
217 fPreviousSftOrigin = rhs.sPreviousSftOrigin;
218 fPreviousSafety = rhs.sPreviousSafety;
219// fNumberZeroSteps = rhs.sNumberZeroSteps;
220// fLocatedOnEdge = rhs.sLocatedOnEdge;
221// fPushed = rhs.sPushed;
222 fWasLimitedByGeometry = rhs.sWasLimitedByGeometry;
223
224 fEnteredDaughter = rhs.sEnteredDaughter;
225 fExitedMother = rhs.sExitedMother;
226
227 fLastLocatedPointLocal = rhs.sLastLocatedPointLocal;
228 fLocatedOutsideWorld = rhs.sLocatedOutsideWorld;
229 return *this;
230}

References fBlockedPhysicalVolume, fBlockedReplicaNo, fEnteredDaughter, fEntering, fExitedMother, fExiting, fExitNormal, fLastLocatedPointLocal, fLastStepWasZero, fLocatedOutsideWorld, fPreviousSafety, fPreviousSftOrigin, fValidExitNormal, fWasLimitedByGeometry, G4ITNavigator2::G4SaveNavigatorState::sBlockedReplicaNo, G4ITNavigator2::G4SaveNavigatorState::sEnteredDaughter, G4ITNavigator2::G4SaveNavigatorState::sEntering, G4ITNavigator2::G4SaveNavigatorState::sExitedMother, G4ITNavigator2::G4SaveNavigatorState::sExiting, G4ITNavigator2::G4SaveNavigatorState::sExitNormal, G4ITNavigator2::G4SaveNavigatorState::sLastLocatedPointLocal, G4ITNavigator2::G4SaveNavigatorState::sLastStepWasZero, G4ITNavigator2::G4SaveNavigatorState::sLocatedOutsideWorld, G4ITNavigator2::G4SaveNavigatorState::spBlockedPhysicalVolume, G4ITNavigator2::G4SaveNavigatorState::sPreviousSafety, G4ITNavigator2::G4SaveNavigatorState::sPreviousSftOrigin, G4ITNavigator2::G4SaveNavigatorState::sValidExitNormal, and G4ITNavigator2::G4SaveNavigatorState::sWasLimitedByGeometry.

◆ ResetStack()

void G4ITNavigator2::G4NavigatorState::ResetStack ( )

Definition at line 44 of file G4ITNavigatorState2.cc.

45{
47}

References fHistory.

◆ ResetStackAndState()

void G4ITNavigator2::G4NavigatorState::ResetStackAndState ( )

◆ ResetState()

void G4ITNavigator2::G4NavigatorState::ResetState ( )

Definition at line 49 of file G4ITNavigatorState2.cc.

50{
55 fEntering = false;
56 fExiting = false;
57 fLocatedOnEdge = false;
58 fLastStepWasZero = false;
59 fEnteredDaughter = false;
60 fExitedMother = false;
61 fPushed = false;
62
63 fValidExitNormal = false;
64 fExitNormal = G4ThreeVector(0, 0, 0);
65
67 fPreviousSafety = 0.0;
68
70
73
76
79}
CLHEP::Hep3Vector G4ThreeVector
static const G4double kInfinity
Definition: geomdefs.hh:41

References fBlockedPhysicalVolume, fBlockedReplicaNo, fCalculatedExitNormal, fChangedGrandMotherRefFrame, fEnteredDaughter, fEntering, fExitedMother, fExiting, fExitNormal, fLastLocatedPointLocal, fLastStepEndPointLocal, fLastStepWasZero, fLastTriedStepComputation, fLocatedOnEdge, fLocatedOutsideWorld, fNumberZeroSteps, fPreviousSafety, fPreviousSftOrigin, fPushed, fStepEndPoint, fValidExitNormal, fWasLimitedByGeometry, and kInfinity.

Referenced by G4NavigatorState().

Friends And Related Function Documentation

◆ G4ITNavigator2

friend class G4ITNavigator2
friend

Definition at line 473 of file G4ITNavigator2.hh.

◆ G4SaveNavigatorState

friend struct G4SaveNavigatorState
friend

Definition at line 477 of file G4ITNavigator2.hh.

◆ operator<<

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

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

Field Documentation

◆ fBlockedPhysicalVolume

G4VPhysicalVolume* G4ITNavigator2::G4NavigatorState::fBlockedPhysicalVolume
private

◆ fBlockedReplicaNo

G4int G4ITNavigator2::G4NavigatorState::fBlockedReplicaNo
private

◆ fCalculatedExitNormal

G4bool G4ITNavigator2::G4NavigatorState::fCalculatedExitNormal
private

Definition at line 513 of file G4ITNavigator2.hh.

Referenced by G4NavigatorState(), and operator=().

◆ fChangedGrandMotherRefFrame

G4bool G4ITNavigator2::G4NavigatorState::fChangedGrandMotherRefFrame
private

Definition at line 509 of file G4ITNavigator2.hh.

Referenced by G4NavigatorState(), and operator=().

◆ fEnteredDaughter

G4bool G4ITNavigator2::G4NavigatorState::fEnteredDaughter

◆ fEntering

G4bool G4ITNavigator2::G4NavigatorState::fEntering
private

◆ fExitedMother

G4bool G4ITNavigator2::G4NavigatorState::fExitedMother

◆ fExiting

G4bool G4ITNavigator2::G4NavigatorState::fExiting
private

◆ fExitNormal

G4ThreeVector G4ITNavigator2::G4NavigatorState::fExitNormal
private

◆ fExitNormalGlobalFrame

G4ThreeVector G4ITNavigator2::G4NavigatorState::fExitNormalGlobalFrame
private

Definition at line 511 of file G4ITNavigator2.hh.

◆ fGrandMotherExitNormal

G4ThreeVector G4ITNavigator2::G4NavigatorState::fGrandMotherExitNormal
private

Definition at line 507 of file G4ITNavigator2.hh.

◆ fHistory

G4NavigationHistory G4ITNavigator2::G4NavigatorState::fHistory

Definition at line 445 of file G4ITNavigator2.hh.

◆ fLastLocatedPointLocal

G4ThreeVector G4ITNavigator2::G4NavigatorState::fLastLocatedPointLocal
private

◆ fLastStepEndPointLocal

G4ThreeVector G4ITNavigator2::G4NavigatorState::fLastStepEndPointLocal

Definition at line 465 of file G4ITNavigator2.hh.

◆ fLastStepWasZero

G4bool G4ITNavigator2::G4NavigatorState::fLastStepWasZero
private

◆ fLastTriedStepComputation

G4bool G4ITNavigator2::G4NavigatorState::fLastTriedStepComputation
private

Definition at line 480 of file G4ITNavigator2.hh.

Referenced by G4NavigatorState(), and operator=().

◆ fLocatedOnEdge

G4bool G4ITNavigator2::G4NavigatorState::fLocatedOnEdge
private

Definition at line 525 of file G4ITNavigator2.hh.

Referenced by G4NavigatorState(), and operator=().

◆ fLocatedOutsideWorld

G4bool G4ITNavigator2::G4NavigatorState::fLocatedOutsideWorld
private

◆ fNumberZeroSteps

G4int G4ITNavigator2::G4NavigatorState::fNumberZeroSteps
private

Definition at line 527 of file G4ITNavigator2.hh.

Referenced by G4NavigatorState(), and operator=().

◆ fPreviousSafety

G4double G4ITNavigator2::G4NavigatorState::fPreviousSafety
private

◆ fPreviousSftOrigin

G4ThreeVector G4ITNavigator2::G4NavigatorState::fPreviousSftOrigin
private

◆ fPushed

G4bool G4ITNavigator2::G4NavigatorState::fPushed

Definition at line 469 of file G4ITNavigator2.hh.

Referenced by G4NavigatorState(), and operator=().

◆ fStepEndPoint

G4ThreeVector G4ITNavigator2::G4NavigatorState::fStepEndPoint

Definition at line 462 of file G4ITNavigator2.hh.

◆ fValidExitNormal

G4bool G4ITNavigator2::G4NavigatorState::fValidExitNormal
private

◆ fWasLimitedByGeometry

G4bool G4ITNavigator2::G4NavigatorState::fWasLimitedByGeometry

The documentation for this struct was generated from the following files: