56#ifdef ROOFIT_LEGACY_EVAL_BACKEND
61using std::cout,std::endl, std::ostream, std::istream, std::list;
80 bool checkVariables) :
82 _actualVars(
"actualVars",
"Variables used by formula expression",this),
103 bool checkVariables) :
105 _actualVars(
"actualVars",
"Variables used by formula expression",this),
124 _actualVars(
"actualVars",this,other._actualVars),
125 _formExpr(other._formExpr)
203 os <<
"formula=\"" <<
_formExpr <<
"\" " ;
214 coutE(InputArguments) <<
"RooFormulaVar::readFromStream(" <<
GetName() <<
"): can't read" << endl ;
226 cout <<
getVal() << endl ;
240 auto func =
static_cast<const RooAbsReal*
>(par);
241 list<double>* binb =
nullptr;
243 if (func && (binb = func->binBoundaries(obs,xlo,xhi)) ) {
259 auto func =
dynamic_cast<const RooAbsReal*
>(par);
260 list<double>* hint =
nullptr;
262 if (func && (hint = func->plotSamplingHint(obs,xlo,xhi)) ) {
286#ifdef ROOFIT_LEGACY_EVAL_BACKEND
297 if (nllArg && !chi2Arg) {
298 coutI(Minimization) <<
"RooFormulaVar::defaultErrorLevel(" <<
GetName()
299 <<
") Formula contains a RooNLLVar, using its error level" << endl ;
301 }
else if (chi2Arg && !nllArg) {
302 coutI(Minimization) <<
"RooFormulaVar::defaultErrorLevel(" <<
GetName()
303 <<
") Formula contains a RooChi2Var, using its error level" << endl ;
305 }
else if (!nllArg && !chi2Arg) {
306 coutI(Minimization) <<
"RooFormulaVar::defaultErrorLevel(" <<
GetName() <<
") WARNING: "
307 <<
"Formula contains neither RooNLLVar nor RooChi2Var server, using default level of 1.0" << endl ;
309 coutI(Minimization) <<
"RooFormulaVar::defaultErrorLevel(" <<
GetName() <<
") WARNING: "
310 <<
"Formula contains BOTH RooNLLVar and RooChi2Var server, using default level of 1.0" << endl ;
static void indent(ostringstream &buf, int indent_level)
Abstract container object that can hold multiple RooAbsArg objects.
const RooArgSet * nset() const
Abstract base class for objects that represent a real value that may appear on the left hand side of ...
Abstract base class for objects that represent a real value and implements functionality common to al...
double getVal(const RooArgSet *normalisationSet=nullptr) const
Evaluate object.
virtual double defaultErrorLevel() const
void printMultiline(std::ostream &os, Int_t contents, bool verbose=false, TString indent="") const override
Structure printing.
bool redirectServersHook(const RooAbsCollection &newServerList, bool mustReplaceAll, bool nameChange, bool isRecursiveStep) override
Function that is called at the end of redirectServers().
double _value
Cache for current value of object.
double traceEval(const RooArgSet *set) const
Calculate current value of object, with error tracing wrapper.
RooArgList is a container object that can hold multiple RooAbsArg objects.
Simple calculation from a binned dataset and a PDF.
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...
Implements a -log(likelihood) calculation from a dataset and a PDF.
const char * GetName() const override
Returns name of object.
const char * GetTitle() const override
Returns title of object.
const char * Data() const