75 std::span<const double>
y0,
int order,
bool logx,
bool logy)
78 const std::string
title_spline = std::string(title) +
"_spline";
79 if (
x0.size() !=
y0.size()) {
81 errMsg <<
"RooSpline::ctor(" <<
GetName() <<
") ERROR: size of x and y are not equal";
83 throw std::invalid_argument(
errMsg.str());
87 std::vector<double>
x0Copy;
89 std::vector<double>
y0Copy;
105 }
else if (order == 5) {
109 errMsg <<
"supported orders are 3 or 5";
110 coutE(InputArguments) <<
errMsg.str() << std::endl;
111 throw std::invalid_argument(
errMsg.str());
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
const_iterator begin() const
const_iterator end() const
Abstract base class for objects that represent a real value and implements functionality common to al...
A RooFit class for creating spline functions.
bool _logx
Flag indicating logarithmic scaling of x values.
double evaluate() const override
Evaluate the spline function at the current point.
RooRealProxy _x
The independent variable.
std::unique_ptr< TSpline > _spline
The spline object.
bool _logy
Flag indicating logarithmic scaling of y values.
A TGraph is an object made of two arrays X and Y with npoints each.
const char * GetName() const override
Returns name of object.
Base class for spline implementation containing the Draw/Paint methods.