ROOT  6.06/08
Reference Guide
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
RooFormula Class Reference

Definition at line 27 of file RooFormula.h.

Public Member Functions

 RooFormula ()
 Default constructor coverity[UNINIT_CTOR]. More...
 
 RooFormula (const char *name, const char *formula, const RooArgList &varList)
 Constructor with expression string and list of RooAbsArg variables. More...
 
 RooFormula (const RooFormula &other, const char *name=0)
 Copy constructor. More...
 
virtual TObjectClone (const char *newName=0) const
 Make a clone of an object using the Streamer facility. More...
 
virtual ~RooFormula ()
 Destructor. More...
 
RooArgSetactualDependents () const
 Return list of RooAbsArg dependents that is actually used by formula expression. More...
 
Bool_t changeDependents (const RooAbsCollection &newDeps, Bool_t mustReplaceAll, Bool_t nameChange)
 Change used variables to those with the same name in given list If mustReplaceAll is true and error is generated if one of the elements of newDeps is not found as a server. More...
 
RooAbsArggetParameter (const char *name) const
 
RooAbsArggetParameter (Int_t index) const
 
Bool_t ok ()
 
Double_t eval (const RooArgSet *nset=0)
 Evaluate ROOT::v5::TFormula using given normalization set to be used as observables definition passed to RooAbsReal::getVal() More...
 
void dump ()
 DEBUG: Dump state information. More...
 
Bool_t reCompile (const char *newFormula)
 Recompile formula with new expression. More...
 
virtual void printValue (std::ostream &os) const
 Print value of formula. More...
 
virtual void printName (std::ostream &os) const
 Print name of formula. More...
 
virtual void printTitle (std::ostream &os) const
 Print title of formula. More...
 
virtual void printClassName (std::ostream &os) const
 Print class name of formula. More...
 
virtual void printArgs (std::ostream &os) const
 Print arguments of formula, i.e. dependents that are actually used. More...
 
void printMultiline (std::ostream &os, Int_t contents, Bool_t verbose=kFALSE, TString indent="") const
 Printing interface. More...
 
virtual void Print (Option_t *options=0) const
 Dump this formula with its attributes. More...
 
- Public Member Functions inherited from ROOT::v5::TFormula
 TFormula ()
 Formula default constructor. More...
 
 TFormula (const char *name, const char *formula)
 Normal Formula constructor. More...
 
 TFormula (const TFormula &formula)
 Default constructor. More...
 
TFormulaoperator= (const TFormula &rhs)
 Operator =. More...
 
virtual ~TFormula ()
 Formula default destructor. More...
 
void Optimize ()
 MI include. More...
 
virtual void Analyze (const char *schain, Int_t &err, Int_t offset=0)
 Analyze a sub-expression in one formula. More...
 
virtual Bool_t AnalyzeFunction (TString &chaine, Int_t &err, Int_t offset=0)
 Check if the chain as function call. More...
 
virtual Int_t Compile (const char *expression="")
 Compile expression already stored in fTitle. More...
 
virtual void Copy (TObject &formula) const
 Copy this formula. More...
 
virtual void Clear (Option_t *option="")
 Resets the objects. More...
 
virtual char * DefinedString (Int_t code)
 Return address of string corresponding to special code. More...
 
virtual Double_t Eval (Double_t x, Double_t y=0, Double_t z=0, Double_t t=0) const
 Evaluate this formula. More...
 
virtual Double_t EvalParOld (const Double_t *x, const Double_t *params=0)
 Evaluate this formula. More...
 
virtual Double_t EvalPar (const Double_t *x, const Double_t *params=0)
 
virtual const TObjectGetLinearPart (Int_t i)
 Return linear part. More...
 
virtual Int_t GetNdim () const
 
virtual Int_t GetNpar () const
 
virtual Int_t GetNumber () const
 
virtual TString GetExpFormula (Option_t *option="") const
 Reconstruct the formula expression from the internal TFormula member variables. More...
 
Double_t GetParameter (Int_t ipar) const
 Return value of parameter number ipar. More...
 
Double_t GetParameter (const char *name) const
 Return value of parameter named parName. More...
 
virtual Double_tGetParameters () const
 
virtual void GetParameters (Double_t *params)
 
virtual const char * GetParName (Int_t ipar) const
 Return name of one parameter. More...
 
virtual Int_t GetParNumber (const char *name) const
 Return parameter number by name. More...
 
virtual Bool_t IsLinear () const
 
virtual Bool_t IsNormalized () const
 
virtual void ProcessLinear (TString &replaceformula)
 If the formula is for linear fitting, change the title to normal and fill the LinearParts array. More...
 
virtual void SetNumber (Int_t number)
 
virtual void SetParameter (const char *name, Double_t parvalue)
 Initialize parameter number ipar. More...
 
virtual void SetParameter (Int_t ipar, Double_t parvalue)
 Initialize parameter number ipar. More...
 
virtual void SetParameters (const Double_t *params)
 Initialize array of all parameters. More...
 
virtual void SetParameters (Double_t p0, Double_t p1, Double_t p2=0, Double_t p3=0, Double_t p4=0, Double_t p5=0, Double_t p6=0, Double_t p7=0, Double_t p8=0, Double_t p9=0, Double_t p10=0)
 Initialize up to 11 parameters All arguments except THE FIRST TWO are optional In case of a function with only one parameter, call this function with p1=0. More...
 
virtual void SetParName (Int_t ipar, const char *name)
 Set name of parameter number ipar. More...
 
virtual void SetParNames (const char *name0="p0", const char *name1="p1", const char *name2="p2", const char *name3="p3", const char *name4="p4", const char *name5="p5", const char *name6="p6", const char *name7="p7", const char *name8="p8", const char *name9="p9", const char *name10="p10")
 Set up to 11 parameter names. More...
 
virtual void Update ()
 
void Streamer (TBuffer &b, const TClass *onfile_class)
 Stream a class object. More...
 
void Streamer (TBuffer &b, Int_t version, UInt_t start, UInt_t count, const TClass *onfile_class=0)
 specialized streamer function being able to read old TF1 versions as TF1Old in memory More...
 
- Public Member Functions inherited from TNamed
 TNamed ()
 
 TNamed (const char *name, const char *title)
 
 TNamed (const TString &name, const TString &title)
 
 TNamed (const TNamed &named)
 TNamed copy ctor. More...
 
TNamedoperator= (const TNamed &rhs)
 TNamed assignment operator. More...
 
virtual ~TNamed ()
 
virtual Int_t Compare (const TObject *obj) const
 Compare two TNamed objects. More...
 
virtual void FillBuffer (char *&buffer)
 Encode TNamed into output buffer. More...
 
virtual const char * GetName () const
 Returns name of object. More...
 
virtual const char * GetTitle () const
 Returns title of object. More...
 
virtual ULong_t Hash () const
 Return hash value for this object. More...
 
virtual Bool_t IsSortable () const
 
virtual void SetName (const char *name)
 Change (i.e. More...
 
virtual void SetNameTitle (const char *name, const char *title)
 Change (i.e. set) all the TNamed parameters (name and title). More...
 
virtual void SetTitle (const char *title="")
 Change (i.e. set) the title of the TNamed. More...
 
virtual void ls (Option_t *option="") const
 List TNamed name and title. More...
 
virtual Int_t Sizeof () const
 Return size of the TNamed part of the TObject. More...
 
- Public Member Functions inherited from TObject
 TObject ()
 TObject constructor. More...
 
 TObject (const TObject &object)
 TObject copy ctor. More...
 
TObjectoperator= (const TObject &rhs)
 TObject assignment operator. More...
 
virtual ~TObject ()
 TObject destructor. More...
 
virtual void AppendPad (Option_t *option="")
 Append graphics object to current pad. More...
 
virtual void Browse (TBrowser *b)
 Browse object. May be overridden for another default action. More...
 
virtual const char * ClassName () const
 Returns name of class to which the object belongs. More...
 
virtual void Delete (Option_t *option="")
 Delete this object. More...
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 Computes distance from point (px,py) to the object. More...
 
virtual void Draw (Option_t *option="")
 Default Draw method for all objects. More...
 
virtual void DrawClass () const
 Draw class inheritance tree of the class to which this object belongs. More...
 
virtual TObjectDrawClone (Option_t *option="") const
 Draw a clone of this object in the current pad. More...
 
virtual void Dump () const
 Dump contents of object on stdout. More...
 
virtual void Execute (const char *method, const char *params, Int_t *error=0)
 Execute method on this object with the given parameter string, e.g. More...
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=0)
 Execute method on this object with parameters stored in the TObjArray. More...
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 Execute action corresponding to an event at (px,py). More...
 
virtual TObjectFindObject (const char *name) const
 Must be redefined in derived classes. More...
 
virtual TObjectFindObject (const TObject *obj) const
 Must be redefined in derived classes. More...
 
virtual Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object. More...
 
virtual UInt_t GetUniqueID () const
 Return the unique object id. More...
 
virtual const char * GetIconName () const
 Returns mime type name of object. More...
 
virtual Option_tGetOption () const
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py). More...
 
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out. More...
 
virtual Bool_t InheritsFrom (const char *classname) const
 Returns kTRUE if object inherits from class "classname". More...
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 Returns kTRUE if object inherits from TClass cl. More...
 
virtual void Inspect () const
 Dump contents of this object in a graphics canvas. More...
 
virtual Bool_t IsFolder () const
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). More...
 
virtual Bool_t IsEqual (const TObject *obj) const
 Default equal comparison (objects are equal if they have the same address in memory). More...
 
Bool_t IsOnHeap () const
 
Bool_t IsZombie () const
 
virtual Bool_t Notify ()
 This method must be overridden to handle object notification. More...
 
virtual void Paint (Option_t *option="")
 This method must be overridden if a class wants to paint itself. More...
 
virtual void Pop ()
 Pop on object drawn in a pad to the top of the display list. More...
 
virtual Int_t Read (const char *name)
 Read contents of object with specified name from the current directory. More...
 
virtual void RecursiveRemove (TObject *obj)
 Recursively remove this object from a list. More...
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 Save this object in the file specified by filename. More...
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 Save a primitive as a C++ statement(s) on output stream "out". More...
 
virtual void SetDrawOption (Option_t *option="")
 Set drawing option for object. More...
 
virtual void SetUniqueID (UInt_t uid)
 Set the unique object id. More...
 
virtual void UseCurrentStyle ()
 Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked. More...
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0)
 Write this object to the current directory. More...
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const
 Write this object to the current directory. More...
 
voidoperator new (size_t sz)
 
voidoperator new[] (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz, void *vp)
 
void operator delete (void *ptr)
 Operator delete. More...
 
void operator delete[] (void *ptr)
 Operator delete []. More...
 
void SetBit (UInt_t f, Bool_t set)
 Set or unset the user status bits as specified in f. More...
 
void SetBit (UInt_t f)
 
void ResetBit (UInt_t f)
 
Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
void InvertBit (UInt_t f)
 
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message. More...
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message. More...
 
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message. More...
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message. More...
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message. More...
 
void AbstractMethod (const char *method) const
 Use this method to implement an "abstract" method that you don't want to leave purely abstract. More...
 
void MayNotUse (const char *method) const
 Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary). More...
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete. More...
 
- Public Member Functions inherited from RooPrintable
 RooPrintable ()
 
virtual ~RooPrintable ()
 
virtual void printStream (std::ostream &os, Int_t contents, StyleOption style, TString indent="") const
 Print description of object on ostream, printing contents set by contents integer, which is interpreted as an OR of 'enum ContentsOptions' values and in the style given by 'enum StyleOption'. More...
 
virtual void printAddress (std::ostream &os) const
 Print class name of object. More...
 
virtual void printExtras (std::ostream &os) const
 Interface to print extras of object. More...
 
virtual void printTree (std::ostream &os, TString indent="") const
 Interface for tree structure printing of object. More...
 
virtual Int_t defaultPrintContents (Option_t *opt) const
 Default choice of contents to be printed (name and value) More...
 
virtual StyleOption defaultPrintStyle (Option_t *opt) const
 

Protected Member Functions

RooFormulaoperator= (const RooFormula &other)
 
void initCopy (const RooFormula &other)
 
Int_t DefinedVariable (TString &name, int &action)
 Interface to ROOT::v5::TFormula. More...
 
Int_t DefinedVariable (TString &name)
 Interface to ROOT::v5::TFormula. More...
 
Double_t DefinedValue (Int_t code)
 Interface to ROOT::v5::TFormula, return value defined by object with id 'code' Object ids are mapped from object names by method DefinedVariable() More...
 
- Protected Member Functions inherited from ROOT::v5::TFormula
Int_t PreCompile ()
 pointer to optimal function More...
 
virtual Bool_t CheckOperands (Int_t operation, Int_t &err)
 Check whether the operand at 'oper-1' is compatible with the operation at 'oper'. More...
 
virtual Bool_t CheckOperands (Int_t leftoperand, Int_t rightoperartion, Int_t &err)
 Check whether the operands at 'leftoper' and 'oper-1' are compatible with the operation at 'oper'. More...
 
virtual Bool_t StringToNumber (Int_t code)
 Try to 'demote' a string into an array bytes. More...
 
void MakePrimitive (const char *expr, Int_t pos)
 MakePrimitive find TFormulaPrimitive replacement for some operands. More...
 
Int_tGetOper () const
 
Short_t GetAction (Int_t code) const
 
Int_t GetActionParam (Int_t code) const
 
void SetAction (Int_t code, Int_t value, Int_t param=0)
 
Int_tGetOperOptimized () const
 
Short_t GetActionOptimized (Int_t code) const
 
Int_t GetActionParamOptimized (Int_t code) const
 
void SetActionOptimized (Int_t code, Int_t value, Int_t param=0)
 
void ClearFormula (Option_t *option="")
 Resets the objects. More...
 
virtual Bool_t IsString (Int_t oper) const
 Return true if the expression at the index 'oper' has to be treated as a string. More...
 
virtual void Convert (UInt_t fromVersion)
 
Double_t EvalParFast (const Double_t *x, const Double_t *params)
 Evaluate this formula. More...
 
Double_t EvalPrimitive (const Double_t *x, const Double_t *params)
 Evaluate primitive formula. More...
 
Double_t EvalPrimitive0 (const Double_t *x, const Double_t *params)
 Evaluate primitive formula. More...
 
Double_t EvalPrimitive1 (const Double_t *x, const Double_t *params)
 Evaluate primitive formula. More...
 
Double_t EvalPrimitive2 (const Double_t *x, const Double_t *params)
 Evaluate primitive formula. More...
 
Double_t EvalPrimitive3 (const Double_t *x, const Double_t *params)
 Evaluate primitive formula. More...
 
Double_t EvalPrimitive4 (const Double_t *x, const Double_t *params)
 Evaluate primitive formula. More...
 
- Protected Member Functions inherited from TObject
void MakeZombie ()
 
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 Interface to ErrorHandler (protected). More...
 

Protected Attributes

RooArgSet_nset
 
Bool_t _isOK
 
RooLinkedList _origList
 
std::vector< Bool_t_useIsCat
 Original list of dependents. More...
 
RooLinkedList _useList
 Is given slot in _useList a category? More...
 
RooArgSet _actual
 List of actual dependents. More...
 
RooLinkedList _labelList
 Set of actual dependents. More...
 
Bool_t _compiled
 
- Protected Attributes inherited from ROOT::v5::TFormula
Int_t fNdim
 
Int_t fNpar
 
Int_t fNoper
 
Int_t fNconst
 
Int_t fNumber
 
Int_t fNval
 
Int_t fNstring
 
TStringfExpr
 
Double_tfConst
 
Double_tfParams
 
TStringfNames
 
TObjArray fFunctions
 
TObjArray fLinearParts
 
TBits fAlreadyFound
 
Int_t fNOperOptimized
 cache for information More...
 
TStringfExprOptimized
 Number of operators after optimization. More...
 
Int_tfOperOptimized
 [fNOperOptimized] List of expressions More...
 
TOperOffsetfOperOffset
 [fNOperOptimized] List of operators. (See documentation for changes made at version 7) More...
 
TFormulaPrimitive ** fPredefined
 [fNOperOptimized] Offsets of operrands More...
 
TFuncG fOptimal
 [fNPar] predefined function More...
 
- Protected Attributes inherited from TNamed
TString fName
 
TString fTitle
 

Additional Inherited Members

- Public Types inherited from ROOT::v5::TFormula
enum  { kNotGlobal = BIT(10), kNormalized = BIT(14), kLinear = BIT(16) }
 
- Public Types inherited from TObject
enum  EStatusBits {
  kCanDelete = BIT(0), kMustCleanup = BIT(3), kObjInCanvas = BIT(3), kIsReferenced = BIT(4),
  kHasUUID = BIT(5), kCannotPick = BIT(6), kNoContextMenu = BIT(8), kInvalidObject = BIT(13)
}
 
enum  { kIsOnHeap = 0x01000000, kNotDeleted = 0x02000000, kZombie = 0x04000000, kBitMask = 0x00ffffff }
 
enum  { kSingleKey = BIT(0), kOverwrite = BIT(1), kWriteDelete = BIT(2) }
 
- Public Types inherited from RooPrintable
enum  ContentsOption {
  kName =1, kClassName =2, kValue =4, kArgs =8,
  kExtras =16, kAddress =32, kTitle =64, kCollectionHeader =128
}
 
enum  StyleOption {
  kInline =1, kSingleLine =2, kStandard =3, kVerbose =4,
  kTreeStructure =5
}
 
- Static Public Member Functions inherited from ROOT::v5::TFormula
static void SetMaxima (Int_t maxop=1000, Int_t maxpar=1000, Int_t maxconst=1000)
 static function to set the maximum value of 3 parameters -maxop : maximum number of operations -maxpar : maximum number of parameters -maxconst : maximum number of constants None of these parameters cannot be less than 10 (default is 1000) call this function to increase one or all maxima when processing very complex formula, eg TFormula::SetMaxima(100000,1000,1000000); If you process many functions with a small number of operations/parameters you may gain some memory and performance by decreasing these values. More...
 
static void GetMaxima (Int_t &maxop, Int_t &maxpar, Int_t &maxconst)
 static function to get the maximum value of 3 parameters -maxop : maximum number of operations -maxpar : maximum number of parameters -maxconst : maximum number of constants More...
 
- Static Public Member Functions inherited from TObject
static Long_t GetDtorOnly ()
 Return destructor only flag. More...
 
static void SetDtorOnly (void *obj)
 Set destructor only flag. More...
 
static Bool_t GetObjectStat ()
 Get status of object stat flag. More...
 
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable. More...
 
- Static Public Member Functions inherited from RooPrintable
static std::ostream & defaultPrintStream (std::ostream *os=0)
 Return a reference to the current default stream to use in Print(). More...
 
static void nameFieldLength (Int_t newLen)
 Set length of field reserved from printing name of RooAbsArgs in multi-line collection printing to given amount. More...
 
- Protected Types inherited from ROOT::v5::TFormula
enum  {
  kEnd = 0, kAdd = 1, kSubstract = 2, kMultiply = 3,
  kDivide = 4, kModulo = 5, kcos = 10, ksin = 11,
  ktan = 12, kacos = 13, kasin = 14, katan = 15,
  katan2 = 16, kfmod = 17, kpow = 20, ksq = 21,
  ksqrt = 22, kstrstr = 23, kmin = 24, kmax = 25,
  klog = 30, kexp = 31, klog10 = 32, kpi = 40,
  kabs = 41, ksign = 42, kint = 43, kSignInv = 44,
  krndm = 50, kAnd = 60, kOr = 61, kEqual = 62,
  kNotEqual = 63, kLess = 64, kGreater = 65, kLessThan = 66,
  kGreaterThan = 67, kNot = 68, kcosh = 70, ksinh = 71,
  ktanh = 72, kacosh = 73, kasinh = 74, katanh = 75,
  kStringEqual = 76, kStringNotEqual = 77, kBitAnd = 78, kBitOr = 79,
  kLeftShift = 80, kRightShift = 81, kJumpIf = 82, kJump = 83,
  kexpo = 100, kxexpo = 100, kyexpo = 101, kzexpo = 102,
  kxyexpo = 105, kgaus = 110, kxgaus = 110, kygaus = 111,
  kzgaus = 112, kxygaus = 115, klandau = 120, kxlandau = 120,
  kylandau = 121, kzlandau = 122, kxylandau = 125, kpol = 130,
  kxpol = 130, kypol = 131, kzpol = 132, kParameter = 140,
  kConstant = 141, kBoolOptimize = 142, kStringConst = 143, kVariable = 144,
  kFunctionCall = 145, kData = 146, kUnary = 147, kBinary = 148,
  kThree = 149, kDefinedVariable = 150, kDefinedString = 151, kPlusD = 152,
  kPlusDD = 153, kMultD = 154, kMultDD = 155, kBoolOptimizeOr = 156,
  kBoolOptimizeAnd = 157, kBoolSet = 158, kFDM = 159, kFD0 = 160,
  kFD1 = 161, kFD2 = 162, kFD3 = 163
}
 
typedef Double_t(TObject::* TFuncG) (const Double_t *, const Double_t *) const
 
- Static Protected Attributes inherited from RooPrintable
static Int_t _nameLength
 

#include <RooFormula.h>

+ Inheritance diagram for RooFormula:
+ Collaboration diagram for RooFormula:

Constructor & Destructor Documentation

§ RooFormula() [1/3]

RooFormula::RooFormula ( )

Default constructor coverity[UNINIT_CTOR].

Definition at line 54 of file RooFormula.cxx.

Referenced by Clone().

§ RooFormula() [2/3]

RooFormula::RooFormula ( const char *  name,
const char *  formula,
const RooArgList varList 
)

Constructor with expression string and list of RooAbsArg variables.

Definition at line 62 of file RooFormula.cxx.

§ RooFormula() [3/3]

RooFormula::RooFormula ( const RooFormula other,
const char *  name = 0 
)

Copy constructor.

Definition at line 88 of file RooFormula.cxx.

§ ~RooFormula()

RooFormula::~RooFormula ( )
virtual

Destructor.

Definition at line 131 of file RooFormula.cxx.

Referenced by Clone().

Member Function Documentation

§ actualDependents()

RooArgSet & RooFormula::actualDependents ( ) const

Return list of RooAbsArg dependents that is actually used by formula expression.

Definition at line 141 of file RooFormula.cxx.

Referenced by Clone(), and printMultiline().

§ changeDependents()

Bool_t RooFormula::changeDependents ( const RooAbsCollection newDeps,
Bool_t  mustReplaceAll,
Bool_t  nameChange 
)

Change used variables to those with the same name in given list If mustReplaceAll is true and error is generated if one of the elements of newDeps is not found as a server.

Definition at line 190 of file RooFormula.cxx.

Referenced by Clone(), RooGenericPdf::redirectServersHook(), and RooFormulaVar::redirectServersHook().

§ Clone()

virtual TObject* RooFormula::Clone ( const char *  newname = 0) const
inlinevirtual

Make a clone of an object using the Streamer facility.

If newname is specified, this will be the name of the new object.

Reimplemented from TNamed.

Definition at line 33 of file RooFormula.h.

§ DefinedValue()

Double_t RooFormula::DefinedValue ( Int_t  code)
protectedvirtual

Interface to ROOT::v5::TFormula, return value defined by object with id 'code' Object ids are mapped from object names by method DefinedVariable()

Reimplemented from ROOT::v5::TFormula.

Definition at line 259 of file RooFormula.cxx.

Referenced by Print().

§ DefinedVariable() [1/2]

Int_t RooFormula::DefinedVariable ( TString name,
int &  action 
)
protectedvirtual

Interface to ROOT::v5::TFormula.

If name passed by ROOT::v5::TFormula is recognized as one of our RooAbsArg servers, return a unique id integer that represent this variable.

Reimplemented from ROOT::v5::TFormula.

Definition at line 294 of file RooFormula.cxx.

Referenced by Print().

§ DefinedVariable() [2/2]

Int_t RooFormula::DefinedVariable ( TString name)
protected

Interface to ROOT::v5::TFormula.

If name passed by ROOT::v5::TFormula is recognized as one of our RooAbsArg servers, return a unique id integer that represent this variable.

Definition at line 316 of file RooFormula.cxx.

§ dump()

void RooFormula::dump ( )

DEBUG: Dump state information.

Definition at line 165 of file RooFormula.cxx.

Referenced by RooGenericPdf::dumpFormula(), RooFormulaVar::dumpFormula(), and ok().

§ eval()

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

§ getParameter() [1/2]

RooAbsArg* RooFormula::getParameter ( const char *  name) const
inline

Definition at line 40 of file RooFormula.h.

§ getParameter() [2/2]

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

Definition at line 44 of file RooFormula.h.

§ initCopy()

void RooFormula::initCopy ( const RooFormula other)
protected

Referenced by Print().

§ ok()

Bool_t RooFormula::ok ( )
inline

§ operator=()

RooFormula& RooFormula::operator= ( const RooFormula other)
protected

Referenced by Print().

§ Print()

virtual void RooFormula::Print ( Option_t option = 0) const
inlinevirtual

Dump this formula with its attributes.

Reimplemented from ROOT::v5::TFormula.

Definition at line 65 of file RooFormula.h.

§ printArgs()

void RooFormula::printArgs ( std::ostream &  os) const
virtual

Print arguments of formula, i.e. dependents that are actually used.

Reimplemented from RooPrintable.

Definition at line 461 of file RooFormula.cxx.

Referenced by ok().

§ printClassName()

void RooFormula::printClassName ( std::ostream &  os) const
virtual

Print class name of formula.

Reimplemented from RooPrintable.

Definition at line 452 of file RooFormula.cxx.

Referenced by ok().

§ printMultiline()

void RooFormula::printMultiline ( std::ostream &  os,
Int_t  contents,
Bool_t  verbose = kFALSE,
TString  indent = "" 
) const
virtual

Printing interface.

Reimplemented from RooPrintable.

Definition at line 413 of file RooFormula.cxx.

Referenced by ok(), RooGenericPdf::printMultiline(), and RooFormulaVar::printMultiline().

§ printName()

void RooFormula::printName ( std::ostream &  os) const
virtual

Print name of formula.

Reimplemented from RooPrintable.

Definition at line 434 of file RooFormula.cxx.

Referenced by ok().

§ printTitle()

void RooFormula::printTitle ( std::ostream &  os) const
virtual

Print title of formula.

Reimplemented from RooPrintable.

Definition at line 443 of file RooFormula.cxx.

Referenced by ok().

§ printValue()

void RooFormula::printValue ( std::ostream &  os) const
virtual

Print value of formula.

Reimplemented from RooPrintable.

Definition at line 425 of file RooFormula.cxx.

Referenced by ok().

§ reCompile()

Bool_t RooFormula::reCompile ( const char *  newFormula)

Recompile formula with new expression.

Definition at line 110 of file RooFormula.cxx.

Referenced by ok().

Member Data Documentation

§ _actual

RooArgSet RooFormula::_actual
mutableprotected

List of actual dependents.

Definition at line 85 of file RooFormula.h.

Referenced by actualDependents(), and printArgs().

§ _compiled

Bool_t RooFormula::_compiled
mutableprotected

Definition at line 87 of file RooFormula.h.

Referenced by actualDependents(), eval(), and RooFormula().

§ _isOK

Bool_t RooFormula::_isOK
mutableprotected

Definition at line 81 of file RooFormula.h.

Referenced by actualDependents(), eval(), ok(), and RooFormula().

§ _labelList

RooLinkedList RooFormula::_labelList
protected

Set of actual dependents.

Definition at line 86 of file RooFormula.h.

Referenced by DefinedValue(), DefinedVariable(), dump(), and ~RooFormula().

§ _nset

RooArgSet* RooFormula::_nset
protected

Definition at line 80 of file RooFormula.h.

Referenced by DefinedValue(), and eval().

§ _origList

RooLinkedList RooFormula::_origList
protected

Definition at line 82 of file RooFormula.h.

Referenced by changeDependents(), DefinedVariable(), dump(), getParameter(), and RooFormula().

§ _useIsCat

std::vector<Bool_t> RooFormula::_useIsCat
protected

Original list of dependents.

Definition at line 83 of file RooFormula.h.

Referenced by DefinedValue(), and DefinedVariable().

§ _useList

RooLinkedList RooFormula::_useList
protected

Is given slot in _useList a category?

Definition at line 84 of file RooFormula.h.

Referenced by actualDependents(), changeDependents(), DefinedValue(), DefinedVariable(), dump(), getParameter(), and reCompile().


The documentation for this class was generated from the following files: