69#define ALTERNATIVE_VOXEL_NAV 1
89 const G4double pCurrentProposedStepLength,
106 const G4double pCurrentProposedStepLength,
127 const G4bool pRelativeSearch =
true,
128 const G4bool ignoreDirection =
true);
159 const G4bool RelativeSearch =
true);
168 const G4bool RelativeSearch =
true);
176 const G4bool RelativeSearch =
true);
185 const G4bool keepState =
true);
360#ifdef ALTERNATIVE_VOXEL_NAV
439 G4int fBlockedReplicaNo;
449 G4int fNumberZeroSteps;
451 G4int fActionThreshold_NoZeroSteps = 10;
453 G4int fAbandonThreshold_NoZeroSteps = 25;
459 G4bool fLastTriedStepComputation =
false;
465 G4bool fEntering,fExiting;
479 G4bool fLocatedOutsideWorld;
482 G4bool fChangedGrandMotherRefFrame;
483 G4bool fCalculatedExitNormal;
495 struct G4SaveNavigatorState
499 G4bool sEntering, sExiting;
501 G4int sBlockedReplicaNo;
502 G4int sLastStepWasZero;
503 G4bool sWasLimitedByGeometry;
507 G4bool sLocatedOutsideWorld;
509 G4bool sEnteredDaughter, sExitedMother;
524#ifdef ALTERNATIVE_VOXEL_NAV
539 G4bool fPushed =
false, fWarnPush =
true;
545#include "G4Navigator.icc"
void SetVerboseLevel(G4int level)
virtual void SetupHierarchy()
G4TouchableHistory * CreateTouchableHistory() const
void SetPushVerbosity(G4bool mode)
void LocateGlobalPointAndUpdateTouchable(const G4ThreeVector &position, G4VTouchable *touchableToUpdate, const G4bool RelativeSearch=true)
void SetGeometricallyLimitedStep()
G4ThreeVector fStepEndPoint
void SetExternalNavigation(G4VExternalNavigation *externalNav)
G4int GetVerboseLevel() const
virtual void ResetState()
virtual G4double ComputeSafety(const G4ThreeVector &globalpoint, const G4double pProposedMaxLength=DBL_MAX, const G4bool keepState=true)
EVolume VolumeType(const G4VPhysicalVolume *pVol) const
void Activate(G4bool flag)
G4VExternalNavigation * GetExternalNavigation() const
void CheckMode(G4bool mode)
G4GRSVolume * CreateGRSVolume() const
virtual void LocateGlobalPointWithinVolume(const G4ThreeVector &position)
G4Navigator(const G4Navigator &)=delete
G4ThreeVector fLastStepEndPointLocal
G4bool fWasLimitedByGeometry
G4bool CheckOverlapsIterative(G4VPhysicalVolume *vol)
G4Navigator & operator=(const G4Navigator &)=delete
EVolume CharacteriseDaughters(const G4LogicalVolume *pLog) const
G4int SeverityOfZeroStepping(G4int *noZeroSteps) const
virtual G4ThreeVector GetGlobalExitNormal(const G4ThreeVector &point, G4bool *valid)
G4ThreeVector ComputeLocalPoint(const G4ThreeVector &rGlobPoint) const
void SetVoxelNavigation(G4VoxelNavigation *voxelNav)
virtual G4TouchableHistoryHandle CreateTouchableHistoryHandle() const
void LocateGlobalPointAndUpdateTouchableHandle(const G4ThreeVector &position, const G4ThreeVector &direction, G4TouchableHandle &oldTouchableToUpdate, const G4bool RelativeSearch=true)
G4ThreeVector ComputeLocalAxis(const G4ThreeVector &pVec) const
G4ThreeVector NetTranslation() const
virtual G4ThreeVector GetLocalExitNormalAndCheck(const G4ThreeVector &point, G4bool *valid)
virtual G4ThreeVector GetLocalExitNormal(G4bool *valid)
const G4AffineTransform GetLocalToGlobalTransform() const
void InformLastStep(G4double lastStep, G4bool entersDaughtVol, G4bool exitsMotherVol)
G4RotationMatrix NetRotation() const
virtual G4double ComputeStep(const G4ThreeVector &pGlobalPoint, const G4ThreeVector &pDirection, const G4double pCurrentProposedStepLength, G4double &pNewSafety)
virtual G4VPhysicalVolume * LocateGlobalPointAndSetup(const G4ThreeVector &point, const G4ThreeVector *direction=nullptr, const G4bool pRelativeSearch=true, const G4bool ignoreDirection=true)
G4Navigator * Clone() const
void LocateGlobalPointAndUpdateTouchable(const G4ThreeVector &position, const G4ThreeVector &direction, G4VTouchable *touchableToUpdate, const G4bool RelativeSearch=true)
G4AffineTransform GetMotherToDaughterTransform(G4VPhysicalVolume *dVolume, G4int dReplicaNo, EVolume dVolumeType)
void ResetStackAndState()
G4GRSSolid * CreateGRSSolid() const
void SetWorldVolume(G4VPhysicalVolume *pWorld)
G4bool IsCheckModeActive() const
G4bool EnteredDaughterVolume() const
G4double CheckNextStep(const G4ThreeVector &pGlobalPoint, const G4ThreeVector &pDirection, const G4double pCurrentProposedStepLength, G4double &pNewSafety)
virtual G4VPhysicalVolume * ResetHierarchyAndLocate(const G4ThreeVector &point, const G4ThreeVector &direction, const G4TouchableHistory &h)
G4bool ExitedMotherVolume() const
G4int GetDaughtersRegularStructureId(const G4LogicalVolume *pLv) const
G4ThreeVector GetLastStepEndPoint() const
friend std::ostream & operator<<(std::ostream &os, const G4Navigator &n)
G4VPhysicalVolume * GetWorldVolume() const
G4NavigationHistory fHistory
const G4AffineTransform & GetGlobalToLocalTransform() const
G4TouchableHistory * CreateTouchableHistory(const G4NavigationHistory *) const
void EnableBestSafety(G4bool value=false)
G4ThreeVector GetCurrentLocalCoordinate() const