939 G4cout <<
"*** G4ITNavigator2::ComputeStep: ***" <<
G4endl;
941 <<
" - Proposed step length = " << pCurrentProposedStepLength
943 #ifdef G4DEBUG_NAVIGATION 946 G4cout <<
" Called with the arguments: " << G4endl
947 <<
" Globalpoint = " << std::setw(25) << pGlobalpoint << G4endl
948 <<
" Direction = " << std::setw(25) << pDirection <<
G4endl;
965 G4double moveLenSq = (newLocalPoint-oldLocalPoint).mag2();
987 pCurrentProposedStepLength,
1004 pCurrentProposedStepLength,
1028 if(
fHistory.GetTopVolume()->GetRegularStructureId() == 0 )
1032 "Point is relocated in voxels, while it should be outside!");
1035 pCurrentProposedStepLength,
1050 pCurrentProposedStepLength,
1069 pCurrentProposedStepLength,
1083 pCurrentProposedStepLength,
1095 G4Exception(
"G4ITNavigator2::ComputeStep()",
"GeomNav0001",
1106 G4bool calculatedExitNormal;
1111 pCurrentProposedStepLength,
1115 calculatedExitNormal,
1152 #ifdef G4DEBUG_NAVIGATION 1155 G4cout <<
"G4ITNavigator2::ComputeStep(): another zero step, # " 1157 <<
" at " << pGlobalpoint
1158 <<
" in volume " << motherPhysical->
GetName()
1159 <<
" nav-comp-step calls # " << sNavCScalls
1171 std::ostringstream message;
1172 message <<
"Track stuck or not moving." << G4endl
1173 <<
" Track stuck, not moving for " 1175 <<
" in volume -" << motherPhysical->
GetName()
1176 <<
"- at point " << pGlobalpoint << G4endl
1177 <<
" direction: " << pDirection <<
"." << G4endl
1178 <<
" Potential geometry or navigation problem !" 1180 <<
" Trying pushing it of " << Step <<
" mm ...";
1181 G4Exception(
"G4ITNavigator2::ComputeStep()",
"GeomNav1002",
1182 JustWarning, message,
"Potential overlap in geometry!");
1191 std::ostringstream message;
1192 message <<
"Stuck Track: potential geometry or navigation problem." 1194 <<
" Track stuck, not moving for " 1196 <<
" in volume -" << motherPhysical->
GetName()
1197 <<
"- at point " << pGlobalpoint << G4endl
1198 <<
" direction: " << pDirection <<
".";
1200 G4Exception(
"G4ITNavigator2::ComputeStep()",
"GeomNav0003",
1213 +
std::min(Step,pCurrentProposedStepLength) * pDirection;
1218 #ifdef G4DEBUG_NAVIGATION 1221 G4cout <<
" At G4Nav CompStep End - if(exiting) - fExiting= " <<
fExiting 1282 #ifdef G4DEBUG_NAVIGATION 1285 desc <<
"Problem in ComputeStep: Replica Navigation did not provide" 1286 <<
" valid exit Normal. " <<
G4endl;
1287 desc <<
" Do not know how calculate it in this case." <<
G4endl;
1288 desc <<
" Location = " << finalLocalPoint <<
G4endl;
1289 desc <<
" Volume name = " << motherPhysical->
GetName()
1291 G4Exception(
"G4ITNavigator2::ComputeStep()",
"GeomNav0003",
1292 JustWarning, desc,
"Normal not available for exiting.");
1305 fHistory.GetTransform(depth-1).Inverse();
1336 G4cout <<
" Returned step= " << Step;
1340 G4cout <<
" Requested step= " << pCurrentProposedStepLength ;
#define fBlockedPhysicalVolume
#define fLastStepEndPointLocal
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)
static const G4double kInfinity
std::ostringstream G4ExceptionDescription
const G4RotationMatrix * GetRotation() const
CLHEP::Hep3Vector G4ThreeVector
G4ThreeVector ComputeLocalPoint(const G4ThreeVector &rGlobPoint) const
#define fLastTriedStepComputation
G4int GetDaughtersRegularStructureId(const G4LogicalVolume *pLog) 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)
#define fExitNormalGlobalFrame
G4int fAbandonThreshold_NoZeroSteps
G4ThreeVector ComputeLocalAxis(const G4ThreeVector &pVec) const
EVolume CharacteriseDaughters(const G4LogicalVolume *pLog) const
G4GLOB_DLL std::ostream G4cout
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 void LocateGlobalPointWithinVolume(const G4ThreeVector &position)
virtual G4int GetRegularStructureId() const =0
virtual G4VPhysicalVolume * LocateGlobalPointAndSetup(const G4ThreeVector &point, const G4ThreeVector *direction=0, const G4bool pRelativeSearch=true, const G4bool ignoreDirection=true)
virtual G4ThreeVector SurfaceNormal(const G4ThreeVector &p) const =0
#define fChangedGrandMotherRefFrame
G4RegularNavigation fregularNav
G4NormalNavigation fnormalNav
#define fCalculatedExitNormal
G4ReplicaNavigation freplicaNav
G4SmartVoxelHeader * GetVoxelHeader() const
#define CheckNavigatorStateIsValid()
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4ParameterisedNavigation fparamNav
#define fGrandMotherExitNormal
const G4String & GetName() const
#define fBlockedReplicaNo
G4int fActionThreshold_NoZeroSteps
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)
G4VoxelNavigation fvoxelNav
#define fPreviousSftOrigin
virtual G4int GetCopyNo() const =0
#define fLastLocatedPointLocal
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)
void ComputeStepLog(const G4ThreeVector &pGlobalpoint, G4double moveLenSq) const
G4LogicalVolume * GetLogicalVolume() const
virtual G4bool CheckOverlaps(G4int res=1000, G4double tol=0., G4bool verbose=true, G4int errMax=1)
G4VSolid * GetSolid() const