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;
static G4VelocityTable * GetVelocityTable()
static void SetVelocityTableProperties(G4double t_max, G4double t_min, G4int nbin)
G4double Value(G4double theEnergy)
static G4double GetMaxTOfVelocityTable()
static G4double GetMinTOfVelocityTable()
static G4int GetNbinOfVelocityTable()