46 std::size_t VectorLength)
54 for(std::size_t i = 0; i < VectorLength; ++i)
62 const std::vector<G4double>& Energies,
const std::vector<G4double>& Values)
65 if(Energies.size() != Values.size())
68 ed <<
"The sizes of the two std::vector arguments must be the same";
69 G4Exception(
"G4PhysicsOrderedFreeVector::G4PhysicsOrderedFreeVector()",
78 for(std::size_t i = 0; i < Energies.size(); ++i)
92 std::size_t binIdx = binLoc -
binVector.cbegin();
118 std::size_t closestBin = FindValueBinLocation(aValue);
119 e = LinearInterpolationOfEnergy(aValue, closestBin);
125std::size_t G4PhysicsOrderedFreeVector::FindValueBinLocation(
G4double aValue)
135G4double G4PhysicsOrderedFreeVector::LinearInterpolationOfEnergy(
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
@ T_G4PhysicsOrderedFreeVector
void InsertValues(G4double energy, G4double value)
virtual ~G4PhysicsOrderedFreeVector()
G4PhysicsOrderedFreeVector()
G4double GetEnergy(G4double aValue)
std::size_t numberOfNodes
G4PVDataVector dataVector