59 _actualVars("actualVars","Variables used by PDF expression",this),
63 _actualVars.add(dependents) ;
65 if (_actualVars.getSize()==0) _value = traceEval(0) ;
74 const char* inFormula,
const RooArgList& dependents) :
76 _actualVars(
"actualVars",
"Variables used by PDF expression",this),
92 _actualVars(
"actualVars",this,other._actualVars),
94 _formExpr(other._formExpr)
177 os <<
" --- RooGenericPdf --- " << endl ;
191 os <<
"formula=\"" <<
_formExpr <<
"\" " ;
virtual const char * GetTitle() const
Returns title of object.
virtual void writeToStream(std::ostream &os, Bool_t compact) const
Write object contents to given stream.
Double_t traceEval(const RooArgSet *set) const
Calculate current value of object, with error tracing wrapper.
TString _formExpr
Formula engine.
const char * Data() const
TString & Append(const char *cs)
Double_t getVal(const RooArgSet *set=0) const
void printMetaArgs(std::ostream &os) const
Add formula expression as meta argument in printing interface.
ClassImp(RooGenericPdf) RooGenericPdf
Constructor with formula expression and list of input variables.
virtual Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE)
Reimplementation of standard RooArgList::add()
virtual Double_t evaluate() const
Calculate current value of this object.
virtual Bool_t isValidReal(Double_t value, Bool_t printError) const
Check if given value is valid.
void printMultiline(std::ostream &os, Int_t content, Bool_t verbose=kFALSE, TString indent="") const
Print info about this object to the specified stream.
virtual const char * GetName() const
Returns name of object.
virtual ~RooGenericPdf()
Destructor.
TString readLine()
Read an entire line from the stream and return as TString This method recognizes the use of '\' in th...
static void indent(ostringstream &buf, int indent_level)
virtual void printMultiline(std::ostream &os, Int_t contents, Bool_t verbose=kFALSE, TString indent="") const
Print multi line detailed information of this RooAbsPdf.
void setValueDirty() const
virtual Bool_t readFromStream(std::istream &is, Bool_t compact, Bool_t verbose=kFALSE)
Read object contents from given stream.
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
virtual Bool_t redirectServersHook(const RooAbsCollection &newServerList, Bool_t mustReplaceAll, Bool_t nameChange, Bool_t isRecursive)
Propagate server changes to embedded formula object.
Bool_t setFormula(const char *formula)
Change formula expression to given expression.
RooArgSet * _normSet
Normalization integral (owned by _normMgr)
RooFormula & formula() const