28using std::vector, std::endl;
39 double nominal, vector<double> low, vector<double> high) :
41 _paramList(
"paramList",
"List of paramficients",this),
42 _nominal(nominal), _low(low), _high(high)
45 for (
auto param : paramList) {
47 coutE(InputArguments) <<
"LinInterpVar::ctor(" <<
GetName() <<
") ERROR: paramficient " << param->
GetName()
48 <<
" is not of type RooAbsReal" << endl ;
60 _paramList(
"paramList",
"List of coefficients",this),
70 _paramList(
"paramList",this,other._paramList),
71 _nominal(other._nominal), _low(other._low), _high(other._high)
87 for(
auto const* param: static_range_cast<RooAbsReal *>(
_paramList)) {
88 if (param->getVal() > 0) {
Abstract base class for objects that represent a real value and implements functionality common to al...
RooArgList is a container object that can hold multiple RooAbsArg objects.
bool add(const RooAbsArg &var, bool valueServer, bool shapeServer, bool silent)
Overloaded RooCollection_t::add() method insert object into set and registers object as server to own...
RooAbsReal that does piecewise-linear interpolations.
std::vector< double > _low
std::vector< double > _high
double evaluate() const override
Calculate and return value of polynomial.
const char * GetName() const override
Returns name of object.
Namespace for the RooStats classes.
static uint64_t sum(uint64_t i)