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

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: