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
1045 std::ostringstream message;
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!");
1065 std::ostringstream message;
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 ;
G4int fActionThreshold_NoZeroSteps
virtual void LocateGlobalPointWithinVolume(const G4ThreeVector &position)
const G4AffineTransform & GetTransform(G4int n) const
G4VoxelNavigation fvoxelNav
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)
G4bool fChangedGrandMotherRefFrame
static const G4double kInfinity
G4ThreeVector ComputeLocalPoint(const G4ThreeVector &rGlobPoint) const
std::ostringstream G4ExceptionDescription
const G4RotationMatrix * GetRotation() const
EVolume GetTopVolumeType() const
CLHEP::Hep3Vector G4ThreeVector
G4bool fLastTriedStepComputation
virtual G4VPhysicalVolume * LocateGlobalPointAndSetup(const G4ThreeVector &point, const G4ThreeVector *direction=0, const G4bool pRelativeSearch=true, const G4bool ignoreDirection=true)
G4ThreeVector fExitNormal
void ComputeStepLog(const G4ThreeVector &pGlobalpoint, G4double moveLenSq) const
G4ThreeVector fLastStepEndPointLocal
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)
G4NormalNavigation fnormalNav
G4int fAbandonThreshold_NoZeroSteps
G4GLOB_DLL std::ostream G4cout
G4RegularNavigation fregularNav
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 G4int GetRegularStructureId() const =0
virtual G4ThreeVector SurfaceNormal(const G4ThreeVector &p) const =0
G4ThreeVector fStepEndPoint
G4NavigationHistory fHistory
G4ThreeVector fPreviousSftOrigin
G4VPhysicalVolume * GetTopVolume() const
G4int GetDaughtersRegularStructureId(const G4LogicalVolume *pLog) const
G4SmartVoxelHeader * GetVoxelHeader() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4ParameterisedNavigation fparamNav
const G4String & GetName() 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)
G4ThreeVector fLastLocatedPointLocal
virtual G4int GetCopyNo() const =0
G4bool fCalculatedExitNormal
G4ThreeVector ComputeLocalAxis(const G4ThreeVector &pVec) const
G4VPhysicalVolume * fBlockedPhysicalVolume
EVolume CharacteriseDaughters(const G4LogicalVolume *pLog) const
G4ReplicaNavigation freplicaNav
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)
G4LogicalVolume * GetLogicalVolume() const
virtual G4bool CheckOverlaps(G4int res=1000, G4double tol=0., G4bool verbose=true, G4int errMax=1)
G4ThreeVector fGrandMotherExitNormal
G4ThreeVector fExitNormalGlobalFrame
G4VSolid * GetSolid() const