42 #ifndef G4VelocityTable_h
43 #define G4VelocityTable_h 1
56 typedef std::vector<G4double> G4VTDataVector;
79 size_t FindBinLocation(
G4double theEnergy)
const;
89 G4VTDataVector dataVector;
90 G4VTDataVector binVector;
91 G4VTDataVector secDerivative;
101 void PrepareVelocityTable();
110 G4double G4VelocityTable::Interpolation()
const
118 G4double intplFactor = (lastEnergy-binVector[lastBin])
119 / (binVector[lastBin + 1]-binVector[lastBin]);
121 return dataVector[lastBin] +
122 ( dataVector[lastBin + 1]-dataVector[lastBin] ) * intplFactor;
static G4VelocityTable * GetVelocityTable()
static G4double GetMinTOfVelocityTable()
static G4int GetNbinOfVelocityTable()
static void SetVelocityTableProperties(G4double t_max, G4double t_min, G4int nbin)
static G4double GetMaxTOfVelocityTable()
G4double Value(G4double theEnergy)