53 #define G4DEBUG_NAVIGATION 1
62 fTopPhysical(0), fCheck(false),
fPushed(false), fWarnPush(true)
162 const G4bool relativeSearch,
163 const G4bool ignoreDirection )
165 G4bool notKnownContained=
true, noResult;
177 if( considerDirection && pGlobalDirection != 0 )
179 globalDirection=*pGlobalDirection;
187 G4cout <<
"*** G4ITNavigator1::LocateGlobalPointAndSetup: ***" <<
G4endl;
188 G4cout <<
" Called with arguments: " << G4endl
189 <<
" Globalpoint = " << globalPoint << G4endl
190 <<
" RelativeSearch = " << relativeSearch <<
G4endl;
196 G4cout.precision(oldcoutPrec);
200 if ( !relativeSearch )
283 notKnownContained =
false;
304 G4int noLevelsExited=0 ;
306 while (notKnownContained)
312 insideCode = targetSolid->
Inside(localPoint);
316 G4String solidResponse =
"-kInside-";
318 solidResponse =
"-kOutside-";
320 solidResponse =
"-kSurface-";
321 G4cout <<
"*** G4ITNavigator1::LocateGlobalPointAndSetup(): ***" <<
G4endl
322 <<
" Invoked Inside() for solid: " << targetSolid->
GetName()
323 <<
". Solid replied: " << solidResponse <<
G4endl
324 <<
" For local point p: " << localPoint <<
G4endl;
349 if( noLevelsExited > 1 )
373 if( (!
fExiting)&&considerDirection )
378 G4bool directionExiting =
false;
389 directionExiting = normal.
dot(localDirection) > 0.0;
390 isExiting = isExiting || directionExiting;
406 if( noLevelsExited > 1 )
428 notKnownContained=
false;
433 notKnownContained=
false;
454 if (!targetPhysical) {
break; }
541 #ifdef G4DEBUG_NAVIGATION
545 G4cout <<
"*** G4ITNavigator1::LocateGlobalPointAndSetup() ***" <<
G4endl;
560 if (targetPhysical) { curPhysVol_Name = targetPhysical->
GetName(); }
561 G4cout <<
" Return value = new volume = " << curPhysVol_Name <<
G4endl;
566 G4cout <<
"Upon exiting LocateGlobalPointAndSetup():" <<
G4endl;
569 G4cout.precision(oldcoutPrec);
575 return targetPhysical;
598 #ifdef G4DEBUG_NAVIGATION
601 G4cout <<
"Entering LocateGlobalWithinVolume(): History = " <<
G4endl;
635 G4Exception(
"G4ITNavigator1::LocateGlobalPointWithinVolume()",
637 "Not applicable for replicated volumes.");
789 const G4double pCurrentProposedStepLength,
815 G4cout <<
"*** G4ITNavigator1::ComputeStep: ***" <<
G4endl;
817 <<
" - Proposed step length = " << pCurrentProposedStepLength
819 #ifdef G4DEBUG_NAVIGATION
822 G4cout <<
" Called with the arguments: " << G4endl
823 <<
" Globalpoint = " << std::setw(25) << pGlobalpoint << G4endl
824 <<
" Direction = " << std::setw(25) << pDirection <<
G4endl;
841 G4double moveLenSq = (newLocalPoint-oldLocalPoint).mag2();
863 pCurrentProposedStepLength,
880 pCurrentProposedStepLength,
908 "Point is relocated in voxels, while it should be outside!");
911 pCurrentProposedStepLength,
926 pCurrentProposedStepLength,
945 pCurrentProposedStepLength,
959 pCurrentProposedStepLength,
971 G4Exception(
"G4ITNavigator1::ComputeStep()",
"GeomNav0001",
982 G4bool calculatedExitNormal=
false;
988 pCurrentProposedStepLength,
992 calculatedExitNormal,
1026 #ifdef G4DEBUG_NAVIGATION
1029 G4cout <<
"G4ITNavigator1::ComputeStep(): another zero step, # "
1031 <<
" at " << pGlobalpoint
1032 <<
" in volume " << motherPhysical->
GetName()
1033 <<
" nav-comp-step calls # " << sNavCScalls
1046 message <<
"Track stuck or not moving." <<
G4endl
1047 <<
" Track stuck, not moving for "
1049 <<
" in volume -" << motherPhysical->
GetName()
1050 <<
"- at point " << pGlobalpoint <<
G4endl
1051 <<
" direction: " << pDirection <<
"." <<
G4endl
1052 <<
" Potential geometry or navigation problem !"
1054 <<
" Trying pushing it of " << Step <<
" mm ...";
1055 G4Exception(
"G4ITNavigator1::ComputeStep()",
"GeomNav1002",
1056 JustWarning, message,
"Potential overlap in geometry!");
1066 message <<
"Stuck Track: potential geometry or navigation problem."
1068 <<
" Track stuck, not moving for "
1070 <<
" in volume -" << motherPhysical->
GetName()
1071 <<
"- at point " << pGlobalpoint <<
G4endl
1072 <<
" direction: " << pDirection <<
".";
1074 G4Exception(
"G4ITNavigator1::ComputeStep()",
"GeomNav0003",
1091 #ifdef G4DEBUG_NAVIGATION
1094 G4cout <<
" At G4Nav CompStep End - if(exiting) - fExiting= " <<
fExiting
1155 #ifdef G4DEBUG_NAVIGATION
1158 desc <<
"Problem in ComputeStep: Replica Navigation did not provide"
1159 <<
" valid exit Normal. " <<
G4endl;
1160 desc <<
" Do not know how calculate it in this case." <<
G4endl;
1161 desc <<
" Location = " << finalLocalPoint <<
G4endl;
1162 desc <<
" Volume name = " << motherPhysical->
GetName()
1164 G4Exception(
"G4ITNavigator1::ComputeStep()",
"GeomNav0003",
1165 JustWarning, desc,
"Normal not available for exiting.");
1210 G4cout <<
" Returned step= " << Step;
1214 G4cout <<
" Requested step= " << pCurrentProposedStepLength ;
1232 const G4double pCurrentProposedStepLength,
1243 pCurrentProposedStepLength,
1306 for ( i=1; i<=cdepth; i++ )
1335 ComputeMaterial(replicaNo, current, &touchable) );
1362 if( candidateLogical )
1384 currentSolid= candidateLogical->
GetSolid();
1385 inSideIt = currentSolid->
Inside(daughterPointOwnLocal);
1386 onSurface = (inSideIt ==
kSurface);
1391 safety = (currentSolid->
DistanceToIn(daughterPointOwnLocal));
1394 else if (inSideIt ==
kInside )
1396 safety = (currentSolid->
DistanceToOut(daughterPointOwnLocal));
1403 nextSolidExitNormal =
1408 ExitNormal = -nextSolidExitNormal;
1417 message <<
"Point not on surface ! " <<
G4endl
1419 << daughterPointOwnLocal <<
G4endl
1420 <<
" Physical volume = "
1422 <<
" Logical volume = "
1424 <<
" Solid = " << currentSolid->
GetName()
1427 << *currentSolid <<
G4endl;
1430 message <<
"Point is Outside. " << G4endl
1431 <<
" Safety (from outside) = " << safety <<
G4endl;
1435 message <<
"Point is Inside. " << G4endl
1436 <<
" Safety (from inside) = " << safety <<
G4endl;
1438 G4Exception(
"G4ITNavigator1::GetLocalExitNormal()",
"GeomNav1001",
1456 G4Exception(
"G4ITNavigator1::GetLocalExitNormal()",
1458 "Incorrect call to GetLocalSurfaceNormal." );
1471 desc <<
" Parameters of solid: " << *daughterSolid
1473 G4Exception(
"G4ITNavigator1::GetLocalExitNormal()",
1475 "Surface Normal returned by Solid is not a Unit Vector." );
1493 message <<
"Function called when *NOT* at a Boundary." <<
G4endl;
1494 G4Exception(
"G4ITNavigator1::GetLocalExitNormal()",
1510 G4int enteringReplicaNo,
1513 switch (enteringVolumeType)
1518 G4Exception(
"G4ITNavigator1::GetMotherToDaughterTransform()",
1520 "Method NOT Implemented yet for replica volumes.");
1528 pParam->
ComputeSolid(enteringReplicaNo, pEnteringPhysVol);
1563 #ifdef G4DEBUG_NAVIGATION
1568 G4ThreeVector ExpectedBoundaryPointLocal;
1571 ExpectedBoundaryPointLocal =
1591 G4bool* pNormalCalculated)
1601 *pNormalCalculated =
true;
1609 #ifdef G4DEBUG_NAVIGATION
1617 edN <<
" State of Navigator: " <<
G4endl;
1621 G4Exception(
"G4ITNavigator1::GetGlobalExitNormal()",
1623 "LocalExitNormalAndCheck() did not calculate Normal.");
1632 edN <<
"G4ITNavigator1::GetGlobalExitNormal: "
1633 <<
" Using Local Normal - from call to GetLocalExitNormalAndCheck. "
1635 <<
" Local Exit Normal = " << localNormal <<
" || = "
1636 << std::sqrt(localMag2) <<
G4endl
1637 <<
" Global Exit Normal = " << globalNormal <<
" || = "
1641 G4Exception(
"G4ITNavigator1::GetGlobalExitNormal()",
1643 "Value obtained from new local *solid* is incorrect.");
1644 localNormal = localNormal.
unit();
1650 #ifdef G4DEBUG_NAVIGATION
1665 edDfn <<
"Found difference in normals in case of exiting mother "
1666 <<
"- when Get is called after ComputingStep " <<
G4endl;
1667 edDfn <<
" Magnitude of diff = " << diffNorm.
mag() <<
G4endl;
1668 edDfn <<
" Normal stored (Global) = " << fExitNormalGlobalFrame
1670 edDfn <<
" Global Computed from Local = " << globalNormal <<
G4endl;
1671 G4Exception(
"G4ITNavigator1::GetGlobalExitNormal()",
"GeomNav0003",
1677 return globalNormal;
1681 #define G4NEW_SAFETY 1
1698 #ifdef G4DEBUG_NAVIGATION
1702 G4cout <<
"*** G4ITNavigator1::ComputeSafety: ***" <<
G4endl
1703 <<
" Called at point: " << pGlobalpoint <<
G4endl;
1707 <<
" - Maximum length = " << pMaxLength <<
G4endl;
1710 G4cout <<
" ----- Upon entering Compute Safety:" <<
G4endl;
1722 if( !(endpointOnSurface && stayedOnEndpoint) )
1735 #ifdef G4DEBUG_NAVIGATION
1738 G4cout <<
" G4ITNavigator1::ComputeSafety() relocates-in-volume to point: "
1739 << pGlobalpoint <<
G4endl;
1756 *motherPhysical, pMaxLength);
1757 newSafety= safetyTwo;
1762 newSafety= safetyOldVoxel;
1781 G4Exception(
"G4ITNavigator1::ComputeSafety()",
"GeomNav0001",
1794 #ifdef G4DEBUG_NAVIGATION
1797 G4cout <<
" G4ITNavigator1::ComputeSafety() finds that point - "
1798 << pGlobalpoint <<
" - is on surface " <<
G4endl;
1815 #ifdef G4DEBUG_NAVIGATION
1820 G4cout <<
" Returned value of Safety = " << newSafety <<
G4endl;
1822 G4cout.precision(oldcoutPrec);
1846 G4cout <<
"The current state of G4ITNavigator1 is: " <<
G4endl;
1849 <<
" Exiting = " <<
fExiting << G4endl
1850 <<
" Entering = " <<
fEntering << G4endl
1851 <<
" BlockedPhysicalVolume= " ;
1864 G4cout << std::setw(30) <<
" ExitNormal " <<
" "
1865 << std::setw( 5) <<
" Valid " <<
" "
1866 << std::setw( 9) <<
" Exiting " <<
" "
1867 << std::setw( 9) <<
" Entering" <<
" "
1868 << std::setw(15) <<
" Blocked:Volume " <<
" "
1869 << std::setw( 9) <<
" ReplicaNo" <<
" "
1870 << std::setw( 8) <<
" LastStepZero " <<
" "
1876 << std::setw( 9) <<
fExiting <<
" "
1880 G4cout << std::setw(15) <<
"None";
1897 G4cout.precision(oldcoutPrec);
1926 G4double shiftOrigin = std::sqrt(shiftOriginSafSq);
1929 if( diffShiftSaf > fAccuracyForWarning )
1933 std::ostringstream
message, suggestion;
1934 message <<
"Accuracy error or slightly inaccurate position shift."
1936 <<
" The Step's starting point has moved "
1937 << std::sqrt(moveLenSq)/
mm <<
" mm " <<
G4endl
1938 <<
" since the last call to a Locate method." <<
G4endl
1939 <<
" This has resulted in moving "
1940 << shiftOrigin/
mm <<
" mm "
1941 <<
" from the last point at which the safety "
1942 <<
" was calculated " <<
G4endl
1943 <<
" which is more than the computed safety= "
1944 << fPreviousSafety/
mm <<
" mm at that point." <<
G4endl
1945 <<
" This difference is "
1946 << diffShiftSaf/
mm <<
" mm." <<
G4endl
1947 <<
" The tolerated accuracy is "
1948 << fAccuracyForException/
mm <<
" mm.";
1952 if( ((++warnNow % 100) == 1) )
1955 <<
" This problem can be due to either " <<
G4endl
1956 <<
" - a process that has proposed a displacement"
1957 <<
" larger than the current safety , or" <<
G4endl
1958 <<
" - inaccuracy in the computation of the safety";
1959 suggestion <<
"We suggest that you " << G4endl
1960 <<
" - find i) what particle is being tracked, and "
1961 <<
" ii) through what part of your geometry " << G4endl
1962 <<
" for example by re-running this event with "
1964 <<
" /tracking/verbose 1 " << G4endl
1965 <<
" - check which processes you declare for"
1966 <<
" this particle (and look at non-standard ones)"
1968 <<
" - in case, create a detailed logfile"
1969 <<
" of this event using:" << G4endl
1970 <<
" /tracking/verbose 6 ";
1974 message,
G4String(suggestion.str()));
1975 G4cout.precision(oldcoutPrec);
1976 G4cerr.precision(oldcerrPrec);
1978 #ifdef G4DEBUG_NAVIGATION
1981 G4cerr <<
"WARNING - G4ITNavigator1::ComputeStep()" <<
G4endl
1982 <<
" The Step's starting point has moved "
1983 << std::sqrt(moveLenSq) <<
"," <<
G4endl
1984 <<
" which has taken it to the limit of"
1985 <<
" the current safety. " <<
G4endl;
1990 if ( shiftOriginSafSq >
sqr(safetyPlus) )
1993 message <<
"May lead to a crash or unreliable results." <<
G4endl
1994 <<
" Position has shifted considerably without"
1995 <<
" notifying the navigator !" <<
G4endl
1996 <<
" Tolerated safety: " << safetyPlus <<
G4endl
1997 <<
" Computed shift : " << shiftOriginSafSq;
1998 G4Exception(
"G4ITNavigator1::ComputeStep()",
"GeomNav1002",
2015 G4int oldcoutPrec = os.precision(4);
2018 os <<
"The current state of G4ITNavigator1 is: " <<
G4endl;
2021 <<
" Exiting = " << n.
fExiting << G4endl
2022 <<
" Entering = " << n.
fEntering << G4endl
2023 <<
" BlockedPhysicalVolume= " ;
2036 os << std::setw(30) <<
" ExitNormal " <<
" "
2037 << std::setw( 5) <<
" Valid " <<
" "
2038 << std::setw( 9) <<
" Exiting " <<
" "
2039 << std::setw( 9) <<
" Entering" <<
" "
2040 << std::setw(15) <<
" Blocked:Volume " <<
" "
2041 << std::setw( 9) <<
" ReplicaNo" <<
" "
2042 << std::setw( 8) <<
" LastStepZero " <<
" "
2048 << std::setw( 9) << n.
fExiting <<
" "
2051 { os << std::setw(15) <<
"None"; }
2070 os.precision(oldcoutPrec);
EInside BackLocate(G4NavigationHistory &history, const G4ThreeVector &globalPoint, G4ThreeVector &localPoint, const G4bool &exiting, G4bool ¬KnownInside) const
G4int GetDaughtersRegularStructureId(const G4LogicalVolume *pLog) const
G4int fAbandonThreshold_NoZeroSteps
G4ParameterisedNavigation fparamNav
virtual G4double ComputeStep(const G4ThreeVector &pGlobalPoint, const G4ThreeVector &pDirection, const G4double pCurrentProposedStepLength, G4double &pNewSafety)
CLHEP::Hep3Vector G4ThreeVector
G4ThreeVector sExitNormal
std::ostringstream G4ExceptionDescription
friend std::ostream & operator<<(std::ostream &os, const G4ITNavigator1 &n)
G4LogicalVolume * GetLogicalVolume() const
G4double ComputeSafety(const G4ThreeVector &globalpoint, const G4NavigationHistory &history, const G4double pMaxLength=DBL_MAX)
static const G4double kInfinity
G4ReplicaNavigation freplicaNav
G4ThreeVector fLastStepEndPointLocal
static constexpr double mm
virtual G4double ComputeSafety(const G4ThreeVector &globalpoint, const G4double pProposedMaxLength=DBL_MAX, const G4bool keepState=true)
virtual ~G4ITNavigator1()
virtual G4VPVParameterisation * GetParameterisation() const =0
G4SmartVoxelHeader * GetVoxelHeader() const
G4bool sLocatedOutsideWorld
void message(RunManager *runmanager)
G4bool fCalculatedExitNormal
void UpdateMaterial(G4Material *pMaterial)
void NewLevel(G4VPhysicalVolume *pNewMother, EVolume vType=kNormal, G4int nReplica=-1)
static constexpr double perMillion
static double normal(HepRandomEngine *eptr)
double dot(const Hep3Vector &) const
void SetNavigatorState(G4ITNavigatorState_Lock1 *)
virtual G4double DistanceToIn(const G4ThreeVector &p, const G4ThreeVector &v) const =0
G4bool LevelLocate(G4NavigationHistory &history, const G4VPhysicalVolume *blockedVol, const G4int blockedNum, const G4ThreeVector &globalPoint, const G4ThreeVector *globalDirection, const G4bool pLocatedOnEdge, G4ThreeVector &localPoint)
G4RegularNavigation fregularNav
G4SaveNavigatorState * fpSaveState
const G4ThreeVector & GetTranslation() const
virtual void ResetState()
virtual G4ThreeVector SurfaceNormal(const G4ThreeVector &p) const =0
G4SmartVoxelNode * VoxelLocate(G4SmartVoxelHeader *pHead, const G4ThreeVector &localPoint)
G4double ComputeSafety(const G4ThreeVector &localPoint, const G4NavigationHistory &history, const G4double pProposedMaxLength=DBL_MAX)
void ComputeTransformation(const G4int replicaNo, G4VPhysicalVolume *pVol, G4ThreeVector &point) const
virtual void LocateGlobalPointWithinVolume(const G4ThreeVector &position)
virtual EInside Inside(const G4ThreeVector &p) const =0
virtual G4VSolid * ComputeSolid(const G4int, G4VPhysicalVolume *)
virtual G4bool CheckOverlaps(G4int res=1000, G4double tol=0., G4bool verbose=true, G4int errMax=1)
G4ReferenceCountedHandle< G4TouchableHistory > G4TouchableHistoryHandle
G4ThreeVector fLastLocatedPointLocal
G4ThreeVector fExitNormal
G4ITNavigatorState_Lock1 * GetNavigatorState()
G4bool LevelLocate(G4NavigationHistory &history, const G4VPhysicalVolume *blockedVol, const G4int blockedNum, const G4ThreeVector &globalPoint, const G4ThreeVector *globalDirection, const G4bool pLocatedOnEdge, G4ThreeVector &localPoint)
virtual G4int GetRegularStructureId() const =0
const G4NavigationHistory * GetHistory() const
const G4AffineTransform GetLocalToGlobalTransform() const
G4ThreeVector fGrandMotherExitNormal
void SetSolid(G4VSolid *pSolid)
void ResetStackAndState()
G4ThreeVector sLastLocatedPointLocal
G4AffineTransform GetMotherToDaughterTransform(G4VPhysicalVolume *dVolume, G4int dReplicaNo, EVolume dVolumeType)
G4ThreeVector fExitNormalGlobalFrame
G4double CheckNextStep(const G4ThreeVector &pGlobalPoint, const G4ThreeVector &pDirection, const G4double pCurrentProposedStepLength, G4double &pNewSafety)
virtual G4VPhysicalVolume * LocateGlobalPointAndSetup(const G4ThreeVector &point, const G4ThreeVector *direction=0, const G4bool pRelativeSearch=true, const G4bool ignoreDirection=true)
G4ThreeVector ComputeLocalAxis(const G4ThreeVector &pVec) const
#define G4DEBUG_NAVIGATION
const G4AffineTransform & GetTopTransform() const
virtual G4ThreeVector GetGlobalExitNormal(const G4ThreeVector &point, G4bool *valid)
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)
G4ThreeVector fPreviousSftOrigin
const G4AffineTransform & GetTransform(G4int n) const
virtual G4int GetCopyNo() const =0
G4SmartVoxelNode * ParamVoxelLocate(G4SmartVoxelHeader *pHead, const G4ThreeVector &localPoint)
static constexpr double perMillion
G4bool fLastTriedStepComputation
G4VPhysicalVolume * GetVolume(G4int n) const
G4VPhysicalVolume * GetTopVolume() const
void SetNormalNavigation(G4NormalNavigation *fnormnav)
G4ThreeVector sPreviousSftOrigin
G4GLOB_DLL std::ostream G4cerr
G4VoxelNavigation fvoxelNav
virtual void SetupHierarchy()
G4bool fChangedGrandMotherRefFrame
G4int GetVerboseLevel() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
virtual G4bool LevelLocate(G4NavigationHistory &history, const G4VPhysicalVolume *blockedVol, const G4int blockedNum, const G4ThreeVector &globalPoint, const G4ThreeVector *globalDirection, const G4bool pLocatedOnEdge, G4ThreeVector &localPoint)
EVolume CharacteriseDaughters(const G4LogicalVolume *pLog) const
G4int GetReplicaNo(G4int n) const
virtual G4double ComputeSafety(const G4ThreeVector &globalpoint, const G4NavigationHistory &history, const G4double pMaxLength=DBL_MAX)
void SetVerboseLevel(G4int level)
const G4AffineTransform & GetGlobalToLocalTransform() const
G4double ComputeSafety(const G4ThreeVector &localPoint, const G4NavigationHistory &history, const G4double pProposedMaxLength=DBL_MAX)
G4double ComputeSafety(const G4ThreeVector &localPoint, const G4VPhysicalVolume ¤tPhysical, G4double maxLength=DBL_MAX)
G4bool LevelLocate(G4NavigationHistory &history, const G4VPhysicalVolume *blockedVol, const G4int blockedNum, const G4ThreeVector &globalPoint, const G4ThreeVector *globalDirection, const G4bool pLocatedOnEdge, G4ThreeVector &localPoint)
virtual G4VPhysicalVolume * ResetHierarchyAndLocate(const G4ThreeVector &point, const G4ThreeVector &direction, const G4TouchableHistory &h)
G4double ComputeSafety(const G4ThreeVector &globalPoint, const G4ThreeVector &localPoint, G4NavigationHistory &history, const G4double pProposedMaxLength=DBL_MAX)
G4GLOB_DLL std::ostream G4cout
G4int fActionThreshold_NoZeroSteps
EVolume GetVolumeType(G4int n) const
G4TouchableHistory * CreateTouchableHistory() const
#define fWasLimitedByGeometry
virtual G4double DistanceToOut(const G4ThreeVector &p, const G4ThreeVector &v, const G4bool calcNorm=false, G4bool *validNorm=0, G4ThreeVector *n=0) const =0
G4VSolid * GetSolid() const
virtual void ComputeDimensions(G4VPVParameterisation *p, const G4int n, const G4VPhysicalVolume *pRep)
G4bool fWasLimitedByGeometry
virtual G4TouchableHistoryHandle CreateTouchableHistoryHandle() const
G4int MoveUpHistory(G4int num_levels=1)
static G4GeometryTolerance * GetInstance()
G4bool sWasLimitedByGeometry
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)
G4bool fLocatedOutsideWorld
const G4RotationMatrix * GetRotation() const
virtual G4ThreeVector GetLocalExitNormalAndCheck(const G4ThreeVector &point, G4bool *valid)
G4ThreeVector ComputeLocalPoint(const G4ThreeVector &rGlobPoint) const
G4int GetTopReplicaNo() const
virtual void SetCopyNo(G4int CopyNo)=0
void ComputeStepLog(const G4ThreeVector &pGlobalpoint, G4double moveLenSq) const
virtual G4GeometryType GetEntityType() const =0
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)
G4VPhysicalVolume * spBlockedPhysicalVolume
G4VoxelSafety * fpVoxelSafety
G4NavigationHistory fHistory
EVolume GetTopVolumeType() const
G4ThreeVector fStepEndPoint
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)
G4VPhysicalVolume * fBlockedPhysicalVolume
G4double GetSurfaceTolerance() const
virtual void ComputeTransformation(const G4int, G4VPhysicalVolume *) const =0
G4NormalNavigation fnormalNav
G4bool EnteredDaughterVolume() const
const G4String & GetName() const
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)
virtual G4ThreeVector GetLocalExitNormal(G4bool *valid)
G4bool LevelLocate(G4NavigationHistory &history, const G4VPhysicalVolume *blockedVol, const G4int blockedNum, const G4ThreeVector &globalPoint, const G4ThreeVector *globalDirection, const G4bool pLocatedOnEdge, G4ThreeVector &localPoint)
const G4String & GetName() const
EVolume VolumeType(const G4VPhysicalVolume *pVol) const