#include <RooFormula.h>
Inheritance diagram for RooFormula:
Public Member Functions | |
RooFormula () | |
RooFormula (const char *name, const char *formula, const RooArgList &varList) | |
RooFormula (const RooFormula &other, const char *name=0) | |
virtual TObject * | Clone (const char *newName=0) const |
virtual | ~RooFormula () |
RooArgSet & | actualDependents () const |
Bool_t | changeDependents (const RooAbsCollection &newDeps, Bool_t mustReplaceAll, Bool_t nameChange) |
RooAbsArg * | getParameter (const char *name) const |
RooAbsArg * | getParameter (Int_t index) const |
Bool_t | ok () |
Double_t | eval (const RooArgSet *nset=0) |
void | dump () |
Bool_t | reCompile (const char *newFormula) |
virtual void | printValue (ostream &os) const |
virtual void | printName (ostream &os) const |
virtual void | printTitle (ostream &os) const |
virtual void | printClassName (ostream &os) const |
virtual void | printArgs (ostream &os) const |
void | printMultiline (ostream &os, Int_t contents, Bool_t verbose=kFALSE, TString indent="") const |
virtual void | Print (Option_t *options=0) const |
RooFormula () | |
RooFormula (const char *name, const char *formula, const RooArgList &varList) | |
RooFormula (const RooFormula &other, const char *name=0) | |
virtual TObject * | Clone (const char *newName=0) const |
virtual | ~RooFormula () |
RooArgSet & | actualDependents () const |
Bool_t | changeDependents (const RooAbsCollection &newDeps, Bool_t mustReplaceAll, Bool_t nameChange) |
RooAbsArg * | getParameter (const char *name) const |
RooAbsArg * | getParameter (Int_t index) const |
Bool_t | ok () |
Double_t | eval (const RooArgSet *nset=0) |
void | dump () |
Bool_t | reCompile (const char *newFormula) |
virtual void | printValue (ostream &os) const |
virtual void | printName (ostream &os) const |
virtual void | printTitle (ostream &os) const |
virtual void | printClassName (ostream &os) const |
virtual void | printArgs (ostream &os) const |
void | printMultiline (ostream &os, Int_t contents, Bool_t verbose=kFALSE, TString indent="") const |
virtual void | Print (Option_t *options=0) const |
Protected Member Functions | |
RooFormula & | operator= (const RooFormula &other) |
void | initCopy (const RooFormula &other) |
Int_t | DefinedVariable (TString &name, int &action) |
Int_t | DefinedVariable (TString &name) |
Double_t | DefinedValue (Int_t code) |
RooFormula & | operator= (const RooFormula &other) |
void | initCopy (const RooFormula &other) |
Int_t | DefinedVariable (TString &name, int &action) |
Int_t | DefinedVariable (TString &name) |
Double_t | DefinedValue (Int_t code) |
Protected Attributes | |
RooArgSet * | _nset |
Bool_t | _isOK |
RooLinkedList | _origList |
RooLinkedList | _useList |
Original list of dependents. | |
RooArgSet | _actual |
List of actual dependents. | |
RooLinkedList | _labelList |
Set of actual dependents. | |
Bool_t | _compiled |
RooArgSet * | _nset |
Definition at line 26 of file RooFormula.h.
RooFormula::RooFormula | ( | ) |
Referenced by Clone().
RooFormula::RooFormula | ( | const char * | name, | |
const char * | formula, | |||
const RooArgList & | varList | |||
) |
Definition at line 56 of file RooFormula.cxx.
References _compiled, _isOK, _origList, RooLinkedList::Add(), TFormula::Compile(), coutE, TNamed::GetName(), RooFit::InputArguments, kFALSE, kTRUE, list, TIterator::Next(), TNamed::SetName(), and TNamed::SetTitle().
RooFormula::RooFormula | ( | const RooFormula & | other, | |
const char * | name = 0 | |||
) |
Definition at line 82 of file RooFormula.cxx.
References _compiled, _origList, RooLinkedList::Add(), TFormula::Compile(), TNamed::GetName(), TNamed::GetTitle(), kTRUE, RooLinkedList::MakeIterator(), TNamed::SetName(), and TNamed::SetTitle().
RooFormula::~RooFormula | ( | ) | [virtual] |
RooFormula::RooFormula | ( | ) |
RooFormula::RooFormula | ( | const char * | name, | |
const char * | formula, | |||
const RooArgList & | varList | |||
) |
RooFormula::RooFormula | ( | const RooFormula & | other, | |
const char * | name = 0 | |||
) |
virtual RooFormula::~RooFormula | ( | ) | [virtual] |
virtual TObject* RooFormula::Clone | ( | const char * | newName = 0 |
) | const [inline, virtual] |
RooArgSet & RooFormula::actualDependents | ( | ) | const |
Definition at line 135 of file RooFormula.cxx.
References _actual, _compiled, _isOK, _useList, RooArgSet::add(), RooLinkedList::At(), RooLinkedList::GetSize(), i, kTRUE, and RooAbsCollection::removeAll().
Referenced by printMultiline().
Bool_t RooFormula::changeDependents | ( | const RooAbsCollection & | newDeps, | |
Bool_t | mustReplaceAll, | |||
Bool_t | nameChange | |||
) |
Definition at line 182 of file RooFormula.cxx.
References _origList, _useList, RooLinkedList::At(), coutE, RooAbsArg::findNewServer(), TObject::GetName(), RooLinkedList::GetSize(), i, kFALSE, kTRUE, RooFit::LinkStateMgmt, RooLinkedList::MakeIterator(), TIterator::Next(), and RooLinkedList::Replace().
Referenced by RooFormulaVar::redirectServersHook(), and RooGenericPdf::redirectServersHook().
RooAbsArg* RooFormula::getParameter | ( | const char * | name | ) | const [inline] |
Bool_t RooFormula::ok | ( | ) | [inline] |
Definition at line 49 of file RooFormula.h.
References _isOK.
Referenced by RooFormulaVar::ok(), and RooArgSet::readFromStream().
Definition at line 221 of file RooFormula.cxx.
References _compiled, _isOK, _nset, TFormula::Compile(), coutE, TFormula::Eval(), TFormula::EvalPar(), TNamed::GetName(), TNamed::GetTitle(), and kTRUE.
Referenced by RooGenericPdf::evaluate(), RooFormulaVar::evaluate(), printValue(), and RooArgSet::readFromStream().
void RooFormula::dump | ( | ) |
Definition at line 159 of file RooFormula.cxx.
References _labelList, _origList, _useList, RooLinkedList::At(), TObject::GetName(), RooLinkedList::GetSize(), and i.
Referenced by RooGenericPdf::dumpFormula(), and RooFormulaVar::dumpFormula().
Bool_t RooFormula::reCompile | ( | const char * | newFormula | ) |
Definition at line 104 of file RooFormula.cxx.
References _useList, RooLinkedList::Clear(), TFormula::Compile(), coutE, TFormula::fNval, TNamed::GetTitle(), RooFit::InputArguments, kFALSE, kTRUE, and TNamed::SetTitle().
void RooFormula::printValue | ( | ostream & | os | ) | const [virtual] |
void RooFormula::printName | ( | ostream & | os | ) | const [virtual] |
Reimplemented from RooPrintable.
Definition at line 410 of file RooFormula.cxx.
References TNamed::GetName().
void RooFormula::printTitle | ( | ostream & | os | ) | const [virtual] |
Reimplemented from RooPrintable.
Definition at line 419 of file RooFormula.cxx.
References TNamed::GetTitle().
void RooFormula::printClassName | ( | ostream & | os | ) | const [virtual] |
void RooFormula::printArgs | ( | ostream & | os | ) | const [virtual] |
void RooFormula::printMultiline | ( | ostream & | os, | |
Int_t | contents, | |||
Bool_t | verbose = kFALSE , |
|||
TString | indent = "" | |||
) | const [virtual] |
Reimplemented from RooPrintable.
Definition at line 389 of file RooFormula.cxx.
References actualDependents(), TString::Append(), and TNamed::GetTitle().
Referenced by RooFormulaVar::printMultiline(), and RooGenericPdf::printMultiline().
virtual void RooFormula::Print | ( | Option_t * | options = 0 |
) | const [inline, virtual] |
Reimplemented from TFormula.
Definition at line 64 of file RooFormula.h.
References RooPrintable::defaultPrintContents(), RooPrintable::defaultPrintStream(), RooPrintable::defaultPrintStyle(), and RooPrintable::printStream().
RooFormula& RooFormula::operator= | ( | const RooFormula & | other | ) | [protected] |
void RooFormula::initCopy | ( | const RooFormula & | other | ) | [protected] |
Reimplemented from TFormula.
Definition at line 277 of file RooFormula.cxx.
References TFormula::kDefinedVariable, and name.
Definition at line 299 of file RooFormula.cxx.
References _labelList, _origList, _useList, RooLinkedList::Add(), RooLinkedList::At(), TString::CompareTo(), coutE, TFormula::Eval(), RooLinkedList::FindObject(), TNamed::GetName(), RooLinkedList::GetSize(), i, TString::IsNull(), kFALSE, kTRUE, RooAbsCategory::lookupType(), name, and strlcpy().
Reimplemented from TFormula.
Definition at line 247 of file RooFormula.cxx.
References _labelList, _nset, _useList, RooLinkedList::At(), RooAbsCategory::getIndex(), RooLinkedList::GetSize(), RooAbsReal::getVal(), RooCatType::getVal(), TString::IsNull(), and RooAbsCategory::lookupType().
virtual TObject* RooFormula::Clone | ( | const char * | newName = 0 |
) | const [inline, virtual] |
RooArgSet& RooFormula::actualDependents | ( | ) | const |
Bool_t RooFormula::changeDependents | ( | const RooAbsCollection & | newDeps, | |
Bool_t | mustReplaceAll, | |||
Bool_t | nameChange | |||
) |
RooAbsArg* RooFormula::getParameter | ( | const char * | name | ) | const [inline] |
Bool_t RooFormula::ok | ( | ) | [inline] |
void RooFormula::dump | ( | ) |
Bool_t RooFormula::reCompile | ( | const char * | newFormula | ) |
virtual void RooFormula::printValue | ( | ostream & | os | ) | const [virtual] |
Reimplemented from RooPrintable.
virtual void RooFormula::printName | ( | ostream & | os | ) | const [virtual] |
Reimplemented from RooPrintable.
virtual void RooFormula::printTitle | ( | ostream & | os | ) | const [virtual] |
Reimplemented from RooPrintable.
virtual void RooFormula::printClassName | ( | ostream & | os | ) | const [virtual] |
Reimplemented from RooPrintable.
virtual void RooFormula::printArgs | ( | ostream & | os | ) | const [virtual] |
Reimplemented from RooPrintable.
void RooFormula::printMultiline | ( | ostream & | os, | |
Int_t | contents, | |||
Bool_t | verbose = kFALSE , |
|||
TString | indent = "" | |||
) | const [virtual] |
Reimplemented from RooPrintable.
virtual void RooFormula::Print | ( | Option_t * | options = 0 |
) | const [inline, virtual] |
Reimplemented from TFormula.
Definition at line 64 of file RooFormula.h.
References RooPrintable::defaultPrintContents(), RooPrintable::defaultPrintStream(), RooPrintable::defaultPrintStyle(), and RooPrintable::printStream().
RooFormula& RooFormula::operator= | ( | const RooFormula & | other | ) | [protected] |
void RooFormula::initCopy | ( | const RooFormula & | other | ) | [protected] |
Reimplemented from TFormula.
RooArgSet* RooFormula::_nset [protected] |
Bool_t RooFormula::_isOK [mutable, protected] |
Definition at line 80 of file RooFormula.h.
Referenced by actualDependents(), eval(), ok(), and RooFormula().
RooLinkedList RooFormula::_origList [protected] |
Definition at line 81 of file RooFormula.h.
Referenced by changeDependents(), DefinedVariable(), dump(), getParameter(), and RooFormula().
RooLinkedList RooFormula::_useList [protected] |
Original list of dependents.
Definition at line 82 of file RooFormula.h.
Referenced by actualDependents(), changeDependents(), DefinedValue(), DefinedVariable(), dump(), getParameter(), and reCompile().
RooArgSet RooFormula::_actual [mutable, protected] |
List of actual dependents.
Definition at line 83 of file RooFormula.h.
Referenced by actualDependents(), and printArgs().
RooLinkedList RooFormula::_labelList [protected] |
Set of actual dependents.
Definition at line 84 of file RooFormula.h.
Referenced by DefinedValue(), DefinedVariable(), dump(), and ~RooFormula().
Bool_t RooFormula::_compiled [mutable, protected] |
Definition at line 85 of file RooFormula.h.
Referenced by actualDependents(), eval(), and RooFormula().
RooArgSet* RooFormula::_nset [protected] |
Definition at line 79 of file RooFormula.h.