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