57 #ifndef G4ITNAVIGATOR_HH
58 #define G4ITNAVIGATOR_HH
134 const G4double pCurrentProposedStepLength,
151 const G4double pCurrentProposedStepLength,
171 const G4bool pRelativeSearch=
true,
172 const G4bool ignoreDirection=
true);
209 const G4bool RelativeSearch =
true);
218 const G4bool RelativeSearch =
true);
226 const G4bool RelativeSearch =
true);
235 const G4bool keepState =
true);
248 const G4double CurrentProposedStepLength,
604 #define CheckNavigatorStateIsValid() \
605 if(fpNavigatorState == 0) \
607 G4ExceptionDescription exceptionDescription; \
608 exceptionDescription << "The navigator state is NULL. "; \
609 exceptionDescription << "Either NewNavigatorStateAndLocate was not called "; \
610 exceptionDescription << "or the provided navigator state was already NULL."; \
611 G4Exception((G4String("G4Navigator")+G4String(__FUNCTION__)).c_str(),\
612 "NavigatorStateNotValid",FatalException,exceptionDescription); \
615 #include "G4ITNavigator2.icc"
void LocateGlobalPointAndUpdateTouchableHandle(const G4ThreeVector &position, const G4ThreeVector &direction, G4TouchableHandle &oldTouchableToUpdate, const G4bool RelativeSearch=true)
void SetNavigatorState(G4ITNavigatorState_Lock2 *)
G4GRSVolume * CreateGRSVolume() const
G4bool IsCheckModeActive() const
G4NavigatorState * fpNavigatorState
G4ThreeVector sLastLocatedPointLocal
virtual void ResetState()
virtual G4ThreeVector GetLocalExitNormal(G4bool *valid)
G4ThreeVector fPreviousSftOrigin
void ResetNavigatorState()
void ResetStackAndState()
G4bool sWasLimitedByGeometry
G4VPhysicalVolume * fBlockedPhysicalVolume
#define RegisterTrackState(CLASS, STATE)
G4ITNavigator2 & operator=(const G4ITNavigator2 &)
virtual G4VPhysicalVolume * ResetHierarchyAndLocate(const G4ThreeVector &point, const G4ThreeVector &direction, const G4TouchableHistory &h)
std::shared_ptr< G4ITNavigatorState_Lock2 > GetSnapshotOfState()
virtual G4TouchableHistoryHandle CreateTouchableHistoryHandle() const
EInside InsideCurrentVolume(const G4ThreeVector &globalPoint) const
G4ThreeVector fLastLocatedPointLocal
G4ThreeVector ComputeLocalPoint(const G4ThreeVector &rGlobPoint) const
G4int fAbandonThreshold_NoZeroSteps
virtual ~G4NavigatorState()
G4bool fLastTriedStepComputation
void EnableBestSafety(G4bool value=false)
G4bool fCalculatedExitNormal
virtual G4double ComputeSafety(const G4ThreeVector &globalpoint, const G4double pProposedMaxLength=DBL_MAX, const G4bool keepState=true)
G4NavigationHistory fHistory
friend std::ostream & operator<<(std::ostream &os, const G4ITNavigator2 &n)
EVolume VolumeType(const G4VPhysicalVolume *pVol) const
EVolume CharacteriseDaughters(const G4LogicalVolume *pLog) const
const G4AffineTransform & GetGlobalToLocalTransform() const
void SetPushVerbosity(G4bool mode)
G4VoxelSafety * fpVoxelSafety
G4ThreeVector fStepEndPoint
void SetGeometricallyLimitedStep()
virtual G4double ComputeStep(const G4ThreeVector &pGlobalPoint, const G4ThreeVector &pDirection, const G4double pCurrentProposedStepLength, G4double &pNewSafety)
G4int GetDaughtersRegularStructureId(const G4LogicalVolume *pLog) const
G4VPhysicalVolume * GetWorldVolume() const
void Activate(G4bool flag)
void CheckMode(G4bool mode)
G4VPhysicalVolume * NewNavigatorStateAndLocate(const G4ThreeVector &p, const G4ThreeVector &direction)
virtual ~G4ITNavigator2()
G4RegularNavigation fregularNav
G4ThreeVector ComputeLocalAxis(const G4ThreeVector &pVec) const
G4bool fChangedGrandMotherRefFrame
const XML_Char int const XML_Char * value
G4ReplicaNavigation freplicaNav
void LocateGlobalPointAndUpdateTouchable(const G4ThreeVector &position, const G4ThreeVector &direction, G4VTouchable *touchableToUpdate, const G4bool RelativeSearch=true)
virtual G4ThreeVector GetLocalExitNormalAndCheck(const G4ThreeVector &point, G4bool *valid)
G4ParameterisedNavigation fparamNav
G4bool sLocatedOutsideWorld
G4ThreeVector fGrandMotherExitNormal
G4VPhysicalVolume * fTopPhysical
virtual G4VPhysicalVolume * LocateGlobalPointAndSetup(const G4ThreeVector &point, const G4ThreeVector *direction=0, const G4bool pRelativeSearch=true, const G4bool ignoreDirection=true)
virtual G4bool RecheckDistanceToCurrentBoundary(const G4ThreeVector &pGlobalPoint, const G4ThreeVector &pDirection, const G4double CurrentProposedStepLength, G4double *prDistance, G4double *prNewSafety=0) const
G4int GetVerboseLevel() const
void ResetFromSnapshot(std::shared_ptr< G4ITNavigatorState_Lock2 >)
void GetRandomInCurrentVolume(G4ThreeVector &rndmPoint) const
void SetVerboseLevel(G4int level)
G4ITNavigatorState_Lock2()
G4ThreeVector sPreviousSftOrigin
G4bool EnteredDaughterVolume() const
G4ThreeVector fExitNormal
G4int fActionThreshold_NoZeroSteps
G4ITNavigatorState_Lock2 * GetNavigatorState()
G4int SeverityOfZeroStepping(G4int *noZeroSteps) const
G4ThreeVector GetCurrentLocalCoordinate() const
void SetWorldVolume(G4VPhysicalVolume *pWorld)
G4bool ExitedMotherVolume() const
G4bool fLocatedOutsideWorld
virtual ~G4ITNavigatorState_Lock2()
G4ThreeVector sExitNormal
G4AffineTransform GetMotherToDaughterTransform(G4VPhysicalVolume *dVolume, G4int dReplicaNo, EVolume dVolumeType)
static const G4int fMaxNav
G4ThreeVector NetTranslation() const
void ComputeStepLog(const G4ThreeVector &pGlobalpoint, G4double moveLenSq) const
friend std::ostream & operator<<(std::ostream &os, const G4ITNavigator2 &n)
G4double CheckNextStep(const G4ThreeVector &pGlobalPoint, const G4ThreeVector &pDirection, const G4double pCurrentProposedStepLength, G4double &pNewSafety)
G4ThreeVector fExitNormalGlobalFrame
virtual void SetupHierarchy()
G4NavigatorState & operator=(const G4NavigatorState &)
virtual G4ThreeVector GetGlobalExitNormal(const G4ThreeVector &point, G4bool *valid)
G4VPhysicalVolume * spBlockedPhysicalVolume
const G4AffineTransform GetLocalToGlobalTransform() const
G4ThreeVector fLastStepEndPointLocal
G4TouchableHistory * CreateTouchableHistory() const
void ResetStackAndState()
virtual void LocateGlobalPointWithinVolume(const G4ThreeVector &position)
virtual ~G4SaveNavigatorState()
G4GRSSolid * CreateGRSSolid() const
G4RotationMatrix NetRotation() const
G4VoxelNavigation fvoxelNav
void CheckNavigatorState() const
G4ITNavigatorState_Lock2(const G4ITNavigatorState_Lock2 &)
G4bool fWasLimitedByGeometry
G4NormalNavigation fnormalNav