Import Geant4 10.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-10 12:08:39 +02:00
parent 286caacf06
commit c9b32a6c0a
5770 changed files with 1050949 additions and 367105 deletions
@@ -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;
}