Import Geant4 10.1.0 source tree
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4SafetyHelper.cc 72309 2013-07-15 15:52:17Z gcosmo $
|
||||
// $Id: G4SafetyHelper.cc 81060 2014-05-20 09:12:39Z gcosmo $
|
||||
// GEANT4 tag $ Name: $
|
||||
//
|
||||
// class G4SafetyHelper Implementation
|
||||
@@ -193,3 +193,35 @@ void G4SafetyHelper::Locate( const G4ThreeVector& newPosition,
|
||||
fpPathFinder->Locate( newPosition, newDirection );
|
||||
}
|
||||
}
|
||||
|
||||
G4bool G4SafetyHelper::RecheckDistanceToCurrentBoundary(
|
||||
const G4ThreeVector &pGlobalPoint,
|
||||
const G4ThreeVector &pDirection,
|
||||
const G4double aProposedMove,
|
||||
G4double *prDistance,
|
||||
G4double *prNewSafety) const
|
||||
{
|
||||
G4bool retval;
|
||||
if( !fUseParallelGeometries)
|
||||
{
|
||||
retval= fpMassNavigator->RecheckDistanceToCurrentBoundary(
|
||||
pGlobalPoint,
|
||||
pDirection,
|
||||
aProposedMove,
|
||||
prDistance,
|
||||
prNewSafety);
|
||||
}
|
||||
else
|
||||
{
|
||||
//G4Exception("G4Navigator::RecheckDistanceToCurrentBoundary()", "GeomNav0001",
|
||||
// JustWarning, "Method NOT Available (yet) in case of Multiple Geometries (where PathFinder is involved.).");
|
||||
retval= fpPathFinder->RecheckDistanceToCurrentBoundary(
|
||||
pGlobalPoint,
|
||||
pDirection,
|
||||
aProposedMove,
|
||||
prDistance,
|
||||
prNewSafety);
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user