62 Int_t ibin = std::distance(std::lower_bound(fX.rbegin(), fX.rend(),
x, std::greater{}), fX.rend()) - 1;
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
A TGraph is an object made of two arrays X and Y with npoints each.
Linear interpolation of TGraph.
TSpline1(const TString &title, const TGraph *theGraph)
constructor from TGraph pointer (not owned by TSpline1) TSpline is a TNamed object
void BuildCoeff(void) override
no coefficients to precompute
Double_t Eval(Double_t x) const override
returns linearly interpolated TGraph entry around x
virtual ~TSpline1(void)
destructor
void GetKnot(Int_t i, Double_t &x, Double_t &y) const override
no knots
virtual void SetNameTitle(const char *name, const char *title)
Set all the TNamed parameters (name and title).