68 for (
size_t i = 0 ; i < VectorLength ; i++)
92 std::vector<G4double>::iterator binLoc =
95 size_t binIdx = binLoc -
binVector.begin();
97 std::vector<G4double>::iterator dataLoc =
dataVector.begin() + binIdx;
120 size_t closestBin = FindValueBinLocation(aValue);
121 G4double theEnergy = LinearInterpolationOfEnergy(aValue, closestBin);
127size_t G4PhysicsOrderedFreeVector::FindValueBinLocation(
G4double aValue)
132 while (n1 != n3 - 1) {
137 n2 = n1 + (n3 - n1 + 1)/2;
142G4double G4PhysicsOrderedFreeVector::LinearInterpolationOfEnergy(
G4double aValue,
153size_t G4PhysicsOrderedFreeVector::FindBinLocation(
G4double theEnergy)
const
164 n2 = n1 + (n3 - n1 + 1)/2;
@ T_G4PhysicsOrderedFreeVector
void InsertValues(G4double energy, G4double value)
G4double GetMinLowEdgeEnergy()
virtual ~G4PhysicsOrderedFreeVector()
G4double GetLowEdgeEnergy(size_t binNumber) const
G4double GetMaxLowEdgeEnergy()
G4PhysicsOrderedFreeVector()
G4double GetEnergy(G4double aValue)
G4PVDataVector dataVector