Import Geant4 3.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:55:53 +02:00
parent e7d7193284
commit cfcb558cfe
3050 changed files with 91703 additions and 48310 deletions
+44 -23
View File
@@ -5,46 +5,59 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4Navigator.icc,v 1.2 1999/12/15 14:50:22 gunter Exp $
// GEANT4 tag $Name: geant4-02-00 $
// $Id: G4Navigator.icc,v 1.3 2000/11/01 16:51:07 gcosmo Exp $
// GEANT4 tag $Name: geant4-03-00 $
//
//
// class G4Navigator Inline implementation
// Return the local coordinate of the current track
inline G4ThreeVector G4Navigator::GetCurrentLocalCoordinate() const
//
inline
G4ThreeVector G4Navigator::GetCurrentLocalCoordinate() const
{
return fLastLocatedPointLocal;
}
// Return local direction of vector direction in world coord system
inline G4ThreeVector G4Navigator::ComputeLocalAxis(const G4ThreeVector& pVec) const
//
inline
G4ThreeVector G4Navigator::ComputeLocalAxis(const G4ThreeVector& pVec) const
{
return (fHistory.GetTopTransform().IsRotated()) ? fHistory.GetTopTransform().TransformAxis(pVec) : pVec ;
return (fHistory.GetTopTransform().IsRotated())
? fHistory.GetTopTransform().TransformAxis(pVec) : pVec ;
}
// Return local coordinates of a point in the world coord system
inline G4ThreeVector G4Navigator::ComputeLocalPoint(const G4ThreeVector& pGlobalPoint) const
//
inline
G4ThreeVector G4Navigator::ComputeLocalPoint(const G4ThreeVector& pGlobalPoint) const
{
return ( fHistory.GetTopTransform().TransformPoint(pGlobalPoint) ) ;
}
// Return the current world (`topmost') volume
inline G4VPhysicalVolume* G4Navigator::GetWorldVolume() const
//
inline
G4VPhysicalVolume* G4Navigator::GetWorldVolume() const
{
return fTopPhysical;
}
// Inform the navigator that the previous Step calculated
// by the geometry was taken in its entirety
inline void G4Navigator::SetGeometricallyLimitedStep()
//
inline
void G4Navigator::SetGeometricallyLimitedStep()
{
fWasLimitedByGeometry=true;
}
// Reset stack and minimum of navigator state `machine'
inline void G4Navigator::ResetStackAndState()
//
inline
void G4Navigator::ResetStackAndState()
{
fHistory.Reset();
@@ -57,7 +70,8 @@ inline void G4Navigator::ResetStackAndState()
fBlockedReplicaNo=-1;
}
inline EVolume G4Navigator::VolumeType(const G4VPhysicalVolume *pVol) const
inline
EVolume G4Navigator::VolumeType(const G4VPhysicalVolume *pVol) const
{
EVolume type;
EAxis axis;
@@ -76,7 +90,8 @@ inline EVolume G4Navigator::VolumeType(const G4VPhysicalVolume *pVol) const
return type;
}
inline EVolume G4Navigator::CharacteriseDaughters(const G4LogicalVolume *pLog) const
inline
EVolume G4Navigator::CharacteriseDaughters(const G4LogicalVolume *pLog) const
{
EVolume type;
EAxis axis;
@@ -108,28 +123,34 @@ inline EVolume G4Navigator::CharacteriseDaughters(const G4LogicalVolume *pLog) c
// JA April 30th, 1997
//
// Is the Surface Normal valid?
inline G4bool G4Navigator::IsExitNormalValid()
//
inline
G4bool G4Navigator::IsExitNormalValid()
{
return fExiting && fValidExitNormal;
}
// Obtain the Normal vector to a surface (in local coordinates)
// ( It is valid only if Navigator replied true to above function)
inline G4ThreeVector G4Navigator::GetLocalExitNormal()
// Obtain the Normal vector to a surface (in local coordinates)
// (It is valid only if Navigator replied true to above function)
//
inline
G4ThreeVector G4Navigator::GetLocalExitNormal()
{
return fExitNormal;
}
// Return local to global transformation
// ie transformation that will take point or axis in world coord system
// and return one in the local coord system
inline const G4AffineTransform& G4Navigator::GetGlobalToLocalTransform() const
// Return local to global transformation.
// I.e. transformation that will take point or axis in world coord system
// and return one in the local coord system
//
inline
const G4AffineTransform& G4Navigator::GetGlobalToLocalTransform() const
{
return fHistory.GetTopTransform();
}
inline void G4Navigator::LocateGlobalPointAndUpdateTouchable(
inline
void G4Navigator::LocateGlobalPointAndUpdateTouchable(
const G4ThreeVector& position,
G4VTouchable* touchableToUpdate,
const G4bool RelativeSearch )
@@ -139,7 +160,8 @@ inline void G4Navigator::LocateGlobalPointAndUpdateTouchable(
touchableToUpdate->UpdateYourself( pPhysVol, &fHistory );
}
inline void G4Navigator::LocateGlobalPointAndUpdateTouchable(
inline
void G4Navigator::LocateGlobalPointAndUpdateTouchable(
const G4ThreeVector& position,
const G4ThreeVector& direction,
G4VTouchable* touchableToUpdate,
@@ -149,4 +171,3 @@ inline void G4Navigator::LocateGlobalPointAndUpdateTouchable(
pPhysVol= LocateGlobalPointAndSetup( position, &direction, RelativeSearch);
touchableToUpdate->UpdateYourself( pPhysVol, &fHistory );
}