RooFormula Class Reference

#include <RooFormula.h>

Inheritance diagram for RooFormula:

TFormula RooPrintable TFormula RooPrintable TNamed TNamed TNamed TNamed TObject TObject TObject TObject TObject TObject TObject TObject List of all members.

Public Member Functions

 RooFormula ()
 RooFormula (const char *name, const char *formula, const RooArgList &varList)
 RooFormula (const RooFormula &other, const char *name=0)
virtual TObjectClone (const char *newName=0) const
virtual ~RooFormula ()
RooArgSetactualDependents () const
Bool_t changeDependents (const RooAbsCollection &newDeps, Bool_t mustReplaceAll, Bool_t nameChange)
RooAbsArggetParameter (const char *name) const
RooAbsArggetParameter (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 TObjectClone (const char *newName=0) const
virtual ~RooFormula ()
RooArgSetactualDependents () const
Bool_t changeDependents (const RooAbsCollection &newDeps, Bool_t mustReplaceAll, Bool_t nameChange)
RooAbsArggetParameter (const char *name) const
RooAbsArggetParameter (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

RooFormulaoperator= (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)
RooFormulaoperator= (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

Detailed Description

Definition at line 26 of file RooFormula.h.


Constructor & Destructor Documentation

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]

Definition at line 125 of file RooFormula.cxx.

References _labelList, and RooLinkedList::Delete().

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]


Member Function Documentation

virtual TObject* RooFormula::Clone ( const char *  newName = 0  )  const [inline, virtual]

Reimplemented from TNamed.

Definition at line 32 of file RooFormula.h.

References RooFormula().

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]

Definition at line 39 of file RooFormula.h.

References _useList, and RooLinkedList::FindObject().

RooAbsArg* RooFormula::getParameter ( Int_t  index  )  const [inline]

Definition at line 43 of file RooFormula.h.

References _origList, and RooLinkedList::At().

Bool_t RooFormula::ok (  )  [inline]

Definition at line 49 of file RooFormula.h.

References _isOK.

Referenced by RooFormulaVar::ok(), and RooArgSet::readFromStream().

Double_t RooFormula::eval ( const RooArgSet nset = 0  ) 

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]

Reimplemented from RooPrintable.

Definition at line 401 of file RooFormula.cxx.

References eval().

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]

Reimplemented from RooPrintable.

Definition at line 428 of file RooFormula.cxx.

void RooFormula::printArgs ( ostream &  os  )  const [virtual]

Reimplemented from RooPrintable.

Definition at line 437 of file RooFormula.cxx.

References _actual.

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]

Int_t RooFormula::DefinedVariable ( TString name,
int &  action 
) [protected, virtual]

Reimplemented from TFormula.

Definition at line 277 of file RooFormula.cxx.

References TFormula::kDefinedVariable, and name.

Int_t RooFormula::DefinedVariable ( TString name  )  [protected]

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().

Double_t RooFormula::DefinedValue ( Int_t  code  )  [protected, virtual]

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]

Reimplemented from TNamed.

Definition at line 32 of file RooFormula.h.

References RooFormula().

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]

Definition at line 39 of file RooFormula.h.

References _useList, and RooLinkedList::FindObject().

RooAbsArg* RooFormula::getParameter ( Int_t  index  )  const [inline]

Definition at line 43 of file RooFormula.h.

References _origList, and RooLinkedList::At().

Bool_t RooFormula::ok (  )  [inline]

Definition at line 49 of file RooFormula.h.

References _isOK.

Double_t RooFormula::eval ( const RooArgSet nset = 0  ) 

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]

Int_t RooFormula::DefinedVariable ( TString name,
int &  action 
) [protected, virtual]

Reimplemented from TFormula.

Int_t RooFormula::DefinedVariable ( TString name  )  [protected]

Double_t RooFormula::DefinedValue ( Int_t  code  )  [protected, virtual]

Reimplemented from TFormula.


Member Data Documentation

RooArgSet* RooFormula::_nset [protected]

Definition at line 79 of file RooFormula.h.

Referenced by DefinedValue(), and eval().

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.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:33:36 2011 for ROOT_528-00b_version by  doxygen 1.5.1