42 #ifndef G4VelocityTable_h
43 #define G4VelocityTable_h 1
56 typedef std::vector<G4double> G4VTDataVector;
78 size_t FindBinLocation(
G4double theEnergy)
const;
88 G4VTDataVector dataVector;
89 G4VTDataVector binVector;
90 G4VTDataVector secDerivative;
100 void PrepareVelocityTable();
109 G4double G4VelocityTable::Interpolation()
const
117 G4double intplFactor = (lastEnergy-binVector[lastBin])
118 / (binVector[lastBin + 1]-binVector[lastBin]);
120 return dataVector[lastBin] +
121 ( dataVector[lastBin + 1]-dataVector[lastBin] ) * intplFactor;