Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4Navigator.hh
Go to the documentation of this file.
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 //
27 // $Id: G4Navigator.hh 70647 2013-06-03 15:12:33Z gcosmo $
28 //
29 //
30 // class G4Navigator
31 //
32 // Class description:
33 //
34 // A class for use by the tracking management, able to obtain/calculate
35 // dynamic tracking time information such as the distance to the next volume,
36 // or to find the physical volume containing a given point in the world
37 // reference system. The navigator maintains a transformation history and
38 // other information to optimise the tracking time performance.
39 
40 // History:
41 // - Created. Paul Kent, Jul 95/96
42 // - Zero step protections J.A. / G.C., Nov 2004
43 // - Added check mode G. Cosmo, Mar 2004
44 // - Made Navigator Abstract G. Cosmo, Nov 2003
45 // *********************************************************************
46 
47 #ifndef G4NAVIGATOR_HH
48 #define G4NAVIGATOR_HH
49 
50 #include "geomdefs.hh"
51 
52 #include "G4ThreeVector.hh"
53 #include "G4AffineTransform.hh"
54 #include "G4RotationMatrix.hh"
55 
56 #include "G4LogicalVolume.hh" // Used in inline methods
57 #include "G4GRSVolume.hh" // " "
58 #include "G4GRSSolid.hh" // " "
59 #include "G4TouchableHandle.hh" // " "
61 
62 #include "G4NavigationHistory.hh"
63 #include "G4NormalNavigation.hh"
64 #include "G4VoxelNavigation.hh"
66 #include "G4ReplicaNavigation.hh"
67 #include "G4RegularNavigation.hh"
68 
69 #include <iostream>
70 
71 class G4VPhysicalVolume;
72 
74 {
75  public: // with description
76 
77  friend std::ostream& operator << (std::ostream &os, const G4Navigator &n);
78 
79  G4Navigator();
80  // Constructor - initialisers and setup.
81 
82  virtual ~G4Navigator();
83  // Destructor. No actions.
84 
85  virtual G4double ComputeStep(const G4ThreeVector &pGlobalPoint,
86  const G4ThreeVector &pDirection,
87  const G4double pCurrentProposedStepLength,
88  G4double &pNewSafety);
89  // Calculate the distance to the next boundary intersected
90  // along the specified NORMALISED vector direction and
91  // from the specified point in the global coordinate
92  // system. LocateGlobalPointAndSetup or LocateGlobalPointWithinVolume
93  // must have been called with the same global point prior to this call.
94  // The isotropic distance to the nearest boundary is also
95  // calculated (usually an underestimate). The current
96  // proposed Step length is used to avoid intersection
97  // calculations: if it can be determined that the nearest
98  // boundary is >pCurrentProposedStepLength away, kInfinity
99  // is returned together with the computed isotropic safety
100  // distance. Geometry must be closed.
101 
102  G4double CheckNextStep(const G4ThreeVector &pGlobalPoint,
103  const G4ThreeVector &pDirection,
104  const G4double pCurrentProposedStepLength,
105  G4double &pNewSafety);
106  // Same as above, but do not disturb the state of the Navigator.
107 
108  virtual
110  const G4ThreeVector &direction,
111  const G4TouchableHistory &h);
112 
113  // Resets the geometrical hierarchy and search for the volumes deepest
114  // in the hierarchy containing the point in the global coordinate space.
115  // The direction is used to check if a volume is entered.
116  // The search begin is the geometrical hierarchy at the location of the
117  // last located point, or the endpoint of the previous Step if
118  // SetGeometricallyLimitedStep() has been called immediately before.
119  //
120  // Important Note: In order to call this the geometry MUST be closed.
121 
122  virtual
124  const G4ThreeVector* direction=0,
125  const G4bool pRelativeSearch=true,
126  const G4bool ignoreDirection=true);
127  // Search the geometrical hierarchy for the volumes deepest in the hierarchy
128  // containing the point in the global coordinate space. Two main cases are:
129  // i) If pRelativeSearch=false it makes use of no previous/state
130  // information. Returns the physical volume containing the point,
131  // with all previous mothers correctly set up.
132  // ii) If pRelativeSearch is set to true, the search begin is the
133  // geometrical hierarchy at the location of the last located point,
134  // or the endpoint of the previous Step if SetGeometricallyLimitedStep()
135  // has been called immediately before.
136  // The direction is used (to check if a volume is entered) if either
137  // - the argument ignoreDirection is false, or
138  // - the Navigator has determined that it is on an edge shared by two or
139  // more volumes. (This is state information.)
140  //
141  // Important Note: In order to call this the geometry MUST be closed.
142 
143  virtual
145  // Notify the Navigator that a track has moved to the new Global point
146  // 'position', that is known to be within the current safety.
147  // No check is performed to ensure that it is within the volume.
148  // This method can be called instead of LocateGlobalPointAndSetup ONLY if
149  // the caller is certain that the new global point (position) is inside the
150  // same volume as the previous position. Usually this can be guaranteed
151  // only if the point is within safety.
152 
154  const G4ThreeVector& position,
155  const G4ThreeVector& direction,
156  G4TouchableHandle& oldTouchableToUpdate,
157  const G4bool RelativeSearch = true);
158  // First, search the geometrical hierarchy like the above method
159  // LocateGlobalPointAndSetup(). Then use the volume found and its
160  // navigation history to update the touchable.
161 
163  const G4ThreeVector& position,
164  const G4ThreeVector& direction,
165  G4VTouchable* touchableToUpdate,
166  const G4bool RelativeSearch = true);
167  // First, search the geometrical hierarchy like the above method
168  // LocateGlobalPointAndSetup(). Then use the volume found and its
169  // navigation history to update the touchable.
170 
172  const G4ThreeVector& position,
173  G4VTouchable* touchableToUpdate,
174  const G4bool RelativeSearch = true);
175  // Same as the method above but missing direction.
176 
177  inline void SetGeometricallyLimitedStep();
178  // Inform the navigator that the previous Step calculated
179  // by the geometry was taken in its entirety.
180 
181  virtual G4double ComputeSafety(const G4ThreeVector &globalpoint,
182  const G4double pProposedMaxLength = DBL_MAX,
183  const G4bool keepState = true);
184  // Calculate the isotropic distance to the nearest boundary from the
185  // specified point in the global coordinate system.
186  // The globalpoint utilised must be within the current volume.
187  // The value returned is usually an underestimate.
188  // The proposed maximum length is used to avoid volume safety
189  // calculations. The geometry must be closed.
190  // To ensure minimum side effects from the call, keepState
191  // must be true.
192 
193  inline G4VPhysicalVolume* GetWorldVolume() const;
194  // Return the current world (`topmost') volume.
195 
196  inline void SetWorldVolume(G4VPhysicalVolume* pWorld);
197  // Set the world (`topmost') volume. This must be positioned at
198  // origin (0,0,0) and unrotated.
199 
200  inline G4GRSVolume* CreateGRSVolume() const;
201  inline G4GRSSolid* CreateGRSSolid() const;
204  // `Touchable' creation methods: caller has deletion responsibility.
205 
207  // Returns a reference counted handle to a touchable history.
208 
209  virtual G4ThreeVector GetLocalExitNormal(G4bool* valid);
211  G4bool* valid);
212  virtual G4ThreeVector GetGlobalExitNormal(const G4ThreeVector& point,
213  G4bool* valid);
214  // Return Exit Surface Normal and validity too.
215  // Can only be called if the Navigator's last Step has crossed a
216  // volume geometrical boundary.
217  // It returns the Normal to the surface pointing out of the volume that
218  // was left behind and/or into the volume that was entered.
219  // Convention:
220  // The *local* normal is in the coordinate system of the *final* volume.
221  // Restriction:
222  // Normals are not available for replica volumes (returns valid= false)
223  // These methods takes full care about how to calculate this normal,
224  // but if the surfaces are not convex it will return valid=false.
225 
226  inline G4int GetVerboseLevel() const;
227  inline void SetVerboseLevel(G4int level);
228  // Get/Set Verbose(ness) level.
229  // [if level>0 && G4VERBOSE, printout can occur]
230 
231  inline G4bool IsActive() const;
232  // Verify if the navigator is active.
233  inline void Activate(G4bool flag);
234  // Activate/inactivate the navigator.
235 
236  inline G4bool EnteredDaughterVolume() const;
237  // The purpose of this function is to inform the caller if the track is
238  // entering a daughter volume while exiting from the current volume.
239  // This method returns
240  // - True only in case 1) above, that is when the Step has caused
241  // the track to arrive at a boundary of a daughter.
242  // - False in cases 2), 3) and 4), i.e. in all other cases.
243  // This function is not guaranteed to work if SetGeometricallyLimitedStep()
244  // was not called when it should have been called.
245  inline G4bool ExitedMotherVolume() const;
246  // Verify if the step has exited the mother volume.
247 
248  inline void CheckMode(G4bool mode);
249  // Run navigation in "check-mode", therefore using additional
250  // verifications and more strict correctness conditions.
251  // Is effective only with G4VERBOSE set.
252  inline G4bool IsCheckModeActive() const;
253  inline void SetPushVerbosity(G4bool mode);
254  // Set/unset verbosity for pushed tracks (default is true).
255 
256  void PrintState() const;
257  // Print the internal state of the Navigator (for debugging).
258  // The level of detail is according to the verbosity.
259 
260  inline const G4AffineTransform& GetGlobalToLocalTransform() const;
261  inline const G4AffineTransform GetLocalToGlobalTransform() const;
262  // Obtain the transformations Global/Local (and inverse).
263  // Clients of these methods must copy the data if they need to keep it.
264 
266  G4int dReplicaNo,
267  EVolume dVolumeType );
268  // Obtain mother to daughter transformation
269 
270  inline void ResetStackAndState();
271  // Reset stack and minimum or navigator state machine necessary for reset
272  // as needed by LocalGlobalPointAndSetup.
273  // [Does not perform clears, resizes, or reset fLastLocatedPointLocal]
274 
275  inline G4int SeverityOfZeroStepping( G4int* noZeroSteps ) const;
276  // Report on severity of error and number of zero steps,
277  // in case Navigator is stuck and is returning zero steps.
278  // Values: 1 (small problem), 5 (correcting),
279  // 9 (ready to abandon), 10 (abandoned)
280 
282  // Return the local coordinate of the point in the reference system
283  // of its containing volume that was found by LocalGlobalPointAndSetup.
284  // The local coordinate of the last located track.
285 
286  inline G4ThreeVector NetTranslation() const;
287  inline G4RotationMatrix NetRotation() const;
288  // Compute+return the local->global translation/rotation of current volume.
289 
290  inline void EnableBestSafety( G4bool value= false );
291  // Enable best-possible evaluation of isotropic safety
292 
293  protected: // with description
294 
295  void SetSavedState();
296  // ( fValidExitNormal, fExitNormal, fExiting, fEntering,
297  // fBlockedPhysicalVolume, fBlockedReplicaNo, fLastStepWasZero);
298  // Extended to include:
299  // ( fLastLocatedPointLocal, fLocatedOutsideWorld;
300  // fEnteredDaughter, fExitedMother
301  // fPreviousSftOrigin, sPreviousSafety) Safety Sphere.
302 
303  void RestoreSavedState();
304  // Copy aspects of the state, to enable a non-state changing
305  // call to ComputeStep().
306 
307  virtual void ResetState();
308  // Utility method to reset the navigator state machine.
309 
310  inline G4ThreeVector ComputeLocalPoint(const G4ThreeVector& rGlobPoint) const;
311  // Return position vector in local coordinate system, given a position
312  // vector in world coordinate system.
313 
314  inline G4ThreeVector ComputeLocalAxis(const G4ThreeVector& pVec) const;
315  // Return the local direction of the specified vector in the reference
316  // system of the volume that was found by LocalGlobalPointAndSetup.
317  // The Local Coordinates of point in world coordinate system.
318 
319  inline EVolume VolumeType(const G4VPhysicalVolume *pVol) const;
320  // Characterise `type' of volume - normal/replicated/parameterised.
321 
322  inline EVolume CharacteriseDaughters(const G4LogicalVolume *pLog) const;
323  // Characterise daughter of logical volume.
324 
325  inline G4int GetDaughtersRegularStructureId(const G4LogicalVolume *pLog) const;
326  // Get regular structure ID of first daughter
327 
328  virtual void SetupHierarchy();
329  // Renavigate & reset hierarchy described by current history
330  // o Reset volumes
331  // o Recompute transforms and/or solids of replicated/parameterised
332  // volumes.
333 
334  private:
335 
336  G4Navigator(const G4Navigator&);
337  G4Navigator& operator=(const G4Navigator&);
338  // Private copy-constructor and assignment operator.
339 
340  void ComputeStepLog(const G4ThreeVector& pGlobalpoint,
341  G4double moveLenSq) const;
342  // Log and checks for steps larger than the tolerance
343 
344  protected: // without description
345 
347  // Geometrical tolerance for surface thickness of shapes.
348 
349  //
350  // BEGIN State information
351  //
352 
354  // Transformation and history of the current path
355  // through the geometrical hierarchy.
356 
358  // A memory of whether in this Step a daughter volume is entered
359  // (set in Compute & Locate).
360  // After Compute: it expects to enter a daughter
361  // After Locate: it has entered a daughter
362 
364  // A similar memory whether the Step exited current "mother" volume
365  // completely, not entering daughter.
366 
368  // Set true if last Step was limited by geometry.
369 
371  // Endpoint of last ComputeStep
372  // can be used for optimisation (e.g. when computing safety).
374  // Position of the end-point of the last call to ComputeStep
375  // in last Local coordinates.
376 
378  // Verbose(ness) level [if > 0, printout can occur].
379 
380  private:
381 
382  G4bool fActive;
383  // States if the navigator is activated or not.
384 
385  G4bool fLastTriedStepComputation;
386  // Whether ComputeStep was called since the last call to a Locate method
387  // Uses: - distinguish parts of state which differ before/after calls
388  // to ComputeStep or one of the Locate methods;
389  // - avoid two consecutive calls to compute-step (illegal).
390 
391  G4bool fEntering,fExiting;
392  // Entering/Exiting volumes blocking/setup
393  // o If exiting
394  // volume ptr & replica number (set & used by Locate..())
395  // used for blocking on redescent of geometry
396  // o If entering
397  // volume ptr & replica number (set by ComputeStep(),used by
398  // Locate..()) of volume for `automatic' entry
399 
400  G4VPhysicalVolume *fBlockedPhysicalVolume;
401  G4int fBlockedReplicaNo;
402 
403  G4ThreeVector fLastLocatedPointLocal;
404  // Position of the last located point relative to its containing volume.
405  G4bool fLocatedOutsideWorld;
406  // Whether the last call to Locate methods left the world
407 
408  G4bool fValidExitNormal; // Set true if have leaving volume normal
409  G4ThreeVector fExitNormal; // Leaving volume normal, in the
410  // volume containing the exited
411  // volume's coordinate system
412  G4ThreeVector fGrandMotherExitNormal; // Leaving volume normal, in its
413  // own coordinate system
414  G4bool fChangedGrandMotherRefFrame; // Whether frame is changed
415 
416  G4ThreeVector fExitNormalGlobalFrame; // Leaving volume normal, in the
417  // global coordinate system
418  G4bool fCalculatedExitNormal; // Has it been computed since
419  // the last call to ComputeStep
420  // Covers both Global and GrandMother
421 
422  // Count zero steps - as one or two can occur due to changing momentum at
423  // a boundary or at an edge common between volumes
424  // - several are likely a problem in the geometry
425  // description or in the navigation
426  //
427  G4bool fLastStepWasZero;
428  // Whether the last ComputeStep moved Zero. Used to check for edges.
429 
430  G4bool fLocatedOnEdge;
431  // Whether the Navigator has detected an edge
432  G4int fNumberZeroSteps;
433  // Number of preceding moves that were Zero. Reset to 0 after finite step
434  G4int fActionThreshold_NoZeroSteps;
435  // After this many failed/zero steps, act (push etc)
436  G4int fAbandonThreshold_NoZeroSteps;
437  // After this many failed/zero steps, abandon track
438 
439  G4ThreeVector fPreviousSftOrigin;
440  G4double fPreviousSafety;
441  // Memory of last safety origin & value. Used in ComputeStep to ensure
442  // that origin of current Step is in the same volume as the point of the
443  // last relocation
444 
445  //
446  // END State information
447  //
448 
449  // Save key state information (NOT the navigation history stack)
450  //
451  struct G4SaveNavigatorState
452  {
453  G4ThreeVector sExitNormal;
454  G4bool sValidExitNormal;
455  G4bool sEntering, sExiting;
456  G4VPhysicalVolume* spBlockedPhysicalVolume;
457  G4int sBlockedReplicaNo;
458  G4int sLastStepWasZero;
459 
460  // Potentially relevant
461  //
462  G4bool sLocatedOutsideWorld;
463  G4ThreeVector sLastLocatedPointLocal;
464  G4bool sEnteredDaughter, sExitedMother;
465  G4ThreeVector sPreviousSftOrigin;
466  G4double sPreviousSafety;
467  } fSaveState;
468 
469  // Tracking Invariants
470  //
471  G4VPhysicalVolume *fTopPhysical;
472  // A link to the topmost physical volume in the detector.
473  // Must be positioned at the origin and unrotated.
474 
475  // Utility information
476  //
477  G4bool fCheck;
478  // Check-mode flag [if true, more strict checks are performed].
479  G4bool fPushed, fWarnPush;
480  // Push flags [if true, means a stuck particle has been pushed].
481 
482  // Helpers/Utility classes
483  //
484  G4NormalNavigation fnormalNav;
485  G4VoxelNavigation fvoxelNav;
486  G4ParameterisedNavigation fparamNav;
487  G4ReplicaNavigation freplicaNav;
488  G4RegularNavigation fregularNav;
489  G4VoxelSafety *fpVoxelSafety;
490 };
491 
492 #include "G4Navigator.icc"
493 
494 #endif
495 
496 
497 // NOTES:
498 //
499 // The following methods provide detailed information when a Step has
500 // arrived at a geometrical boundary. They distinguish between the different
501 // causes that can result in the track leaving its current volume.
502 //
503 // Four cases are possible:
504 //
505 // 1) The particle has reached a boundary of a daughter of the current volume:
506 // (this could cause the relocation to enter the daughter itself
507 // or a potential granddaughter or further descendant)
508 //
509 // 2) The particle has reached a boundary of the current
510 // volume, exiting into a mother (regardless the level
511 // at which it is located in the tree):
512 //
513 // 3) The particle has reached a boundary of the current
514 // volume, exiting into a volume which is not in its
515 // parental hierarchy:
516 //
517 // 4) The particle is not on a boundary between volumes:
518 // the function returns an exception, and the caller is
519 // reccomended to compare the G4touchables associated
520 // to the preStepPoint and postStepPoint to handle this case.
521 //
522 // G4bool EnteredDaughterVolume()
523 // G4bool IsExitNormalValid()
524 // G4ThreeVector GetLocalExitNormal()
525 //
526 // The expected usefulness of these methods is to allow the caller to
527 // determine how to compute the surface normal at the volume boundary. The two
528 // possibilities are to obtain the normal from:
529 //
530 // i) the solid associated with the volume of the initial point of the Step.
531 // This is valid for cases 2 and 3.
532 // (Note that the initial point is generally the PreStepPoint of a Step).
533 // or
534 //
535 // ii) the solid of the final point, ie of the volume after the relocation.
536 // This is valid for case 1.
537 // (Note that the final point is generally the PreStepPoint of a Step).
538 //
539 // This way the caller can always get a valid normal, pointing outside
540 // the solid for which it is computed, that can be used at his own
541 // discretion.
G4GRSVolume * CreateGRSVolume() const
friend std::ostream & operator<<(std::ostream &os, const G4Navigator &n)
G4RotationMatrix NetRotation() const
virtual void ResetState()
G4ThreeVector GetCurrentLocalCoordinate() const
G4ThreeVector fLastStepEndPointLocal
Definition: G4Navigator.hh:373
G4bool IsCheckModeActive() const
G4int GetVerboseLevel() const
G4ThreeVector ComputeLocalAxis(const G4ThreeVector &pVec) const
virtual G4TouchableHistoryHandle CreateTouchableHistoryHandle() const
void ResetStackAndState()
virtual G4double ComputeStep(const G4ThreeVector &pGlobalPoint, const G4ThreeVector &pDirection, const G4double pCurrentProposedStepLength, G4double &pNewSafety)
Definition: G4Navigator.cc:701
G4int fVerbose
Definition: G4Navigator.hh:377
G4bool IsActive() const
void PrintState() const
G4bool fEnteredDaughter
Definition: G4Navigator.hh:357
const G4AffineTransform GetLocalToGlobalTransform() const
int G4int
Definition: G4Types.hh:78
virtual G4VPhysicalVolume * ResetHierarchyAndLocate(const G4ThreeVector &point, const G4ThreeVector &direction, const G4TouchableHistory &h)
Definition: G4Navigator.cc:90
virtual G4ThreeVector GetLocalExitNormalAndCheck(const G4ThreeVector &point, G4bool *valid)
void LocateGlobalPointAndUpdateTouchableHandle(const G4ThreeVector &position, const G4ThreeVector &direction, G4TouchableHandle &oldTouchableToUpdate, const G4bool RelativeSearch=true)
void SetVerboseLevel(G4int level)
G4bool fWasLimitedByGeometry
Definition: G4Navigator.hh:367
void SetGeometricallyLimitedStep()
virtual G4ThreeVector GetLocalExitNormal(G4bool *valid)
void LocateGlobalPointAndUpdateTouchable(const G4ThreeVector &position, const G4ThreeVector &direction, G4VTouchable *touchableToUpdate, const G4bool RelativeSearch=true)
G4double CheckNextStep(const G4ThreeVector &pGlobalPoint, const G4ThreeVector &pDirection, const G4double pCurrentProposedStepLength, G4double &pNewSafety)
bool G4bool
Definition: G4Types.hh:79
G4NavigationHistory fHistory
Definition: G4Navigator.hh:353
G4bool fExitedMother
Definition: G4Navigator.hh:363
void Activate(G4bool flag)
G4bool EnteredDaughterVolume() const
const G4int n
EVolume CharacteriseDaughters(const G4LogicalVolume *pLog) const
void SetSavedState()
Definition: G4Navigator.cc:621
G4ThreeVector ComputeLocalPoint(const G4ThreeVector &rGlobPoint) const
G4double kCarTolerance
Definition: G4Navigator.hh:346
G4TouchableHistory * CreateTouchableHistory() const
G4AffineTransform GetMotherToDaughterTransform(G4VPhysicalVolume *dVolume, G4int dReplicaNo, EVolume dVolumeType)
virtual G4ThreeVector GetGlobalExitNormal(const G4ThreeVector &point, G4bool *valid)
G4int GetDaughtersRegularStructureId(const G4LogicalVolume *pLog) const
void SetWorldVolume(G4VPhysicalVolume *pWorld)
G4GRSSolid * CreateGRSSolid() const
const G4AffineTransform & GetGlobalToLocalTransform() const
virtual G4VPhysicalVolume * LocateGlobalPointAndSetup(const G4ThreeVector &point, const G4ThreeVector *direction=0, const G4bool pRelativeSearch=true, const G4bool ignoreDirection=true)
Definition: G4Navigator.cc:118
void EnableBestSafety(G4bool value=false)
const XML_Char int const XML_Char * value
void SetPushVerbosity(G4bool mode)
G4bool ExitedMotherVolume() const
G4ThreeVector fStepEndPoint
Definition: G4Navigator.hh:370
void CheckMode(G4bool mode)
G4int SeverityOfZeroStepping(G4int *noZeroSteps) const
EVolume
Definition: geomdefs.hh:68
double G4double
Definition: G4Types.hh:76
G4ThreeVector NetTranslation() const
virtual G4double ComputeSafety(const G4ThreeVector &globalpoint, const G4double pProposedMaxLength=DBL_MAX, const G4bool keepState=true)
#define DBL_MAX
Definition: templates.hh:83
virtual void SetupHierarchy()
G4VPhysicalVolume * GetWorldVolume() const
EVolume VolumeType(const G4VPhysicalVolume *pVol) const
virtual void LocateGlobalPointWithinVolume(const G4ThreeVector &position)
Definition: G4Navigator.cc:550
void RestoreSavedState()
Definition: G4Navigator.cc:650
virtual ~G4Navigator()
Definition: G4Navigator.cc:82