69 for (
size_t i = 0 ; i < VectorLength ; ++i)
93 std::vector<G4double>::iterator binLoc =
96 size_t binIdx = binLoc -
binVector.begin();
98 std::vector<G4double>::iterator dataLoc =
dataVector.begin() + binIdx;
136 res += (aValue - dataVector[bin])*(
binVector[bin+1] - res)/del;
G4PVDataVector dataVector
G4double LinearInterpolationOfEnergy(G4double aValue, size_t theLocBin)
void InsertValues(G4double energy, G4double value)
G4GLOB_DLL std::ostream G4cout
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
size_t FindValueBinLocation(G4double aValue)
G4PhysicsOrderedFreeVector()
virtual ~G4PhysicsOrderedFreeVector()