73 bool checkVariables) :
75 _actualVars(
"actualVars",
"Variables used by formula expression",this),
97 bool checkVariables) :
99 _actualVars(
"actualVars",
"Variables used by formula expression",this),
119 _actualVars(
"actualVars",this,other._actualVars),
120 _formExpr(other._formExpr)
137 const_cast<std::unique_ptr<RooFormula>&
>(this->
_formula).reset(theFormula);
188 os <<
"formula=\"" <<
_formExpr <<
"\" " ;
211 cout <<
getVal() << endl ;
225 auto func =
static_cast<const RooAbsReal*
>(par);
226 list<Double_t>* binb =
nullptr;
228 if (func && (binb = func->binBoundaries(obs,xlo,xhi)) ) {
244 auto func =
dynamic_cast<const RooAbsReal*
>(par);
245 list<Double_t>* hint =
nullptr;
247 if (func && (hint = func->plotSamplingHint(obs,xlo,xhi)) ) {
280 if (nllArg && !chi2Arg) {
282 <<
") Formula contains a RooNLLVar, using its error level" << endl ;
284 }
else if (chi2Arg && !nllArg) {
286 <<
") Formula contains a RooChi2Var, using its error level" << endl ;
288 }
else if (!nllArg && !chi2Arg) {
290 <<
"Formula contains neither RooNLLVar nor RooChi2Var server, using default level of 1.0" << endl ;
293 <<
"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.
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...
virtual Double_t defaultErrorLevel() const
Double_t traceEval(const RooArgSet *set) const
Calculate current value of object, with error tracing wrapper.
virtual void printMultiline(std::ostream &os, Int_t contents, Bool_t verbose=kFALSE, TString indent="") const
Structure printing.
Double_t getVal(const RooArgSet *normalisationSet=nullptr) const
Evaluate object.
RooArgList is a container object that can hold multiple RooAbsArg objects.
Class RooChi2Var implements a simple chi^2 calculation from a binned dataset and a PDF.
virtual Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE)
Reimplementation of standard RooArgList::add()
Class RooNLLVar implements a -log(likelihood) calculation from a dataset and a PDF.
virtual const char * GetTitle() const
Returns title of object.
virtual const char * GetName() const
Returns name of object.