Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4ITNavigator2::G4NavigatorState Struct Reference

#include <G4ITNavigator2.hh>

+ Inheritance diagram for G4ITNavigator2::G4NavigatorState:

Public Member Functions

 G4NavigatorState ()
 
 G4NavigatorState (const G4NavigatorState &)
 
virtual ~G4NavigatorState ()
 
G4NavigatorStateoperator= (const G4NavigatorState &)
 
G4NavigatorStateoperator= (const G4SaveNavigatorState &)
 
void ResetState ()
 
void ResetStack ()
 
void ResetStackAndState ()
 
- Public Member Functions inherited from G4ITNavigatorState_Lock2
virtual ~G4ITNavigatorState_Lock2 ()
 

Public Attributes

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

Friends

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

Additional Inherited Members

- Protected Member Functions inherited from G4ITNavigatorState_Lock2
 G4ITNavigatorState_Lock2 ()
 
 G4ITNavigatorState_Lock2 (const G4ITNavigatorState_Lock2 &)
 

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}

◆ ~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}

◆ 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}

◆ ResetStack()

void G4ITNavigator2::G4NavigatorState::ResetStack ( )

Definition at line 44 of file G4ITNavigatorState2.cc.

45{
47}

◆ ResetStackAndState()

void G4ITNavigator2::G4NavigatorState::ResetStackAndState ( )

◆ ResetState()

void G4ITNavigator2::G4NavigatorState::ResetState ( )

Definition at line 49 of file G4ITNavigatorState2.cc.

50{
51 fCalculatedExitNormal = false;
52 fChangedGrandMotherRefFrame = false;
53 fLastTriedStepComputation = false;
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
66 fPreviousSftOrigin = G4ThreeVector(0, 0, 0);
67 fPreviousSafety = 0.0;
68
69 fNumberZeroSteps = 0;
70
71 fStepEndPoint = G4ThreeVector(kInfinity, kInfinity, kInfinity);
72 fLastStepEndPointLocal = G4ThreeVector(kInfinity, kInfinity, kInfinity);
73
74 fBlockedPhysicalVolume = 0;
75 fBlockedReplicaNo = -1;
76
77 fLastLocatedPointLocal = G4ThreeVector(kInfinity, -kInfinity, 0.0);
78 fLocatedOutsideWorld = false;
79}
CLHEP::Hep3Vector G4ThreeVector

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

Member Data Documentation

◆ fEnteredDaughter

G4bool G4ITNavigator2::G4NavigatorState::fEnteredDaughter

◆ fExitedMother

G4bool G4ITNavigator2::G4NavigatorState::fExitedMother

◆ fHistory

G4NavigationHistory G4ITNavigator2::G4NavigatorState::fHistory

Definition at line 445 of file G4ITNavigator2.hh.

◆ fLastStepEndPointLocal

G4ThreeVector G4ITNavigator2::G4NavigatorState::fLastStepEndPointLocal

Definition at line 465 of file G4ITNavigator2.hh.

◆ 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.

◆ fWasLimitedByGeometry

G4bool G4ITNavigator2::G4NavigatorState::fWasLimitedByGeometry

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