56#ifdef ROOFIT_LEGACY_EVAL_BACKEND
61using std::ostream, std::istream, std::list;
82 _actualVars(
"actualVars",
"Variables used by formula expression",
this),
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" << std::endl ;
226 std::cout <<
getVal() << std::endl ;
240 auto func =
static_cast<const RooAbsReal*
>(par);
243 if (func && (
binb = func->binBoundaries(obs,xlo,xhi)) ) {
259 auto func =
dynamic_cast<const RooAbsReal*
>(par);
262 if (func && (
hint = func->plotSamplingHint(obs,xlo,xhi)) ) {
286#ifdef ROOFIT_LEGACY_EVAL_BACKEND
298 coutI(Minimization) <<
"RooFormulaVar::defaultErrorLevel(" <<
GetName()
299 <<
") Formula contains a RooNLLVar, using its error level" << std::endl ;
300 return nllArg->defaultErrorLevel() ;
302 coutI(Minimization) <<
"RooFormulaVar::defaultErrorLevel(" <<
GetName()
303 <<
") Formula contains a RooChi2Var, using its error level" << std::endl ;
304 return chi2Arg->defaultErrorLevel() ;
306 coutI(Minimization) <<
"RooFormulaVar::defaultErrorLevel(" <<
GetName() <<
") WARNING: "
307 <<
"Formula contains neither RooNLLVar nor RooChi2Var server, using default level of 1.0" << std::endl ;
309 coutI(Minimization) <<
"RooFormulaVar::defaultErrorLevel(" <<
GetName() <<
") WARNING: "
310 <<
"Formula contains BOTH RooNLLVar and RooChi2Var server, using default level of 1.0" << std::endl ;
static void indent(ostringstream &buf, int indent_level)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
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.
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