78 bool checkVariables) :
80 _actualVars(
"actualVars",
"Variables used by formula expression",this),
101 bool checkVariables) :
103 _actualVars(
"actualVars",
"Variables used by formula expression",this),
122 _actualVars(
"actualVars",this,other._actualVars),
123 _formExpr(other._formExpr)
201 os <<
"formula=\"" <<
_formExpr <<
"\" " ;
212 coutE(InputArguments) <<
"RooFormulaVar::readFromStream(" <<
GetName() <<
"): can't read" << endl ;
224 cout <<
getVal() << endl ;
238 auto func =
static_cast<const RooAbsReal*
>(par);
239 list<double>* binb =
nullptr;
241 if (func && (binb = func->binBoundaries(obs,xlo,xhi)) ) {
257 auto func =
dynamic_cast<const RooAbsReal*
>(par);
258 list<double>* hint =
nullptr;
260 if (func && (hint = func->plotSamplingHint(obs,xlo,xhi)) ) {
293 if (nllArg && !chi2Arg) {
294 coutI(Minimization) <<
"RooFormulaVar::defaultErrorLevel(" <<
GetName()
295 <<
") Formula contains a RooNLLVar, using its error level" << endl ;
297 }
else if (chi2Arg && !nllArg) {
298 coutI(Minimization) <<
"RooFormulaVar::defaultErrorLevel(" <<
GetName()
299 <<
") Formula contains a RooChi2Var, using its error level" << endl ;
301 }
else if (!nllArg && !chi2Arg) {
302 coutI(Minimization) <<
"RooFormulaVar::defaultErrorLevel(" <<
GetName() <<
") WARNING: "
303 <<
"Formula contains neither RooNLLVar nor RooChi2Var server, using default level of 1.0" << endl ;
305 coutI(Minimization) <<
"RooFormulaVar::defaultErrorLevel(" <<
GetName() <<
") WARNING: "
306 <<
"Formula contains BOTH RooNLLVar and RooChi2Var server, using default level of 1.0" << endl ;
static void indent(ostringstream &buf, int indent_level)
RooAbsCollection is an abstract container object that can hold multiple RooAbsArg objects.
const RooArgSet * nset() const
RooAbsRealLValue is the common abstract base class for objects that represent a real value that may a...
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
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.
RooChi2Var implements a 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...
Class RooNLLVar 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.