3#ifndef ROOSTATS_HISTFACTORY_HISTFACTORYINTERPOLATIONCODEUTILS_H
4#define ROOSTATS_HISTFACTORY_HISTFACTORYINTERPOLATIONCODEUTILS_H
25inline bool setInterpolationCode(
RooAbsReal const &self,
const char *className,
RooAbsArg const ¶m,
26 std::vector<int> &codes, std::size_t iParam,
int code,
int maxCode)
28 if (code < 0 || code > maxCode) {
29 oocoutE(&self, InputArguments) << className <<
"::setInterpCode ERROR: " << param.
GetName()
30 <<
" with unknown interpolation code " << code <<
", keeping current code "
31 << codes[iParam] << std::endl;
38 oocoutE(&self, InputArguments) << className <<
"::setInterpCode ERROR: " << param.
GetName()
39 <<
" with unknown interpolation code " << code <<
", defaulting to code 2"
43 codes.at(iParam) = code;
Common abstract base class for objects that represent a value and a "shape" in RooFit.
Abstract base class for objects that represent a real value and implements functionality common to al...
const char * GetName() const override
Returns name of object.
Namespace for the RooStats classes.