Import Geant4 9.5.0 source tree
This commit is contained in:
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4LPhysicsFreeVector.icc,v 1.17 2010/05/28 05:13:43 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-09-04-beta-01 $
|
||||
// $Id: G4LPhysicsFreeVector.icc,v 1.17 2010-05-28 05:13:43 kurasige Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------------
|
||||
@@ -55,39 +55,3 @@ void G4LPhysicsFreeVector::PutValues(size_t binNumber,
|
||||
{ edgeMax = binValue; }
|
||||
}
|
||||
|
||||
inline
|
||||
void G4LPhysicsFreeVector::SetVerboseLevel(G4int value)
|
||||
{
|
||||
verboseLevel = value;
|
||||
}
|
||||
|
||||
inline
|
||||
G4int G4LPhysicsFreeVector::GetVerboseLevel(G4int)
|
||||
{
|
||||
return verboseLevel;
|
||||
}
|
||||
|
||||
|
||||
inline
|
||||
size_t G4LPhysicsFreeVector::FindBinLocation(G4double theEnergy) const
|
||||
{
|
||||
G4int n1 = 0;
|
||||
G4int n2 = numberOfNodes/2;
|
||||
G4int n3 = numberOfNodes - 1;
|
||||
while (n1 != n3 - 1)
|
||||
{
|
||||
if (theEnergy > binVector[n2])
|
||||
{ n1 = n2; }
|
||||
else
|
||||
{ n3 = n2; }
|
||||
n2 = n1 + (n3 - n1 + 1)/2;
|
||||
}
|
||||
#ifdef G4VERBOSE
|
||||
if (verboseLevel > 1)
|
||||
{
|
||||
G4cout << "G4LPhysicsFreeVector::FindBinLocation: returning "
|
||||
<< n1 << G4endl;
|
||||
}
|
||||
#endif
|
||||
return (size_t)n1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user