44 fFirstCall(true), fVerbose(0)
72 G4Exception(
"G4ITSafetyHelper::InitialiseNavigator",
74 "Found that existing tracking Navigator has NULL world");
102 currentMaxStep, newSafety);
121 if ((moveLengthSq > 0.0))
135 if (newSafety < maxLength)
163 ed <<
" Safety Sphere: Radius = " <<
fpTrackState->fLastSafety;
165 ed <<
" New Location : Move = " << moveVec.
mag2();
166 ed <<
" Position = " << newPosition <<
G4endl;
167 G4Exception(
"G4ITSafetyHelper::ReLocateWithinVolume",
"GeomNav999",
169 "Unsafe Move> Asked to relocate beyond 'Safety sphere'.");
189 fpMassNavigator->LocateGlobalPointAndSetup(newPosition, &newDirection,
true,
void ReLocateWithinVolume(const G4ThreeVector &pGlobalPoint)
static G4ITTransportationManager * GetTransportationManager()
std::ostringstream G4ExceptionDescription
void InitialiseNavigator()
virtual void NewTrackState()
void Locate(const G4ThreeVector &pGlobalPoint, const G4ThreeVector &direction)
G4ITNavigator * fpMassNavigator
void ReLocate(const G4ThreeVector &position)
G4double ComputeSafety(const G4ThreeVector &pGlobalPoint, G4double maxRadius=DBL_MAX)
G4bool fUseParallelGeometries
G4double CheckNextStep(const G4ThreeVector &position, const G4ThreeVector &direction, const G4double currentMaxStep, G4double &newSafety)
G4ITNavigator * GetNavigatorForTracking() const
StateTypeHandle fpTrackState
void Locate(const G4ThreeVector &position, const G4ThreeVector &direction, G4bool relativeSearch=true)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4PathFinder * fpPathFinder
static G4PathFinder * GetInstance()
G4double ComputeSafety(const G4ThreeVector &globalPoint)