56#ifndef G4ITNAVIGATOR_HH
57#define G4ITNAVIGATOR_HH
113 const G4double pCurrentProposedStepLength,
130 const G4double pCurrentProposedStepLength,
151 const G4bool pRelativeSearch=
true,
152 const G4bool ignoreDirection=
true);
183 const G4bool RelativeSearch =
true);
192 const G4bool RelativeSearch =
true);
200 const G4bool RelativeSearch =
true);
209 const G4bool keepState =
true);
400 G4bool fLastTriedStepComputation;
406 G4bool fEntering,fExiting;
416 G4int fBlockedReplicaNo;
420 G4bool fLocatedOutsideWorld;
429 G4bool fChangedGrandMotherRefFrame;
433 G4bool fCalculatedExitNormal;
447 G4int fNumberZeroSteps;
449 G4int fActionThreshold_NoZeroSteps;
451 G4int fAbandonThreshold_NoZeroSteps;
468 G4SaveNavigatorState();
469 ~G4SaveNavigatorState()
override=
default;
472 G4bool sEntering, sExiting;
474 G4int sBlockedReplicaNo;
475 G4int sLastStepWasZero;
479 G4bool sWasLimitedByGeometry;
481 G4int sNumberZeroSteps;
486 G4bool sLocatedOutsideWorld;
488 G4bool sEnteredDaughter, sExitedMother;
493 G4SaveNavigatorState* fpSaveState;
506 G4bool fPushed{
false}, fWarnPush{
true};
519#include "G4ITNavigator1.icc"
virtual void LocateGlobalPointWithinVolume(const G4ThreeVector &position)
G4bool IsCheckModeActive() const
G4TouchableHistory * CreateTouchableHistory() const
virtual G4ThreeVector GetGlobalExitNormal(const G4ThreeVector &point, G4bool *valid)
G4ThreeVector NetTranslation() const
void Activate(G4bool flag)
G4VPhysicalVolume * GetWorldVolume() const
const G4AffineTransform GetLocalToGlobalTransform() const
G4int GetVerboseLevel() const
G4ThreeVector fStepEndPoint
G4ThreeVector GetCurrentLocalCoordinate() const
virtual G4VPhysicalVolume * LocateGlobalPointAndSetup(const G4ThreeVector &point, const G4ThreeVector *direction=nullptr, const G4bool pRelativeSearch=true, const G4bool ignoreDirection=true)
void LocateGlobalPointAndUpdateTouchable(const G4ThreeVector &position, const G4ThreeVector &direction, G4VTouchable *touchableToUpdate, const G4bool RelativeSearch=true)
void CheckMode(G4bool mode)
G4double CheckNextStep(const G4ThreeVector &pGlobalPoint, const G4ThreeVector &pDirection, const G4double pCurrentProposedStepLength, G4double &pNewSafety)
G4ThreeVector ComputeLocalAxis(const G4ThreeVector &pVec) const
void LocateGlobalPointAndUpdateTouchable(const G4ThreeVector &position, G4VTouchable *touchableToUpdate, const G4bool RelativeSearch=true)
virtual G4VPhysicalVolume * ResetHierarchyAndLocate(const G4ThreeVector &point, const G4ThreeVector &direction, const G4TouchableHistory &h)
void SetGeometricallyLimitedStep()
void ResetStackAndState()
G4int GetDaughtersRegularStructureId(const G4LogicalVolume *pLog) const
const G4AffineTransform & GetGlobalToLocalTransform() const
G4bool EnteredDaughterVolume() const
virtual G4TouchableHandle CreateTouchableHistoryHandle() const
virtual G4double ComputeSafety(const G4ThreeVector &globalpoint, const G4double pProposedMaxLength=DBL_MAX, const G4bool keepState=true)
G4TouchableHistory * CreateTouchableHistory(const G4NavigationHistory *) const
EVolume CharacteriseDaughters(const G4LogicalVolume *pLog) const
G4NavigationHistory fHistory
virtual G4ThreeVector GetLocalExitNormalAndCheck(const G4ThreeVector &point, G4bool *valid)
G4ThreeVector fLastStepEndPointLocal
void SetNavigatorState(G4ITNavigatorState_Lock1 *)
G4ITNavigator1 & operator=(const G4ITNavigator1 &)=delete
void LocateGlobalPointAndUpdateTouchableHandle(const G4ThreeVector &position, const G4ThreeVector &direction, G4TouchableHandle &oldTouchableToUpdate, const G4bool RelativeSearch=true)
virtual void SetupHierarchy()
G4RotationMatrix NetRotation() const
G4AffineTransform GetMotherToDaughterTransform(G4VPhysicalVolume *dVolume, G4int dReplicaNo, EVolume dVolumeType)
EVolume VolumeType(const G4VPhysicalVolume *pVol) const
virtual G4double ComputeStep(const G4ThreeVector &pGlobalPoint, const G4ThreeVector &pDirection, const G4double pCurrentProposedStepLength, G4double &pNewSafety)
G4bool fWasLimitedByGeometry
static const G4int fMaxNav
virtual G4ThreeVector GetLocalExitNormal(G4bool *valid)
G4ITNavigatorState_Lock1 * GetNavigatorState()
void SetPushVerbosity(G4bool mode)
G4bool ExitedMotherVolume() const
G4int SeverityOfZeroStepping(G4int *noZeroSteps) const
G4ITNavigator1(const G4ITNavigator1 &)=delete
virtual ~G4ITNavigator1()
void EnableBestSafety(G4bool value=false)
friend std::ostream & operator<<(std::ostream &os, const G4ITNavigator1 &n)
void SetVerboseLevel(G4int level)
G4ThreeVector ComputeLocalPoint(const G4ThreeVector &rGlobPoint) const
virtual void ResetState()
void SetWorldVolume(G4VPhysicalVolume *pWorld)
G4ITNavigatorState_Lock1()
virtual ~G4ITNavigatorState_Lock1()=default