59using std::ostream, std::istream, std::list;
76 _actualVars(
"actualVars",
"Variables used by formula expression",this),
104 _actualVars(
"actualVars",this,other._actualVars),
105 _formExpr(other._formExpr)
166 os <<
"formula=\"" <<
_formExpr <<
"\" " ;
177 coutE(InputArguments) <<
"RooFormulaVar::readFromStream(" <<
GetName() <<
"): can't read" << std::endl ;
189 std::cout <<
getVal() << std::endl ;
247 auto func =
static_cast<const RooAbsReal*
>(par);
248 list<double>* binb =
nullptr;
250 if (func && (binb = func->binBoundaries(obs,xlo,xhi)) ) {
270 auto func =
dynamic_cast<const RooAbsReal*
>(par);
271 list<double>* hint =
nullptr;
273 if (func && (hint = func->plotSamplingHint(obs,xlo,xhi)) ) {
295 if (
dynamic_cast<RooFit::Detail::RooNLLVarNew*
>(arg)) {
301 coutI(Minimization) <<
"RooFormulaVar::defaultErrorLevel(" <<
GetName()
302 <<
") Formula contains a test statistic, using its error level" << std::endl ;
306 coutI(Minimization) <<
"RooFormulaVar::defaultErrorLevel(" <<
GetName() <<
") WARNING: "
307 <<
"Formula contains no test statistic server, using default level of 1.0" << std::endl ;
314 return evaluator().getTFormula()->GetUniqueFuncName().Data();
317std::unique_ptr<RooAbsArg>
330 auto newArg = std::unique_ptr<RooAbsArg>{
static_cast<RooAbsArg *
>(
Clone())};
static void indent(ostringstream &buf, int indent_level)
Common abstract base class for objects that represent a value and a "shape" in RooFit.
RooFit::OwningPtr< RooArgSet > getObservables(const RooArgSet &set, bool valueOnly=true) const
Given a set of possible observables, return the observables that this PDF depends on.
RooFit::OwningPtr< RooArgSet > getComponents() const
Create a RooArgSet with all components (branch nodes) of the expression tree headed by this object.
TObject * Clone(const char *newname=nullptr) const override
Make a clone of an object using the Streamer facility.
Abstract base class for RooRealVar binning definitions.
Int_t index(const RooAbsArg *arg) const
Returns index of given arg, or -1 if arg is not in the collection.
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.
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.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
void markAsCompiled(RooAbsArg &arg) const
void compileServers(RooAbsArg &arg, RooArgSet const &normSet)
const char * GetName() const override
Returns name of object.
const char * GetTitle() const override
Returns title of object.
const char * Data() const