Docs | All | Real | Category | PDF | DataSet | Plot | Container | Misc | Aux | User |
RooFormulaVarclass description - source file - inheritance tree (.pdf) class RooFormulaVar : public RooAbsReal
protected: Data Membersprotected: Class DescriptionRooRealVar is a generic implementation of a real valued object which takes a RooArgList of servers and a C++ expression string defining how its value should be calculated from the given list of servers. RooRealVar uses a RooFormula object to perform the expression evaluation. If RooAbsPdf objects are supplied to RooRealVar as servers, their raw (unnormalized) values will be evaluated. Use RooGenericPdf, which constructs generic PDF functions, to access their properly normalized values. The string expression can be any valid TFormula expression referring to the listed servers either by name or by their ordinal list position: RooRealVar("gen","x*y",RooArgList(x,y)) or RooRealVar("gen","@0*@1",RooArgList(x,y)) The latter form, while slightly less readable, is more versatile because it doesn't hardcode any of the variable names it expects RooFormulaVar(const char *name, const char *title, const char* formula, const RooArgList& dependents) : RooAbsReal(name,title), _actualVars("actualVars","Variables used by formula expression",this), _formula(0), _formExpr(formula) Constructor with formula expression and list of input variables RooFormula tmpFormula(name,formula,dependents) ; RooFormulaVar(const char *name, const char *title, const RooArgList& dependents) : RooAbsReal(name,title), _actualVars("actualVars","Variables used by formula expression",this), _formula(0), _formExpr(title) Constructor with formula expression, title and list of input variables RooFormula tmpFormula(name,title,dependents) ; RooFormulaVar(const RooFormulaVar& other, const char* name) : RooAbsReal(other, name), _actualVars("actualVars",this,other._actualVars), _formula(0), _formExpr(other._formExpr) Copy constructor ~RooFormulaVar() Destructor RooFormula& formula() const Double_t evaluate() const Calculate current value of object Bool_t isValidReal(Double_t /*value*/, Bool_t /*printError*/) const Check if given value is valid Bool_t redirectServersHook(const RooAbsCollection& newServerList, Bool_t mustReplaceAll, Bool_t nameChange, Bool_t /*isRecursive*/) Propagate server change information to embedded RooFormula object void printToStream(ostream& os, PrintOption opt, TString indent) const Print info about this object to the specified stream. Bool_t readFromStream(istream& /*is*/, Bool_t /*compact*/, Bool_t /*verbose*/) Read object contents from given stream void writeToStream(ostream& os, Bool_t compact) const Write object contents to given stream Double_t defaultErrorLevel() const See if we contain a RooNLLVar or RooChi2Var object Inline FunctionsRooFormulaVar RooFormulaVar(const RooFormulaVar& other, const char* name = "0") TObject* clone(const char* newname) const Bool_t ok() const RooAbsArg* getParameter(const char* name) const RooAbsArg* getParameter(Int_t index) const void dumpFormula() TClass* Class() TClass* IsA() const void ShowMembers(TMemberInspector& insp, char* parent) void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)
|
Page maintained by Wouter Verkerke and David Kirkby |