Import Geant4 9.6.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 17:01:34 +02:00
parent b1eb5424d2
commit e2d2f9810a
10384 changed files with 698580 additions and 628834 deletions
@@ -24,8 +24,7 @@
// ********************************************************************
//
//
// $Id: G4PhysicsVector.icc,v 1.30 2010-09-20 16:22:56 gcosmo Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
// $Id$
//
//
//---------------------------------------------------------------
@@ -60,6 +59,15 @@ inline void G4PhysicsVector::operator delete(void* aVector)
aPVAllocator.FreeSingle((G4PhysicsVector*)aVector);
}
inline G4double G4PhysicsVector::Value(G4double theEnergy)
{
// Use cache for speed up - check if the value 'theEnergy' is same as the
// last call. If it is same, then use the last value, if not - recompute
if( theEnergy != cache->lastEnergy ) { ComputeValue(theEnergy); }
return cache->lastValue;
}
inline
G4double G4PhysicsVector::GetLastEnergy() const
{
@@ -102,6 +110,14 @@ inline
//---------------------------------------------------------------
inline
G4double G4PhysicsVector::GetMaxEnergy() const
{
return edgeMax;
}
//---------------------------------------------------------------
inline
size_t G4PhysicsVector::GetVectorLength() const
{
@@ -196,22 +212,6 @@ inline
//---------------------------------------------------------------
inline
void G4PhysicsVector::PutComment(const G4String& theComment)
{
comment = theComment;
}
//---------------------------------------------------------------
inline
const G4String& G4PhysicsVector::GetComment() const
{
return comment;
}
//---------------------------------------------------------------
inline
G4PhysicsVectorType G4PhysicsVector::GetType() const
{