53 : fWasLimitedByGeometry(false), fVerbose(0),
54 fTopPhysical(0), fCheck(false), fPushed(false), fWarnPush(true)
120 const G4bool relativeSearch,
121 const G4bool ignoreDirection )
123 G4bool notKnownContained=
true, noResult;
135 if( considerDirection && pGlobalDirection != 0 )
137 globalDirection=*pGlobalDirection;
145 G4cout <<
"*** G4Navigator::LocateGlobalPointAndSetup: ***" <<
G4endl;
146 G4cout <<
" Called with arguments: " << G4endl
147 <<
" Globalpoint = " << globalPoint << G4endl
148 <<
" RelativeSearch = " << relativeSearch <<
G4endl;
154 G4cout.precision(oldcoutPrec);
158 if ( !relativeSearch )
241 notKnownContained =
false;
262 G4int noLevelsExited=0 ;
264 while (notKnownContained)
270 insideCode = targetSolid->
Inside(localPoint);
274 G4String solidResponse =
"-kInside-";
276 solidResponse =
"-kOutside-";
278 solidResponse =
"-kSurface-";
279 G4cout <<
"*** G4Navigator::LocateGlobalPointAndSetup(): ***" <<
G4endl
280 <<
" Invoked Inside() for solid: " << targetSolid->
GetName()
281 <<
". Solid replied: " << solidResponse <<
G4endl
282 <<
" For local point p: " << localPoint <<
G4endl;
307 if( noLevelsExited > 1 )
331 if( (!
fExiting)&&considerDirection )
336 G4bool directionExiting =
false;
347 directionExiting = normal.dot(localDirection) > 0.0;
348 isExiting = isExiting || directionExiting;
364 if( noLevelsExited > 1 )
386 notKnownContained=
false;
391 notKnownContained=
false;
412 if (!targetPhysical) {
break; }
499 #ifdef G4DEBUG_NAVIGATION
503 G4cout <<
"*** G4Navigator::LocateGlobalPointAndSetup() ***" <<
G4endl;
518 if (targetPhysical) { curPhysVol_Name = targetPhysical->
GetName(); }
519 G4cout <<
" Return value = new volume = " << curPhysVol_Name <<
G4endl;
524 G4cout <<
"Upon exiting LocateGlobalPointAndSetup():" <<
G4endl;
527 G4cout.precision(oldcoutPrec);
533 return targetPhysical;
556 #ifdef G4DEBUG_NAVIGATION
559 G4cout <<
"Entering LocateGlobalWithinVolume(): History = " <<
G4endl;
593 G4Exception(
"G4Navigator::LocateGlobalPointWithinVolume()",
595 "Not applicable for replicated volumes.");
703 const G4double pCurrentProposedStepLength,
729 G4cout <<
"*** G4Navigator::ComputeStep: ***" <<
G4endl;
731 <<
" - Proposed step length = " << pCurrentProposedStepLength
733 #ifdef G4DEBUG_NAVIGATION
736 G4cout <<
" Called with the arguments: " << G4endl
737 <<
" Globalpoint = " << std::setw(25) << pGlobalpoint << G4endl
738 <<
" Direction = " << std::setw(25) << pDirection <<
G4endl;
755 G4double moveLenSq = (newLocalPoint-oldLocalPoint).mag2();
777 pCurrentProposedStepLength,
794 pCurrentProposedStepLength,
822 "Point is relocated in voxels, while it should be outside!");
825 pCurrentProposedStepLength,
840 pCurrentProposedStepLength,
859 pCurrentProposedStepLength,
873 pCurrentProposedStepLength,
885 G4Exception(
"G4Navigator::ComputeStep()",
"GeomNav0001",
896 G4bool calculatedExitNormal;
901 pCurrentProposedStepLength,
905 calculatedExitNormal,
939 #ifdef G4DEBUG_NAVIGATION
942 G4cout <<
"G4Navigator::ComputeStep(): another zero step, # "
944 <<
" at " << pGlobalpoint
945 <<
" in volume " << motherPhysical->
GetName()
946 <<
" nav-comp-step calls # " << sNavCScalls
958 std::ostringstream message;
959 message <<
"Track stuck or not moving." <<
G4endl
960 <<
" Track stuck, not moving for "
962 <<
" in volume -" << motherPhysical->
GetName()
963 <<
"- at point " << pGlobalpoint <<
G4endl
964 <<
" direction: " << pDirection <<
"." <<
G4endl
965 <<
" Potential geometry or navigation problem !"
967 <<
" Trying pushing it of " << Step <<
" mm ...";
968 G4Exception(
"G4Navigator::ComputeStep()",
"GeomNav1002",
969 JustWarning, message,
"Potential overlap in geometry!");
978 std::ostringstream message;
979 message <<
"Stuck Track: potential geometry or navigation problem."
981 <<
" Track stuck, not moving for "
983 <<
" in volume -" << motherPhysical->
GetName()
984 <<
"- at point " << pGlobalpoint <<
G4endl
985 <<
" direction: " << pDirection <<
".";
987 G4Exception(
"G4Navigator::ComputeStep()",
"GeomNav0003",
1004 #ifdef G4DEBUG_NAVIGATION
1007 G4cout <<
" At G4Nav CompStep End - if(exiting) - fExiting= " <<
fExiting
1068 #ifdef G4DEBUG_NAVIGATION
1071 desc <<
"Problem in ComputeStep: Replica Navigation did not provide"
1072 <<
" valid exit Normal. " <<
G4endl;
1073 desc <<
" Do not know how calculate it in this case." <<
G4endl;
1074 desc <<
" Location = " << finalLocalPoint <<
G4endl;
1075 desc <<
" Volume name = " << motherPhysical->
GetName()
1077 G4Exception(
"G4Navigator::ComputeStep()",
"GeomNav0003",
1078 JustWarning, desc,
"Normal not available for exiting.");
1123 G4cout <<
" Returned step= " << Step;
1127 G4cout <<
" Requested step= " << pCurrentProposedStepLength ;
1145 const G4double pCurrentProposedStepLength,
1156 pCurrentProposedStepLength,
1219 for ( i=1; i<=cdepth; i++ )
1248 ComputeMaterial(replicaNo, current, &touchable) );
1275 if( candidateLogical )
1297 currentSolid= candidateLogical->
GetSolid();
1298 inSideIt = currentSolid->
Inside(daughterPointOwnLocal);
1299 onSurface = (inSideIt ==
kSurface);
1304 safety = (currentSolid->
DistanceToIn(daughterPointOwnLocal));
1307 else if (inSideIt ==
kInside )
1309 safety = (currentSolid->
DistanceToOut(daughterPointOwnLocal));
1316 nextSolidExitNormal =
1321 ExitNormal = -nextSolidExitNormal;
1329 std::ostringstream message;
1330 message <<
"Point not on surface ! " <<
G4endl
1332 << daughterPointOwnLocal <<
G4endl
1333 <<
" Physical volume = "
1335 <<
" Logical volume = "
1337 <<
" Solid = " << currentSolid->
GetName()
1340 << *currentSolid <<
G4endl;
1343 message <<
"Point is Outside. " << G4endl
1344 <<
" Safety (from outside) = " << safety <<
G4endl;
1348 message <<
"Point is Inside. " << G4endl
1349 <<
" Safety (from inside) = " << safety <<
G4endl;
1351 G4Exception(
"G4Navigator::GetLocalExitNormal()",
"GeomNav1001",
1371 "Incorrect call to GetLocalSurfaceNormal." );
1384 desc <<
" Parameters of solid: " << *daughterSolid
1388 "Surface Normal returned by Solid is not a Unit Vector." );
1406 message <<
"Function called when *NOT* at a Boundary." <<
G4endl;
1423 G4int enteringReplicaNo,
1426 switch (enteringVolumeType)
1431 G4Exception(
"G4Navigator::GetMotherToDaughterTransform()",
1433 "Method NOT Implemented yet for replica volumes.");
1441 pParam->
ComputeSolid(enteringReplicaNo, pEnteringPhysVol);
1476 #ifdef G4DEBUG_NAVIGATION
1481 G4ThreeVector ExpectedBoundaryPointLocal;
1484 ExpectedBoundaryPointLocal =
1504 G4bool* pNormalCalculated)
1514 *pNormalCalculated =
true;
1522 #ifdef G4DEBUG_NAVIGATION
1530 edN <<
" State of Navigator: " <<
G4endl;
1536 "LocalExitNormalAndCheck() did not calculate Normal.");
1540 G4double localMag2= localNormal.mag2();
1545 edN <<
"G4Navigator::GetGlobalExitNormal: "
1546 <<
" Using Local Normal - from call to GetLocalExitNormalAndCheck. "
1548 <<
" Local Exit Normal = " << localNormal <<
" || = "
1549 << std::sqrt(localMag2) <<
G4endl
1550 <<
" Global Exit Normal = " << globalNormal <<
" || = "
1551 << globalNormal.mag() <<
G4endl;
1556 "Value obtained from new local *solid* is incorrect.");
1557 localNormal = localNormal.unit();
1563 #ifdef G4DEBUG_NAVIGATION
1578 edDfn <<
"Found difference in normals in case of exiting mother "
1579 <<
"- when Get is called after ComputingStep " <<
G4endl;
1580 edDfn <<
" Magnitude of diff = " << diffNorm.mag() <<
G4endl;
1581 edDfn <<
" Normal stored (Global) = " << fExitNormalGlobalFrame
1583 edDfn <<
" Global Computed from Local = " << globalNormal <<
G4endl;
1584 G4Exception(
"G4Navigator::GetGlobalExitNormal()",
"GeomNav0003",
1590 return globalNormal;
1594 #define G4NEW_SAFETY 1
1611 #ifdef G4DEBUG_NAVIGATION
1615 G4cout <<
"*** G4Navigator::ComputeSafety: ***" <<
G4endl
1616 <<
" Called at point: " << pGlobalpoint <<
G4endl;
1620 <<
" - Maximum length = " << pMaxLength <<
G4endl;
1623 G4cout <<
" ----- Upon entering Compute Safety:" <<
G4endl;
1635 if( !(endpointOnSurface && stayedOnEndpoint) )
1648 #ifdef G4DEBUG_NAVIGATION
1651 G4cout <<
" G4Navigator::ComputeSafety() relocates-in-volume to point: "
1652 << pGlobalpoint <<
G4endl;
1669 *motherPhysical, pMaxLength);
1670 newSafety= safetyTwo;
1675 newSafety= safetyOldVoxel;
1694 G4Exception(
"G4Navigator::ComputeSafety()",
"GeomNav0001",
1707 #ifdef G4DEBUG_NAVIGATION
1710 G4cout <<
" G4Navigator::ComputeSafety() finds that point - "
1711 << pGlobalpoint <<
" - is on surface " <<
G4endl;
1728 #ifdef G4DEBUG_NAVIGATION
1733 G4cout <<
" Returned value of Safety = " << newSafety <<
G4endl;
1735 G4cout.precision(oldcoutPrec);
1759 G4cout <<
"The current state of G4Navigator is: " <<
G4endl;
1762 <<
" Exiting = " <<
fExiting << G4endl
1763 <<
" Entering = " <<
fEntering << G4endl
1764 <<
" BlockedPhysicalVolume= " ;
1777 G4cout << std::setw(30) <<
" ExitNormal " <<
" "
1778 << std::setw( 5) <<
" Valid " <<
" "
1779 << std::setw( 9) <<
" Exiting " <<
" "
1780 << std::setw( 9) <<
" Entering" <<
" "
1781 << std::setw(15) <<
" Blocked:Volume " <<
" "
1782 << std::setw( 9) <<
" ReplicaNo" <<
" "
1783 << std::setw( 8) <<
" LastStepZero " <<
" "
1787 <<
", " << std::setw(7) <<
fExitNormal.z() <<
" ) "
1789 << std::setw( 9) <<
fExiting <<
" "
1792 G4cout << std::setw(15) <<
"None";
1806 G4cout.precision(oldcoutPrec);
1835 G4double shiftOrigin = std::sqrt(shiftOriginSafSq);
1838 if( diffShiftSaf > fAccuracyForWarning )
1842 std::ostringstream message, suggestion;
1843 message <<
"Accuracy error or slightly inaccurate position shift."
1845 <<
" The Step's starting point has moved "
1846 << std::sqrt(moveLenSq)/
mm <<
" mm " <<
G4endl
1847 <<
" since the last call to a Locate method." <<
G4endl
1848 <<
" This has resulted in moving "
1849 << shiftOrigin/
mm <<
" mm "
1850 <<
" from the last point at which the safety "
1851 <<
" was calculated " <<
G4endl
1852 <<
" which is more than the computed safety= "
1853 << fPreviousSafety/
mm <<
" mm at that point." <<
G4endl
1854 <<
" This difference is "
1855 << diffShiftSaf/
mm <<
" mm." <<
G4endl
1856 <<
" The tolerated accuracy is "
1857 << fAccuracyForException/
mm <<
" mm.";
1861 if( ((++warnNow % 100) == 1) )
1864 <<
" This problem can be due to either " <<
G4endl
1865 <<
" - a process that has proposed a displacement"
1866 <<
" larger than the current safety , or" <<
G4endl
1867 <<
" - inaccuracy in the computation of the safety";
1868 suggestion <<
"We suggest that you " << G4endl
1869 <<
" - find i) what particle is being tracked, and "
1870 <<
" ii) through what part of your geometry " << G4endl
1871 <<
" for example by re-running this event with "
1873 <<
" /tracking/verbose 1 " << G4endl
1874 <<
" - check which processes you declare for"
1875 <<
" this particle (and look at non-standard ones)"
1877 <<
" - in case, create a detailed logfile"
1878 <<
" of this event using:" << G4endl
1879 <<
" /tracking/verbose 6 ";
1883 message,
G4String(suggestion.str()));
1884 G4cout.precision(oldcoutPrec);
1885 G4cerr.precision(oldcerrPrec);
1887 #ifdef G4DEBUG_NAVIGATION
1890 G4cerr <<
"WARNING - G4Navigator::ComputeStep()" <<
G4endl
1891 <<
" The Step's starting point has moved "
1892 << std::sqrt(moveLenSq) <<
"," <<
G4endl
1893 <<
" which has taken it to the limit of"
1894 <<
" the current safety. " <<
G4endl;
1899 if ( shiftOriginSafSq >
sqr(safetyPlus) )
1901 std::ostringstream message;
1902 message <<
"May lead to a crash or unreliable results." <<
G4endl
1903 <<
" Position has shifted considerably without"
1904 <<
" notifying the navigator !" <<
G4endl
1905 <<
" Tolerated safety: " << safetyPlus <<
G4endl
1906 <<
" Computed shift : " << shiftOriginSafSq;
1907 G4Exception(
"G4Navigator::ComputeStep()",
"GeomNav1002",
1924 G4int oldcoutPrec = os.precision(4);
1927 os <<
"The current state of G4Navigator is: " <<
G4endl;
1930 <<
" Exiting = " << n.
fExiting << G4endl
1931 <<
" Entering = " << n.
fEntering << G4endl
1932 <<
" BlockedPhysicalVolume= " ;
1945 os << std::setw(30) <<
" ExitNormal " <<
" "
1946 << std::setw( 5) <<
" Valid " <<
" "
1947 << std::setw( 9) <<
" Exiting " <<
" "
1948 << std::setw( 9) <<
" Entering" <<
" "
1949 << std::setw(15) <<
" Blocked:Volume " <<
" "
1950 << std::setw( 9) <<
" ReplicaNo" <<
" "
1951 << std::setw( 8) <<
" LastStepZero " <<
" "
1955 <<
", " << std::setw(7) << n.
fExitNormal.z() <<
" ) "
1957 << std::setw( 9) << n.
fExiting <<
" "
1960 { os << std::setw(15) <<
"None"; }
1979 os.precision(oldcoutPrec);
G4ReplicaNavigation freplicaNav
G4ParameterisedNavigation fparamNav
G4SmartVoxelHeader * GetVoxelHeader() const
G4ThreeVector sExitNormal
G4VPhysicalVolume * GetTopVolume() const
G4VoxelNavigation fvoxelNav
G4VPhysicalVolume * fBlockedPhysicalVolume
virtual void ResetState()
G4bool fLastTriedStepComputation
virtual G4bool LevelLocate(G4NavigationHistory &history, const G4VPhysicalVolume *blockedVol, const G4int blockedNum, const G4ThreeVector &globalPoint, const G4ThreeVector *globalDirection, const G4bool pLocatedOnEdge, G4ThreeVector &localPoint)
G4VoxelSafety * fpVoxelSafety
G4double ComputeStep(const G4ThreeVector &globalPoint, const G4ThreeVector &globalDirection, const G4double currentProposedStepLength, G4double &newSafety, G4NavigationHistory &history, G4bool &validExitNormal, G4ThreeVector &exitNormal, G4bool &exiting, G4bool &entering, G4VPhysicalVolume *(*pBlockedPhysical), G4int &blockedReplicaNo)
const G4ThreeVector & GetTranslation() const
static const G4double kInfinity
std::ostringstream G4ExceptionDescription
void UpdateMaterial(G4Material *pMaterial)
CLHEP::Hep3Vector G4ThreeVector
CLHEP::HepRotation G4RotationMatrix
G4ThreeVector fLastStepEndPointLocal
virtual void ComputeDimensions(G4VPVParameterisation *p, const G4int n, const G4VPhysicalVolume *pRep)
G4int GetVerboseLevel() const
G4ThreeVector fGrandMotherExitNormal
G4ThreeVector ComputeLocalAxis(const G4ThreeVector &pVec) const
virtual G4TouchableHistoryHandle CreateTouchableHistoryHandle() const
virtual G4VSolid * ComputeSolid(const G4int, G4VPhysicalVolume *)
void ResetStackAndState()
G4double GetSurfaceTolerance() const
G4VPhysicalVolume * spBlockedPhysicalVolume
virtual G4double ComputeStep(const G4ThreeVector &pGlobalPoint, const G4ThreeVector &pDirection, const G4double pCurrentProposedStepLength, G4double &pNewSafety)
G4double ComputeSafety(const G4ThreeVector &localPoint, const G4VPhysicalVolume ¤tPhysical, G4double maxLength=DBL_MAX)
void SetSolid(G4VSolid *pSolid)
G4int fAbandonThreshold_NoZeroSteps
G4SmartVoxelNode * ParamVoxelLocate(G4SmartVoxelHeader *pHead, const G4ThreeVector &localPoint)
EVolume GetVolumeType(G4int n) const
G4double ComputeStep(const G4ThreeVector &globalPoint, const G4ThreeVector &globalDirection, const G4ThreeVector &localPoint, const G4ThreeVector &localDirection, const G4double currentProposedStepLength, G4double &newSafety, G4NavigationHistory &history, G4bool &validExitNormal, G4bool &calculatedExitNormal, G4ThreeVector &exitNormal, G4bool &exiting, G4bool &entering, G4VPhysicalVolume *(*pBlockedPhysical), G4int &blockedReplicaNo)
const G4AffineTransform GetLocalToGlobalTransform() const
virtual G4GeometryType GetEntityType() const =0
G4ReferenceCountedHandle< G4TouchableHistory > G4TouchableHistoryHandle
G4bool LevelLocate(G4NavigationHistory &history, const G4VPhysicalVolume *blockedVol, const G4int blockedNum, const G4ThreeVector &globalPoint, const G4ThreeVector *globalDirection, const G4bool pLocatedOnEdge, G4ThreeVector &localPoint)
void ComputeTransformation(const G4int replicaNo, G4VPhysicalVolume *pVol, G4ThreeVector &point) const
virtual G4VPhysicalVolume * ResetHierarchyAndLocate(const G4ThreeVector &point, const G4ThreeVector &direction, const G4TouchableHistory &h)
G4ThreeVector fExitNormalGlobalFrame
virtual G4ThreeVector GetLocalExitNormalAndCheck(const G4ThreeVector &point, G4bool *valid)
G4int GetTopReplicaNo() const
void SetVerboseLevel(G4int level)
G4double ComputeSafety(const G4ThreeVector &globalpoint, const G4NavigationHistory &history, const G4double pMaxLength=DBL_MAX)
static double normal(HepRandomEngine *eptr)
G4bool fWasLimitedByGeometry
G4NormalNavigation fnormalNav
void SetNormalNavigation(G4NormalNavigation *fnormnav)
G4double ComputeSafety(const G4ThreeVector &localPoint, const G4NavigationHistory &history, const G4double pProposedMaxLength=DBL_MAX)
G4GLOB_DLL std::ostream G4cout
const G4String & GetName() const
virtual EInside Inside(const G4ThreeVector &p) const =0
virtual G4ThreeVector GetLocalExitNormal(G4bool *valid)
G4double ComputeStep(const G4ThreeVector &globalPoint, const G4ThreeVector &globalDirection, const G4double currentProposedStepLength, G4double &newSafety, G4NavigationHistory &history, G4bool &validExitNormal, G4ThreeVector &exitNormal, G4bool &exiting, G4bool &entering, G4VPhysicalVolume *(*pBlockedPhysical), G4int &blockedReplicaNo)
G4ThreeVector fPreviousSftOrigin
G4double CheckNextStep(const G4ThreeVector &pGlobalPoint, const G4ThreeVector &pDirection, const G4double pCurrentProposedStepLength, G4double &pNewSafety)
EVolume GetTopVolumeType() const
virtual G4int GetRegularStructureId() const =0
G4NavigationHistory fHistory
virtual G4double ComputeSafety(const G4ThreeVector &globalpoint, const G4NavigationHistory &history, const G4double pMaxLength=DBL_MAX)
virtual G4ThreeVector SurfaceNormal(const G4ThreeVector &p) const =0
virtual G4VPVParameterisation * GetParameterisation() const =0
virtual void SetCopyNo(G4int CopyNo)=0
G4int GetReplicaNo(G4int n) const
G4bool LevelLocate(G4NavigationHistory &history, const G4VPhysicalVolume *blockedVol, const G4int blockedNum, const G4ThreeVector &globalPoint, const G4ThreeVector *globalDirection, const G4bool pLocatedOnEdge, G4ThreeVector &localPoint)
G4ThreeVector sLastLocatedPointLocal
G4bool EnteredDaughterVolume() const
virtual G4double DistanceToIn(const G4ThreeVector &p, const G4ThreeVector &v) const =0
#define G4DEBUG_NAVIGATION
EVolume CharacteriseDaughters(const G4LogicalVolume *pLog) const
G4ThreeVector fLastLocatedPointLocal
G4bool fLocatedOutsideWorld
G4ThreeVector ComputeLocalPoint(const G4ThreeVector &rGlobPoint) const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
static const double perMillion
void NewLevel(G4VPhysicalVolume *pNewMother, EVolume vType=kNormal, G4int nReplica=-1)
G4TouchableHistory * CreateTouchableHistory() const
G4double ComputeStep(const G4ThreeVector &localPoint, const G4ThreeVector &localDirection, const G4double currentProposedStepLength, G4double &newSafety, G4NavigationHistory &history, G4bool &validExitNormal, G4ThreeVector &exitNormal, G4bool &exiting, G4bool &entering, G4VPhysicalVolume *(*pBlockedPhysical), G4int &blockedReplicaNo)
G4AffineTransform GetMotherToDaughterTransform(G4VPhysicalVolume *dVolume, G4int dReplicaNo, EVolume dVolumeType)
G4LogicalVolume * GetLogicalVolume() const
const G4AffineTransform & GetTransform(G4int n) const
virtual G4ThreeVector GetGlobalExitNormal(const G4ThreeVector &point, G4bool *valid)
G4int GetDaughtersRegularStructureId(const G4LogicalVolume *pLog) const
virtual void ComputeTransformation(const G4int, G4VPhysicalVolume *) const =0
virtual G4int GetCopyNo() const =0
const G4AffineTransform & GetGlobalToLocalTransform() const
virtual G4VPhysicalVolume * LocateGlobalPointAndSetup(const G4ThreeVector &point, const G4ThreeVector *direction=0, const G4bool pRelativeSearch=true, const G4bool ignoreDirection=true)
struct G4Navigator::G4SaveNavigatorState fSaveState
const G4RotationMatrix * GetRotation() const
G4SmartVoxelNode * VoxelLocate(G4SmartVoxelHeader *pHead, const G4ThreeVector &localPoint)
G4double ComputeSafety(const G4ThreeVector &localPoint, const G4NavigationHistory &history, const G4double pProposedMaxLength=DBL_MAX)
const G4AffineTransform & GetTopTransform() const
std::ostream & operator<<(std::ostream &os, const G4Navigator &n)
G4bool fCalculatedExitNormal
G4ThreeVector fStepEndPoint
const G4NavigationHistory * GetHistory() const
G4ThreeVector fExitNormal
G4int fActionThreshold_NoZeroSteps
G4bool fChangedGrandMotherRefFrame
G4int MoveUpHistory(G4int num_levels=1)
G4double ComputeSafety(const G4ThreeVector &globalPoint, const G4ThreeVector &localPoint, G4NavigationHistory &history, const G4double pProposedMaxLength=DBL_MAX)
G4bool LevelLocate(G4NavigationHistory &history, const G4VPhysicalVolume *blockedVol, const G4int blockedNum, const G4ThreeVector &globalPoint, const G4ThreeVector *globalDirection, const G4bool pLocatedOnEdge, G4ThreeVector &localPoint)
G4VPhysicalVolume * GetVolume(G4int n) const
G4bool LevelLocate(G4NavigationHistory &history, const G4VPhysicalVolume *blockedVol, const G4int blockedNum, const G4ThreeVector &globalPoint, const G4ThreeVector *globalDirection, const G4bool pLocatedOnEdge, G4ThreeVector &localPoint)
virtual G4double DistanceToOut(const G4ThreeVector &p, const G4ThreeVector &v, const G4bool calcNorm=false, G4bool *validNorm=0, G4ThreeVector *n=0) const =0
virtual G4double ComputeSafety(const G4ThreeVector &globalpoint, const G4double pProposedMaxLength=DBL_MAX, const G4bool keepState=true)
virtual G4double ComputeStep(const G4ThreeVector &globalPoint, const G4ThreeVector &globalDirection, const G4double currentProposedStepLength, G4double &newSafety, G4NavigationHistory &history, G4bool &validExitNormal, G4ThreeVector &exitNormal, G4bool &exiting, G4bool &entering, G4VPhysicalVolume *(*pBlockedPhysical), G4int &blockedReplicaNo)
G4RegularNavigation fregularNav
EInside BackLocate(G4NavigationHistory &history, const G4ThreeVector &globalPoint, G4ThreeVector &localPoint, const G4bool &exiting, G4bool ¬KnownInside) const
virtual void SetupHierarchy()
virtual G4bool CheckOverlaps(G4int res=1000, G4double tol=0., G4bool verbose=true, G4int errMax=1)
G4ThreeVector sPreviousSftOrigin
EVolume VolumeType(const G4VPhysicalVolume *pVol) const
static G4GeometryTolerance * GetInstance()
virtual void LocateGlobalPointWithinVolume(const G4ThreeVector &position)
G4VSolid * GetSolid() const
void ComputeStepLog(const G4ThreeVector &pGlobalpoint, G4double moveLenSq) const
G4GLOB_DLL std::ostream G4cerr
G4bool sLocatedOutsideWorld