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;
124 res += (aValue - dataVector[
bin])*(
binVector[bin+1] - res)/del;
size_t FindValueBinLocation(G4double aValue)
void InsertValues(G4double energy, G4double value)
G4double GetEnergy(G4double aValue)
const XML_Char int const XML_Char * value
virtual ~G4PhysicsOrderedFreeVector()
G4PVDataVector dataVector
G4PhysicsOrderedFreeVector()
G4double LinearInterpolationOfEnergy(G4double aValue, size_t theLocBin)
T min(const T t1, const T t2)
brief Return the smallest of the two arguments