70 for (
size_t i = 0 ; i < VectorLength ; ++i)
81 std::vector<G4double>::iterator binLoc =
84 size_t binIdx = binLoc -
binVector.begin();
86 std::vector<G4double>::iterator dataLoc =
dataVector.begin() + binIdx;
104 size_t closestBin = FindValueBinLocation(aValue);
105 e = LinearInterpolationOfEnergy(aValue, closestBin);
110 size_t G4PhysicsOrderedFreeVector::FindValueBinLocation(
G4double aValue)
118 G4double G4PhysicsOrderedFreeVector::LinearInterpolationOfEnergy(
G4double aValue,
124 res += (aValue - dataVector[
bin])*(
binVector[bin+1] - res)/del;
G4PVDataVector dataVector
void InsertValues(G4double energy, G4double value)
const XML_Char int const XML_Char * value
G4double GetEnergy(G4double aValue)
G4double energy(const ThreeVector &p, const G4double m)
T min(const T t1, const T t2)
brief Return the smallest of the two arguments
G4PhysicsOrderedFreeVector()
virtual ~G4PhysicsOrderedFreeVector()