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;
116 size_t closestBin = FindValueBinLocation(aValue);
117 G4double theEnergy = LinearInterpolationOfEnergy(aValue, closestBin);
123 size_t G4PhysicsOrderedFreeVector::FindValueBinLocation(
G4double aValue)
128 while (n1 != n3 - 1) {
133 n2 = n1 + (n3 - n1 + 1)/2;
138 G4double G4PhysicsOrderedFreeVector::LinearInterpolationOfEnergy(
G4double aValue,
G4PVDataVector dataVector
void InsertValues(G4double energy, G4double value)
G4double GetMaxLowEdgeEnergy()
G4double GetEnergy(G4double aValue)
const XML_Char int const XML_Char * value
G4double GetMinLowEdgeEnergy()
G4PhysicsOrderedFreeVector()
virtual ~G4PhysicsOrderedFreeVector()