Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4ITNavigator2::G4NavigatorState Struct Reference

#include <G4ITNavigator2.hh>

Inheritance diagram for G4ITNavigator2::G4NavigatorState:
Collaboration 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 432 of file G4ITNavigator2.hh.

Constructor & Destructor Documentation

G4ITNavigator2::G4NavigatorState::G4NavigatorState ( )

Definition at line 38 of file G4ITNavigatorState2.cc.

Here is the call graph for this function:

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 }
virtual G4ITNavigator2::G4NavigatorState::~G4NavigatorState ( )
inlinevirtual

Definition at line 436 of file G4ITNavigator2.hh.

437  { ;}

Member Function Documentation

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 }
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 }
void G4ITNavigator2::G4NavigatorState::ResetStack ( )

Definition at line 44 of file G4ITNavigatorState2.cc.

45 {
46  fHistory.Reset();
47 }
void G4ITNavigator2::G4NavigatorState::ResetStackAndState ( )
void G4ITNavigator2::G4NavigatorState::ResetState ( )

Definition at line 49 of file G4ITNavigatorState2.cc.

50 {
51  fCalculatedExitNormal = false;
52  fChangedGrandMotherRefFrame = false;
53  fLastTriedStepComputation = false;
54  fWasLimitedByGeometry = 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 
73 
74  fBlockedPhysicalVolume = 0;
75  fBlockedReplicaNo = -1;
76 
77  fLastLocatedPointLocal = G4ThreeVector(kInfinity, -kInfinity, 0.0);
78  fLocatedOutsideWorld = false;
79 }
static const G4double kInfinity
Definition: geomdefs.hh:42
CLHEP::Hep3Vector G4ThreeVector

Here is the caller graph for this function:

Friends And Related Function Documentation

friend class G4ITNavigator2
friend

Definition at line 474 of file G4ITNavigator2.hh.

friend struct G4SaveNavigatorState
friend

Definition at line 478 of file G4ITNavigator2.hh.

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

Definition at line 2407 of file G4ITNavigator2.cc.

2408 {
2409  // Old version did only the following:
2410  // os << "Current History: " << G4endl << n.fHistory;
2411  // Old behaviour is recovered for fVerbose = 0
2412 
2413  // Adapted from G4ITNavigator2::PrintState() const
2414 
2415  G4int oldcoutPrec = os.precision(4);
2416  if( n.fVerbose >= 4 )
2417  {
2418  os << "The current state of G4ITNavigator2 is: " << G4endl;
2419  os << " ValidExitNormal= " << n.fValidExitNormal << G4endl
2420  << " ExitNormal = " << n.fExitNormal << G4endl
2421  << " Exiting = " << n.fExiting << G4endl
2422  << " Entering = " << n.fEntering << G4endl
2423  << " BlockedPhysicalVolume= " ;
2424 
2425  if (n.fBlockedPhysicalVolume==0)
2426  {
2427  os << "None";
2428  }
2429  else
2430  {
2431  os << n.fBlockedPhysicalVolume->GetName();
2432  }
2433 
2434  os << G4endl
2435  << " BlockedReplicaNo = " << n.fBlockedReplicaNo << G4endl
2436  << " LastStepWasZero = " << n.fLastStepWasZero << G4endl
2437  << G4endl;
2438  }
2439  if( ( 1 < n.fVerbose) && (n.fVerbose < 4) )
2440  {
2441  os << G4endl; // Make sure to line up
2442  os << std::setw(30) << " ExitNormal " << " "
2443  << std::setw( 5) << " Valid " << " "
2444  << std::setw( 9) << " Exiting " << " "
2445  << std::setw( 9) << " Entering" << " "
2446  << std::setw(15) << " Blocked:Volume " << " "
2447  << std::setw( 9) << " ReplicaNo" << " "
2448  << std::setw( 8) << " LastStepZero " << " "
2449  << G4endl;
2450  os << "( " << std::setw(7) << n.fExitNormal.x()
2451  << ", " << std::setw(7) << n.fExitNormal.y()
2452  << ", " << std::setw(7) << n.fExitNormal.z() << " ) "
2453  << std::setw( 5) << n.fValidExitNormal << " "
2454  << std::setw( 9) << n.fExiting << " "
2455  << std::setw( 9) << n.fEntering << " ";
2456 
2457  if ( n.fBlockedPhysicalVolume==0 )
2458  { os << std::setw(15) << "None"; }
2459  else
2460  { os << std::setw(15)<< n.fBlockedPhysicalVolume->GetName(); }
2461 
2462  os << std::setw( 9) << n.fBlockedReplicaNo << " "
2463  << std::setw( 8) << n.fLastStepWasZero << " "
2464  << G4endl;
2465  }
2466  if( n.fVerbose > 2 )
2467  {
2468  os.precision(8);
2469  os << " Current Localpoint = " << n.fLastLocatedPointLocal << G4endl;
2470  os << " PreviousSftOrigin = " << n.fPreviousSftOrigin << G4endl;
2471  os << " PreviousSafety = " << n.fPreviousSafety << G4endl;
2472  }
2473  if( n.fVerbose > 3 || n.fVerbose == 0 )
2474  {
2475  os << "Current History: " << G4endl << n.fHistory;
2476  }
2477 
2478  os.precision(oldcoutPrec);
2479  return os;
2480 }
int G4int
Definition: G4Types.hh:78
#define G4endl
Definition: G4ios.hh:61

Member Data Documentation

G4bool G4ITNavigator2::G4NavigatorState::fEnteredDaughter

Definition at line 450 of file G4ITNavigator2.hh.

G4bool G4ITNavigator2::G4NavigatorState::fExitedMother

Definition at line 456 of file G4ITNavigator2.hh.

G4NavigationHistory G4ITNavigator2::G4NavigatorState::fHistory

Definition at line 446 of file G4ITNavigator2.hh.

G4ThreeVector G4ITNavigator2::G4NavigatorState::fLastStepEndPointLocal

Definition at line 466 of file G4ITNavigator2.hh.

G4bool G4ITNavigator2::G4NavigatorState::fPushed

Definition at line 470 of file G4ITNavigator2.hh.

G4ThreeVector G4ITNavigator2::G4NavigatorState::fStepEndPoint

Definition at line 463 of file G4ITNavigator2.hh.

G4bool G4ITNavigator2::G4NavigatorState::fWasLimitedByGeometry

Definition at line 460 of file G4ITNavigator2.hh.


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