22 #ifndef _elegent_interpolation_model_
23 #define _elegent_interpolation_model_
64 virtual void Print()
const;
67 virtual TComplex
Amp(
double t)
const
69 double f = (t -
t_min) / dt;
70 unsigned int idx = (
unsigned int) f;
74 if (fabs(t - t_max) < 1E-10)
76 return TComplex(0, 0);
81 return amp_data[idx] + (amp_data[idx+1] - amp_data[idx]) * f;
84 virtual TComplex
Prf(
double b)
const;
87 inline double GetT(
unsigned int idx)
const
89 return t_min + dt * idx;
92 inline void SetPoint(
unsigned int idx,
const TComplex &v)
double GetT(unsigned int idx) const
returns the value of t corresponding to the point with index `idx' (between 0 and N-1 inclusively) ...
Definition: InterpolationModel.h:87
double dt
the t interval between two adjacent (equidistant) points
Definition: InterpolationModel.h:50
virtual TComplex Amp(double t) const
amplitude, t in GeV^-2, t < 0
Definition: InterpolationModel.h:67
virtual TComplex Prf(double b) const
Profile function (amplitude in b-space).
Definition: InterpolationModel.cc:61
virtual void Init()
sets up model parameters and data members
Definition: InterpolationModel.h:62
double t_min
the lower boundary
Definition: InterpolationModel.h:44
double t_max
the upper boundary
Definition: InterpolationModel.h:47
std::vector< TComplex > amp_data
amplitude samples
Definition: InterpolationModel.h:53
The base class for hadronic models of (anti)proton-proton elastic scattering.
Definition: Model.h:35
unsigned int N
number of points (samples)
Definition: InterpolationModel.h:41
Model that interpolates stored amplitude points.
Definition: InterpolationModel.h:37
virtual void Print() const
prints model info
Definition: InterpolationModel.cc:53