#include <RooFormulaVar.h>
Inheritance diagram for RooFormulaVar:
Public Member Functions | |
RooFormulaVar () | |
RooFormulaVar (const char *name, const char *title, const char *formula, const RooArgList &dependents) | |
RooFormulaVar (const char *name, const char *title, const RooArgList &dependents) | |
RooFormulaVar (const RooFormulaVar &other, const char *name=0) | |
virtual TObject * | clone (const char *newname) const |
virtual | ~RooFormulaVar () |
Bool_t | ok () const |
RooAbsArg * | getParameter (const char *name) const |
RooAbsArg * | getParameter (Int_t index) const |
virtual Bool_t | readFromStream (istream &is, Bool_t compact, Bool_t verbose=kFALSE) |
virtual void | writeToStream (ostream &os, Bool_t compact) const |
virtual void | printMultiline (ostream &os, Int_t contents, Bool_t verbose=kFALSE, TString indent="") const |
void | printMetaArgs (ostream &os) const |
void | dumpFormula () |
virtual Double_t | getVal (const RooArgSet *set=0) const |
virtual Double_t | defaultErrorLevel () const |
RooFormulaVar () | |
RooFormulaVar (const char *name, const char *title, const char *formula, const RooArgList &dependents) | |
RooFormulaVar (const char *name, const char *title, const RooArgList &dependents) | |
RooFormulaVar (const RooFormulaVar &other, const char *name=0) | |
virtual TObject * | clone (const char *newname) const |
virtual | ~RooFormulaVar () |
Bool_t | ok () const |
RooAbsArg * | getParameter (const char *name) const |
RooAbsArg * | getParameter (Int_t index) const |
virtual Bool_t | readFromStream (istream &is, Bool_t compact, Bool_t verbose=kFALSE) |
virtual void | writeToStream (ostream &os, Bool_t compact) const |
virtual void | printMultiline (ostream &os, Int_t contents, Bool_t verbose=kFALSE, TString indent="") const |
void | printMetaArgs (ostream &os) const |
void | dumpFormula () |
virtual Double_t | getVal (const RooArgSet *set=0) const |
virtual Double_t | defaultErrorLevel () const |
Protected Member Functions | |
virtual Double_t | evaluate () const |
RooFormula & | formula () const |
virtual Bool_t | redirectServersHook (const RooAbsCollection &newServerList, Bool_t mustReplaceAll, Bool_t nameChange, Bool_t isRecursive) |
virtual Bool_t | isValidReal (Double_t value, Bool_t printError) const |
virtual Double_t | evaluate () const |
RooFormula & | formula () const |
virtual Bool_t | redirectServersHook (const RooAbsCollection &newServerList, Bool_t mustReplaceAll, Bool_t nameChange, Bool_t isRecursive) |
virtual Bool_t | isValidReal (Double_t value, Bool_t printError) const |
Protected Attributes | |
RooListProxy | _actualVars |
RooFormula * | _formula |
RooArgSet * | _nset |
Formula engine. | |
TString | _formExpr |
Normalization set to be passed along to contents. | |
RooFormula * | _formula |
RooArgSet * | _nset |
Formula engine. |
Definition at line 26 of file RooFormulaVar.h.
RooFormulaVar::RooFormulaVar | ( | ) | [inline] |
RooFormulaVar::RooFormulaVar | ( | const char * | name, | |
const char * | title, | |||
const char * | formula, | |||
const RooArgList & | dependents | |||
) |
RooFormulaVar::RooFormulaVar | ( | const char * | name, | |
const char * | title, | |||
const RooArgList & | dependents | |||
) |
Definition at line 72 of file RooFormulaVar.cxx.
References _actualVars, RooAbsReal::_value, RooListProxy::add(), RooAbsCollection::getSize(), and RooAbsReal::traceEval().
RooFormulaVar::RooFormulaVar | ( | const RooFormulaVar & | other, | |
const char * | name = 0 | |||
) |
Definition at line 87 of file RooFormulaVar.cxx.
RooFormulaVar::~RooFormulaVar | ( | ) | [virtual] |
RooFormulaVar::RooFormulaVar | ( | ) | [inline] |
Definition at line 29 of file RooFormulaVar.h.
RooFormulaVar::RooFormulaVar | ( | const char * | name, | |
const char * | title, | |||
const char * | formula, | |||
const RooArgList & | dependents | |||
) |
RooFormulaVar::RooFormulaVar | ( | const char * | name, | |
const char * | title, | |||
const RooArgList & | dependents | |||
) |
RooFormulaVar::RooFormulaVar | ( | const RooFormulaVar & | other, | |
const char * | name = 0 | |||
) |
virtual RooFormulaVar::~RooFormulaVar | ( | ) | [virtual] |
virtual TObject* RooFormulaVar::clone | ( | const char * | newname | ) | const [inline, virtual] |
Bool_t RooFormulaVar::ok | ( | ) | const [inline] |
RooAbsArg* RooFormulaVar::getParameter | ( | const char * | name | ) | const [inline] |
Definition at line 38 of file RooFormulaVar.h.
References _actualVars, and RooAbsCollection::find().
Referenced by RooGExpModel::analyticalIntegral(), RooGaussModel::analyticalIntegral(), RooTruthModel::analyticalIntegral(), RooResolutionModel::convolution(), RooGaussModel::evaluate(), RooTruthModel::evaluate(), RooGExpModel::evaluate(), and RooProdPdf::rearrangeProduct().
Bool_t RooFormulaVar::readFromStream | ( | istream & | is, | |
Bool_t | compact, | |||
Bool_t | verbose = kFALSE | |||
) | [virtual] |
Reimplemented from RooAbsReal.
Definition at line 184 of file RooFormulaVar.cxx.
References coutE, TNamed::GetName(), RooFit::InputArguments, and kTRUE.
void RooFormulaVar::writeToStream | ( | ostream & | os, | |
Bool_t | compact | |||
) | const [virtual] |
Reimplemented from RooAbsReal.
Definition at line 195 of file RooFormulaVar.cxx.
References TNamed::GetTitle(), and getVal().
void RooFormulaVar::printMultiline | ( | ostream & | os, | |
Int_t | contents, | |||
Bool_t | verbose = kFALSE , |
|||
TString | indent = "" | |||
) | const [virtual] |
Reimplemented from RooAbsReal.
Definition at line 159 of file RooFormulaVar.cxx.
References TString::Append(), formula(), RooAbsReal::printMultiline(), and RooFormula::printMultiline().
void RooFormulaVar::printMetaArgs | ( | ostream & | os | ) | const [virtual] |
Reimplemented from RooAbsArg.
Definition at line 174 of file RooFormulaVar.cxx.
References _formExpr.
void RooFormulaVar::dumpFormula | ( | ) | [inline] |
Reimplemented from RooAbsReal.
Definition at line 121 of file RooFormulaVar.cxx.
References _nset, and RooAbsReal::getVal().
Referenced by RooDataHist::add(), RooTruthModel::evaluate(), RooTreeDataStore::loadValues(), RooDataHist::reduceEng(), RooAbsData::table(), and writeToStream().
Double_t RooFormulaVar::defaultErrorLevel | ( | ) | const [virtual] |
Reimplemented from RooAbsReal.
Definition at line 208 of file RooFormulaVar.cxx.
References _actualVars, coutI, RooAbsCollection::createIterator(), RooAbsReal::defaultErrorLevel(), TNamed::GetName(), RooFit::Minimization, and TIterator::Next().
Double_t RooFormulaVar::evaluate | ( | ) | const [protected, virtual] |
Implements RooAbsReal.
Definition at line 132 of file RooFormulaVar.cxx.
References _nset, RooFormula::eval(), and formula().
RooFormula & RooFormulaVar::formula | ( | ) | const [protected] |
Definition at line 108 of file RooFormulaVar.cxx.
References _actualVars, _formExpr, _formula, and TNamed::GetName().
Referenced by dumpFormula(), evaluate(), ok(), and printMultiline().
Bool_t RooFormulaVar::redirectServersHook | ( | const RooAbsCollection & | newServerList, | |
Bool_t | mustReplaceAll, | |||
Bool_t | nameChange, | |||
Bool_t | isRecursive | |||
) | [protected, virtual] |
Reimplemented from RooAbsArg.
Definition at line 150 of file RooFormulaVar.cxx.
References _formula, RooFormula::changeDependents(), and kFALSE.
virtual TObject* RooFormulaVar::clone | ( | const char * | newname | ) | const [inline, virtual] |
Bool_t RooFormulaVar::ok | ( | ) | const [inline] |
RooAbsArg* RooFormulaVar::getParameter | ( | const char * | name | ) | const [inline] |
Definition at line 38 of file RooFormulaVar.h.
References _actualVars, and RooAbsCollection::find().
virtual Bool_t RooFormulaVar::readFromStream | ( | istream & | is, | |
Bool_t | compact, | |||
Bool_t | verbose = kFALSE | |||
) | [virtual] |
Reimplemented from RooAbsReal.
virtual void RooFormulaVar::writeToStream | ( | ostream & | os, | |
Bool_t | compact | |||
) | const [virtual] |
Reimplemented from RooAbsReal.
virtual void RooFormulaVar::printMultiline | ( | ostream & | os, | |
Int_t | contents, | |||
Bool_t | verbose = kFALSE , |
|||
TString | indent = "" | |||
) | const [virtual] |
Reimplemented from RooAbsReal.
void RooFormulaVar::printMetaArgs | ( | ostream & | os | ) | const [virtual] |
Reimplemented from RooAbsArg.
void RooFormulaVar::dumpFormula | ( | ) | [inline] |
Reimplemented from RooAbsReal.
virtual Double_t RooFormulaVar::defaultErrorLevel | ( | ) | const [virtual] |
Reimplemented from RooAbsReal.
virtual Double_t RooFormulaVar::evaluate | ( | ) | const [protected, virtual] |
Implements RooAbsReal.
RooFormula& RooFormulaVar::formula | ( | ) | const [protected] |
virtual Bool_t RooFormulaVar::redirectServersHook | ( | const RooAbsCollection & | newServerList, | |
Bool_t | mustReplaceAll, | |||
Bool_t | nameChange, | |||
Bool_t | isRecursive | |||
) | [protected, virtual] |
Reimplemented from RooAbsArg.
virtual Bool_t RooFormulaVar::isValidReal | ( | Double_t | value, | |
Bool_t | printError | |||
) | const [protected, virtual] |
Reimplemented from RooAbsReal.
RooListProxy RooFormulaVar::_actualVars [protected] |
Definition at line 73 of file RooFormulaVar.h.
Referenced by defaultErrorLevel(), formula(), getParameter(), and RooFormulaVar().
RooFormula* RooFormulaVar::_formula [mutable, protected] |
Definition at line 74 of file RooFormulaVar.h.
Referenced by formula(), redirectServersHook(), and ~RooFormulaVar().
RooArgSet* RooFormulaVar::_nset [mutable, protected] |
Formula engine.
Definition at line 75 of file RooFormulaVar.h.
Referenced by evaluate(), and getVal().
TString RooFormulaVar::_formExpr [protected] |
Normalization set to be passed along to contents.
Definition at line 76 of file RooFormulaVar.h.
Referenced by formula(), and printMetaArgs().
RooFormula* RooFormulaVar::_formula [mutable, protected] |
Definition at line 74 of file RooFormulaVar.h.
RooArgSet* RooFormulaVar::_nset [mutable, protected] |