ROOT  6.06/09
Reference Guide
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Attributes | List of all members
RooArgSet Class Reference

Definition at line 26 of file RooArgSet.h.

Public Member Functions

voidoperator new (size_t bytes)
 
voidoperator new (size_t bytes, void *ptr) noexcept
 
void operator delete (void *ptr)
 
 RooArgSet ()
 Default constructor. More...
 
 RooArgSet (const RooArgList &list)
 Constructor from a RooArgList. More...
 
 RooArgSet (const RooArgList &list, const RooAbsArg *var1)
 Constructor from a RooArgList. More...
 
 RooArgSet (const TCollection &tcoll, const char *name="")
 Constructor from a root TCollection. More...
 
 RooArgSet (const char *name)
 Empty set constructor. More...
 
 RooArgSet (const RooArgSet &set1, const RooArgSet &set2, const char *name="")
 Construct a set from two existing sets. More...
 
 RooArgSet (const RooAbsArg &var1, const char *name="")
 Constructor for set containing 1 initial object. More...
 
 RooArgSet (const RooAbsArg &var1, const RooAbsArg &var2, const char *name="")
 Constructor for set containing 2 initial objects. More...
 
 RooArgSet (const RooAbsArg &var1, const RooAbsArg &var2, const RooAbsArg &var3, const char *name="")
 Constructor for set containing 3 initial objects. More...
 
 RooArgSet (const RooAbsArg &var1, const RooAbsArg &var2, const RooAbsArg &var3, const RooAbsArg &var4, const char *name="")
 Constructor for set containing 4 initial objects. More...
 
 RooArgSet (const RooAbsArg &var1, const RooAbsArg &var2, const RooAbsArg &var3, const RooAbsArg &var4, const RooAbsArg &var5, const char *name="")
 Constructor for set containing 5 initial objects. More...
 
 RooArgSet (const RooAbsArg &var1, const RooAbsArg &var2, const RooAbsArg &var3, const RooAbsArg &var4, const RooAbsArg &var5, const RooAbsArg &var6, const char *name="")
 Constructor for set containing 6 initial objects. More...
 
 RooArgSet (const RooAbsArg &var1, const RooAbsArg &var2, const RooAbsArg &var3, const RooAbsArg &var4, const RooAbsArg &var5, const RooAbsArg &var6, const RooAbsArg &var7, const char *name="")
 Constructor for set containing 7 initial objects. More...
 
 RooArgSet (const RooAbsArg &var1, const RooAbsArg &var2, const RooAbsArg &var3, const RooAbsArg &var4, const RooAbsArg &var5, const RooAbsArg &var6, const RooAbsArg &var7, const RooAbsArg &var8, const char *name="")
 Constructor for set containing 8 initial objects. More...
 
 RooArgSet (const RooAbsArg &var1, const RooAbsArg &var2, const RooAbsArg &var3, const RooAbsArg &var4, const RooAbsArg &var5, const RooAbsArg &var6, const RooAbsArg &var7, const RooAbsArg &var8, const RooAbsArg &var9, const char *name="")
 Constructor for set containing 9 initial objects. More...
 
virtual ~RooArgSet ()
 Destructor. More...
 
 RooArgSet (const RooArgSet &other, const char *name="")
 Copy constructor. More...
 
virtual TObjectclone (const char *newname) const
 
virtual TObjectcreate (const char *newname) const
 
RooArgSetoperator= (const RooArgSet &other)
 
virtual Bool_t add (const RooAbsArg &var, Bool_t silent=kFALSE)
 Add element to non-owning set. More...
 
virtual Bool_t addOwned (RooAbsArg &var, Bool_t silent=kFALSE)
 Add element to an owning set. More...
 
virtual RooAbsArgaddClone (const RooAbsArg &var, Bool_t silent=kFALSE)
 Add clone of specified element to an owning set. More...
 
RooAbsArgoperator[] (const char *name) const
 Array operator. More...
 
virtual Bool_t readFromStream (std::istream &is, Bool_t compact, Bool_t verbose=kFALSE)
 
Bool_t readFromStream (std::istream &is, Bool_t compact, const char *flagReadAtt, const char *section, Bool_t verbose=kFALSE)
 Read the contents of the argset in ASCII form from given stream. More...
 
virtual void writeToStream (std::ostream &os, Bool_t compact, const char *section=0) const
 Write the contents of the argset in ASCII form to given stream. More...
 
void writeToFile (const char *fileName) const
 Write contents of the argset to specified file. More...
 
Bool_t readFromFile (const char *fileName, const char *flagReadAtt=0, const char *section=0, Bool_t verbose=kFALSE)
 Read contents of the argset from specified file. More...
 
Double_t getRealValue (const char *name, Double_t defVal=0, Bool_t verbose=kFALSE) const
 Get value of a RooAbsReal stored in set with given name. More...
 
const char * getCatLabel (const char *name, const char *defVal="", Bool_t verbose=kFALSE) const
 Get state name of a RooAbsCategory stored in set with given name. More...
 
Int_t getCatIndex (const char *name, Int_t defVal=0, Bool_t verbose=kFALSE) const
 Get index value of a RooAbsCategory stored in set with given name. More...
 
const char * getStringValue (const char *name, const char *defVal="", Bool_t verbose=kFALSE) const
 Get string value of a RooAbsString stored in set with given name. More...
 
Bool_t setRealValue (const char *name, Double_t newVal=0, Bool_t verbose=kFALSE)
 Set value of a RooAbsRealLValye stored in set with given name to newVal No error messages are printed unless the verbose flag is set. More...
 
Bool_t setCatLabel (const char *name, const char *newVal="", Bool_t verbose=kFALSE)
 Set state name of a RooAbsCategoryLValue stored in set with given name to newVal. More...
 
Bool_t setCatIndex (const char *name, Int_t newVal=0, Bool_t verbose=kFALSE)
 Set index value of a RooAbsCategoryLValue stored in set with given name to newVal. More...
 
Bool_t setStringValue (const char *name, const char *newVal="", Bool_t verbose=kFALSE)
 Set string value of a RooStringVar stored in set with given name to newVal. More...
 
Bool_t isInRange (const char *rangeSpec)
 
- Public Member Functions inherited from RooAbsCollection
 RooAbsCollection ()
 Default constructor. More...
 
 RooAbsCollection (const char *name)
 Empty collection constructor. More...
 
virtual TObjectClone (const char *newname=0) const
 Make a clone of an object using the Streamer facility. More...
 
virtual ~RooAbsCollection ()
 Destructor. More...
 
 RooAbsCollection (const RooAbsCollection &other, const char *name="")
 Copy constructor. More...
 
RooAbsCollectionoperator= (const RooAbsCollection &other)
 The assignment operator sets the value of any argument in our set that also appears in the other set. More...
 
RooAbsCollectionassignValueOnly (const RooAbsCollection &other, Bool_t oneSafe=kFALSE)
 The assignment operator sets the value of any argument in our set that also appears in the other set. More...
 
void assignFast (const RooAbsCollection &other, Bool_t setValDirty=kTRUE)
 Functional equivalent of operator=() but assumes this and other collection have same layout. More...
 
RooAbsCollectionsnapshot (Bool_t deepCopy=kTRUE) const
 Take a snap shot of current collection contents: An owning collection is returned containing clones of. More...
 
Bool_t snapshot (RooAbsCollection &output, Bool_t deepCopy=kTRUE) const
 Take a snap shot of current collection contents: An owning collection is returned containing clones of. More...
 
void setHashTableSize (Int_t i)
 
Int_t getHashTableSize () const
 
virtual Bool_t replace (const RooAbsArg &var1, const RooAbsArg &var2)
 Replace var1 with var2 and return kTRUE for success. More...
 
virtual Bool_t remove (const RooAbsArg &var, Bool_t silent=kFALSE, Bool_t matchByNameOnly=kFALSE)
 Remove the specified argument from our list. More...
 
virtual void removeAll ()
 Remove all arguments from our set, deleting them if we own them. More...
 
virtual Bool_t add (const RooAbsCollection &list, Bool_t silent=kFALSE)
 Add a collection of arguments to this collection by calling add() for each element in the source collection. More...
 
virtual Bool_t addOwned (const RooAbsCollection &list, Bool_t silent=kFALSE)
 Add a collection of arguments to this collection by calling addOwned() for each element in the source collection. More...
 
virtual void addClone (const RooAbsCollection &list, Bool_t silent=kFALSE)
 Add a collection of arguments to this collection by calling addOwned() for each element in the source collection. More...
 
Bool_t replace (const RooAbsCollection &other)
 Replace any args in our set with args of the same name from the other set and return kTRUE for success. More...
 
Bool_t remove (const RooAbsCollection &list, Bool_t silent=kFALSE, Bool_t matchByNameOnly=kFALSE)
 Remove each argument in the input list from our list using remove(const RooAbsArg&). More...
 
void setAttribAll (const Text_t *name, Bool_t value=kTRUE)
 Set given attribute in each element of the collection by calling each elements setAttribute() function. More...
 
RooAbsArgfind (const char *name) const
 Find object with given name in list. More...
 
RooAbsArgfind (const RooAbsArg &) const
 Find object with given name in list. More...
 
Bool_t contains (const RooAbsArg &var) const
 
Bool_t containsInstance (const RooAbsArg &var) const
 
RooAbsCollectionselectByAttrib (const char *name, Bool_t value) const
 Create a subset of the current collection, consisting only of those elements with the specified attribute set. More...
 
RooAbsCollectionselectCommon (const RooAbsCollection &refColl) const
 Create a subset of the current collection, consisting only of those elements that are contained as well in the given reference collection. More...
 
RooAbsCollectionselectByName (const char *nameList, Bool_t verbose=kFALSE) const
 Create a subset of the current collection, consisting only of those elements with names matching the wildcard expressions in nameList, supplied as a comma separated list. More...
 
Bool_t equals (const RooAbsCollection &otherColl) const
 Check if this and other collection have identically named contents. More...
 
Bool_t overlaps (const RooAbsCollection &otherColl) const
 Check if this and other collection have common entries. More...
 
TIteratorcreateIterator (Bool_t dir=kIterForward) const
 
RooLinkedListIter iterator (Bool_t dir=kIterForward) const
 
RooFIter fwdIterator () const
 
Int_t getSize () const
 
RooAbsArgfirst () const
 
virtual void Print (Option_t *options=0) const
 This method must be overridden when a class wants to print itself. More...
 
std::string contentsString () const
 Return comma separated list of contained object names as STL string. More...
 
virtual void printName (std::ostream &os) const
 Return collection name. More...
 
virtual void printTitle (std::ostream &os) const
 Return collection title. More...
 
virtual void printClassName (std::ostream &os) const
 Return collection class name. More...
 
virtual void printValue (std::ostream &os) const
 Print value of collection, i.e. More...
 
virtual void printMultiline (std::ostream &os, Int_t contents, Bool_t verbose=kFALSE, TString indent="") const
 Implement multiline printin of collection, one line for each ontained object showing the requested content. More...
 
virtual Int_t defaultPrintContents (Option_t *opt) const
 Define default RooPrinable print options for given Print() flag string For inline printing only show value of objects, for default print show name,class name value and extras of each object. More...
 
void printLatex (const RooCmdArg &arg1=RooCmdArg(), const RooCmdArg &arg2=RooCmdArg(), const RooCmdArg &arg3=RooCmdArg(), const RooCmdArg &arg4=RooCmdArg(), const RooCmdArg &arg5=RooCmdArg(), const RooCmdArg &arg6=RooCmdArg(), const RooCmdArg &arg7=RooCmdArg(), const RooCmdArg &arg8=RooCmdArg()) const
 Output content of collection as LaTex table. More...
 
void printLatex (std::ostream &ofs, Int_t ncol, const char *option="NEYU", Int_t sigDigit=1, const RooLinkedList &siblingLists=RooLinkedList(), const RooCmdArg *formatCmd=0) const
 Internal implementation function of printLatex. More...
 
void setName (const char *name)
 
const char * GetName () const
 Returns name of object. More...
 
Bool_t isOwning () const
 
Bool_t allInRange (const char *rangeSpec) const
 Return true if all contained object report to have their value inside the specified range. More...
 
void dump () const
 Base contents dumper for debugging purposes. More...
 
void releaseOwnership ()
 
void takeOwnership ()
 
void sort (Bool_t ascend=kTRUE)
 
- Public Member Functions inherited from TObject
 TObject ()
 
 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 Clear (Option_t *="")
 
virtual Int_t Compare (const TObject *obj) const
 Compare abstract method. More...
 
virtual void Copy (TObject &object) const
 Copy this to obj. 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 const char * GetTitle () const
 Returns title of object. More...
 
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out. More...
 
virtual ULong_t Hash () const
 Return hash value for this object. 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...
 
virtual Bool_t IsSortable () const
 
Bool_t IsOnHeap () const
 
Bool_t IsZombie () const
 
virtual Bool_t Notify ()
 This method must be overridden to handle object notification. More...
 
virtual void ls (Option_t *option="") const
 The ls function lists the contents of a class on stdout. 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 printArgs (std::ostream &os) const
 Interface for printing of object arguments. 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 StyleOption defaultPrintStyle (Option_t *opt) const
 

Static Public Member Functions

static void cleanup ()
 Clear memoery pool on exit to avoid reported memory leaks. 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 Member Functions

Bool_t checkForDup (const RooAbsArg &arg, Bool_t silent) const
 Check if element with var's name is already in set. More...
 
- Protected Member Functions inherited from RooAbsCollection
void safeDeleteList ()
 Examine client server dependencies in list and delete contents in safe order: any client is deleted before a server is deleted. More...
 
Bool_t addServerClonesToList (const RooAbsArg &var)
 Add clones of servers of given argument to list. More...
 
TNamedstructureTag ()
 
TNamedtypedStructureTag ()
 
void clearStructureTags ()
 Typed structure tag. More...
 
void makeStructureTag ()
 
void makeTypedStructureTag ()
 
- 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...
 

Static Protected Attributes

static char * _poolBegin = 0
 
static char * _poolCur = 0
 Start of memory pool. More...
 
static char * _poolEnd = 0
 Next free slot in memory pool. More...
 
- Static Protected Attributes inherited from RooPrintable
static Int_t _nameLength
 

Additional Inherited Members

- 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
}
 
- Protected Attributes inherited from RooAbsCollection
RooLinkedList _list
 
Bool_t _ownCont
 
TString _name
 
Bool_t _allRRV
 
TNamed_structureTag
 
TNamed_typedStructureTag
 Structure tag. More...
 

#include <RooArgSet.h>

+ Inheritance diagram for RooArgSet:
+ Collaboration diagram for RooArgSet:

Constructor & Destructor Documentation

RooArgSet::RooArgSet ( )

Default constructor.

Definition at line 199 of file RooArgSet.cxx.

Referenced by clone(), and create().

RooArgSet::RooArgSet ( const RooArgList list)

Constructor from a RooArgList.

If the list contains multiple objects with the same name, only the first is store in the set. Warning messages will be printed for dropped items.

Definition at line 212 of file RooArgSet.cxx.

RooArgSet::RooArgSet ( const RooArgList list,
const RooAbsArg var1 
)

Constructor from a RooArgList.

If the list contains multiple objects with the same name, only the first is store in the set. Warning messages will be printed for dropped items.

Definition at line 226 of file RooArgSet.cxx.

RooArgSet::RooArgSet ( const TCollection tcoll,
const char *  name = "" 
)
explicit

Constructor from a root TCollection.

Elements in the collection that do not inherit from RooAbsArg will be skipped. A warning message will be printed for every skipped item.

Definition at line 400 of file RooArgSet.cxx.

RooArgSet::RooArgSet ( const char *  name)
explicit

Empty set constructor.

Definition at line 241 of file RooArgSet.cxx.

RooArgSet::RooArgSet ( const RooArgSet set1,
const RooArgSet set2,
const char *  name = "" 
)

Construct a set from two existing sets.

Definition at line 253 of file RooArgSet.cxx.

RooArgSet::RooArgSet ( const RooAbsArg var1,
const char *  name = "" 
)

Constructor for set containing 1 initial object.

Definition at line 266 of file RooArgSet.cxx.

RooArgSet::RooArgSet ( const RooAbsArg var1,
const RooAbsArg var2,
const char *  name = "" 
)

Constructor for set containing 2 initial objects.

Definition at line 279 of file RooArgSet.cxx.

RooArgSet::RooArgSet ( const RooAbsArg var1,
const RooAbsArg var2,
const RooAbsArg var3,
const char *  name = "" 
)

Constructor for set containing 3 initial objects.

Definition at line 292 of file RooArgSet.cxx.

RooArgSet::RooArgSet ( const RooAbsArg var1,
const RooAbsArg var2,
const RooAbsArg var3,
const RooAbsArg var4,
const char *  name = "" 
)

Constructor for set containing 4 initial objects.

Definition at line 306 of file RooArgSet.cxx.

RooArgSet::RooArgSet ( const RooAbsArg var1,
const RooAbsArg var2,
const RooAbsArg var3,
const RooAbsArg var4,
const RooAbsArg var5,
const char *  name = "" 
)

Constructor for set containing 5 initial objects.

Definition at line 320 of file RooArgSet.cxx.

RooArgSet::RooArgSet ( const RooAbsArg var1,
const RooAbsArg var2,
const RooAbsArg var3,
const RooAbsArg var4,
const RooAbsArg var5,
const RooAbsArg var6,
const char *  name = "" 
)

Constructor for set containing 6 initial objects.

Definition at line 335 of file RooArgSet.cxx.

RooArgSet::RooArgSet ( const RooAbsArg var1,
const RooAbsArg var2,
const RooAbsArg var3,
const RooAbsArg var4,
const RooAbsArg var5,
const RooAbsArg var6,
const RooAbsArg var7,
const char *  name = "" 
)

Constructor for set containing 7 initial objects.

Definition at line 350 of file RooArgSet.cxx.

RooArgSet::RooArgSet ( const RooAbsArg var1,
const RooAbsArg var2,
const RooAbsArg var3,
const RooAbsArg var4,
const RooAbsArg var5,
const RooAbsArg var6,
const RooAbsArg var7,
const RooAbsArg var8,
const char *  name = "" 
)

Constructor for set containing 8 initial objects.

Definition at line 366 of file RooArgSet.cxx.

RooArgSet::RooArgSet ( const RooAbsArg var1,
const RooAbsArg var2,
const RooAbsArg var3,
const RooAbsArg var4,
const RooAbsArg var5,
const RooAbsArg var6,
const RooAbsArg var7,
const RooAbsArg var8,
const RooAbsArg var9,
const char *  name = "" 
)

Constructor for set containing 9 initial objects.

Definition at line 382 of file RooArgSet.cxx.

RooArgSet::~RooArgSet ( )
virtual

Destructor.

Definition at line 435 of file RooArgSet.cxx.

RooArgSet::RooArgSet ( const RooArgSet other,
const char *  name = "" 
)

Copy constructor.

Note that a copy of a set is always non-owning, even the source set is owning. To create an owning copy of a set (owning or not), use the snaphot() method.

Definition at line 424 of file RooArgSet.cxx.

Member Function Documentation

Bool_t RooArgSet::add ( const RooAbsArg var,
Bool_t  silent = kFALSE 
)
virtual

Add element to non-owning set.

The operation will fail if a similarly named object already exists in the set, or the set is specified to own its elements. Eventual error messages can be suppressed with the silent flag

Reimplemented from RooAbsCollection.

Reimplemented in RooSetProxy.

Definition at line 448 of file RooArgSet.cxx.

Referenced by RooStats::HistFactory::HistFactoryNavigation::_GetAllProducts(), RooFormula::actualDependents(), RooAbsSelfCachedPdf::actualObservables(), RooAbsSelfCachedReal::actualObservables(), RooNumRunningInt::actualObservables(), RooIntegralMorph::actualObservables(), RooFFTConvPdf::actualObservables(), RooAbsSelfCachedPdf::actualParameters(), RooAbsSelfCachedReal::actualParameters(), RooIntegralMorph::actualParameters(), RooSetProxy::add(), RooCompositeDataStore::addColumn(), RooTreeDataStore::addColumn(), RooVectorDataStore::addColumn(), RooCompositeDataStore::addColumns(), RooTreeDataStore::addColumns(), RooVectorDataStore::addColumns(), RooMCStudy::addFitResult(), RooStats::PdfProposal::AddMapping(), RooAbsArg::addParameters(), RooSimPdfBuilder::addSpecializations(), RooStats::SPlot::AddSWeight(), RooDataSet::addWgtVar(), RooWorkspace::allCatFunctions(), RooWorkspace::allCats(), RooWorkspace::allFunctions(), RooWorkspace::allPdfs(), RooWorkspace::allResolutionModels(), RooWorkspace::allVars(), RooHistPdf::analyticalIntegral(), RooHistFunc::analyticalIntegral(), RooProjectedPdf::analyticalIntegralWN(), RooWorkspace::argSet(), RooFactoryWSTool::asSET(), RooGenFitStudy::attach(), RooTreeDataStore::attachBuffers(), RooTreeDataStore::attachCache(), RooStats::BayesianCalculator::BayesianCalculator(), RooCustomizer::build(), RooSimPdfBuilder::buildPdf(), RooVectorDataStore::cacheArgs(), RooTreeDataStore::cacheArgs(), ClassImp(), RooStats::CombinedCalculator::CombinedCalculator(), RooAbsPdf::createCdf(), RooRealIntegral::createIntegral(), RooAbsReal::createIntegral(), RooAbsReal::createIntRI(), RooAbsPdf::createNLL(), RooStats::FeldmanCousins::CreateParameterPoints(), RooAbsReal::createPlotProjection(), RooProjectedPdf::createProjection(), RooAbsReal::createRunningIntegral(), RooWorkspace::defineSet(), RooCustomizer::doBuild(), RooStats::LikelihoodIntervalPlot::Draw(), RooDataSet::emptyClone(), RooStats::AsymptoticCalculator::EvaluateNLL(), RooSimWSTool::executeBuild(), RooWorkspace::extendSet(), RooProdPdf::factorizeProduct(), RooAbsData::fillHistogram(), RooAbsReal::fillHistogram(), RooAbsArg::findConstantNodes(), RooAbsReal::findInnerMostIntegration(), RooStats::HistFactory::FitModelAndPlot(), RooMCStudy::fitSample(), FitUsingRooFit2(), RooBinnedGenContext::generate(), RooStats::AsymptoticCalculator::GenerateAsimovData(), RooStats::AsymptoticCalculator::GenerateAsimovDataSinglePdf(), RooAbsPdf::getAllConstraints(), RooUniform::getAnalyticalIntegral(), RooMultiVarGaussian::getAnalyticalIntegral(), RooAddition::getAnalyticalIntegral(), RooHistPdf::getAnalyticalIntegral(), RooHistFunc::getAnalyticalIntegral(), RooProjectedPdf::getAnalyticalIntegralWN(), RooEffProd::getAnalyticalIntegralWN(), RooRealSumPdf::getAnalyticalIntegralWN(), RooProduct::getAnalyticalIntegralWN(), RooAddModel::getAnalyticalIntegralWN(), PiecewiseInterpolation::getAnalyticalIntegralWN(), RooAddPdf::getAnalyticalIntegralWN(), ParamHistFunc::getAnalyticalIntegralWN(), RooSimultaneous::getAnalyticalIntegralWN(), RooAbsAnaConvPdf::getAnalyticalIntegralWN(), RooAbsCachedPdf::getAnalyticalIntegralWN(), RooProdPdf::getAnalyticalIntegralWN(), RooStats::DetailedOutputAggregator::GetAsArgSet(), RooStats::MarkovChain::GetAsDataHist(), RooStats::MarkovChain::GetAsDataSet(), RooMomentMorph::getCache(), RooProdPdf::getConnectedParameters(), RooProdPdf::getConstraints(), RooUniform::getGenerator(), RooMultiVarGaussian::getGenerator(), RooProdPdf::getGenerator(), RooStats::AsymptoticCalculator::GetHypoTest(), RooStats::HypoTestCalculatorGeneric::GetHypoTest(), RooAbsArg::getObservables(), RooProdPdf::getParametersHook(), RooProdPdf::getPartIntList(), RooAddPdf::getProjCache(), RooProjectedPdf::getProjection(), RooProduct::groupProductTerms(), RooProdPdf::groupProductTerms(), RooWorkspace::import(), RooDataHist::importTH1(), RooDataHist::importTH1Set(), RooGenFitStudy::initialize(), RooMultiCatIter::initialize(), RooStats::AsymptoticCalculator::Initialize(), RooXYChi2Var::initialize(), RooSimultaneous::initialize(), RooDataSet::initialize(), RooDataHist::initialize(), RooRandomizeParamMCSModule::initializeInstance(), RooAbsOptTestStatistic::initSlave(), RooRealIntegral::intVars(), RooStats::AsymptoticCalculator::MakeAsimovData(), RooGenProdProj::makeIntegral(), RooAbsReal::makeProjectionSet(), RooAbsReal::matchArgsByName(), RooCmdArg::operator=(), RooObjCacheManager::optimizeCacheMode(), RooAbsArg::optimizeCacheMode(), RooAbsData::optimizeReadingWithCaching(), RooChangeTracker::parameters(), RooRealIntegral::parameters(), RooAbsCachedPdf::PdfCacheElem::PdfCacheElem(), RooAbsReal::plotAsymOn(), RooSimultaneous::plotOn(), RooAbsReal::plotOn(), RooAbsReal::plotOnCompSelect(), RooStats::FrequentistCalculator::PreAltHook(), RooIntegralMorph::preferredObservableScanOrder(), RooAbsReal::preferredObservableScanOrder(), RooStats::FrequentistCalculator::PreNullHook(), RooWorkspace::Print(), RooRealIntegral::printMetaArgs(), RooStats::HistFactory::HistFactoryNavigation::PrintSampleComponents(), RooProdPdf::rearrangeProduct(), RooStats::HypoTestInverter::RebuildDistributions(), RooAbsData::reduce(), RooDataSet::reduceEng(), RooStats::RemoveConstantParameters(), RooAbsDataStore::RooAbsDataStore(), RooAbsGenContext::RooAbsGenContext(), RooAbsNumGenerator::RooAbsNumGenerator(), RooAddGenContext::RooAddGenContext(), RooArgSet(), RooBinnedGenContext::RooBinnedGenContext(), RooCmdArg::RooCmdArg(), RooConvGenContext::RooConvGenContext(), RooDataHist::RooDataHist(), RooDataSet::RooDataSet(), RooFirstMoment::RooFirstMoment(), RooGenContext::RooGenContext(), RooMCStudy::RooMCStudy(), RooMoment::RooMoment(), RooParamHistFunc::RooParamHistFunc(), RooProdGenContext::RooProdGenContext(), RooRealIntegral::RooRealIntegral(), RooSecondMoment::RooSecondMoment(), RooSimGenContext::RooSimGenContext(), RooSimSplitGenContext::RooSimSplitGenContext(), RooStats::HypoTestInverter::RunOnePoint(), RooRandomizeParamMCSModule::sampleSumGauss(), RooRandomizeParamMCSModule::sampleSumUniform(), RooNameSet::select(), RooStats::CombinedCalculator::SetAlternateParameters(), RooProduct::setCacheAndTrackHints(), RooRealSumPdf::setCacheAndTrackHints(), RooAbsAnaConvPdf::setCacheAndTrackHints(), RooAddPdf::setCacheAndTrackHints(), RooProdPdf::setCacheAndTrackHints(), RooStats::MetropolisHastings::SetChainParameters(), RooStats::MCMCCalculator::SetChainParameters(), RooStats::MCMCCalculator::SetConditionalObservables(), RooStats::BayesianCalculator::SetConditionalObservables(), RooStats::MaxLikelihoodEstimateTestStat::SetConditionalObservables(), RooStats::ProfileLikelihoodTestStat::SetConditionalObservables(), RooStats::CombinedCalculator::SetConditionalObservables(), RooStats::SimpleLikelihoodRatioTestStat::SetConditionalObservables(), RooStats::ToyMCImportanceSampler::SetConditionalObservables(), RooStats::ModelConfig::SetHasOnlyParameters(), RooStats::MCMCCalculator::SetModel(), RooStats::BayesianCalculator::SetModel(), RooStats::MCMCCalculator::SetNuisanceParameters(), RooStats::BayesianCalculator::SetNuisanceParameters(), RooStats::CombinedCalculator::SetNuisanceParameters(), RooStats::CombinedCalculator::SetNullParameters(), RooStats::MetropolisHastings::SetParameters(), RooStats::MCMCCalculator::SetParameters(), RooStats::BayesianCalculator::SetParameters(), RooStats::CombinedCalculator::SetParameters(), RooStats::ToyMCStudy::SetParamPoint(), RooCmdArg::setSet(), RooAbsData::split(), RooAbsData::table(), topDriver(), and RooSimWSTool::validateConfig().

RooAbsArg * RooArgSet::addClone ( const RooAbsArg var,
Bool_t  silent = kFALSE 
)
virtual
Bool_t RooArgSet::addOwned ( RooAbsArg var,
Bool_t  silent = kFALSE 
)
virtual
Bool_t RooArgSet::checkForDup ( const RooAbsArg arg,
Bool_t  silent 
) const
protected

Check if element with var's name is already in set.

Definition at line 504 of file RooArgSet.cxx.

Referenced by add(), addClone(), and addOwned().

void RooArgSet::cleanup ( )
static

Clear memoery pool on exit to avoid reported memory leaks.

Definition at line 83 of file RooArgSet.cxx.

Referenced by CleanUpRooFitAtExit().

virtual TObject* RooArgSet::clone ( const char *  newname) const
inlinevirtual

Implements RooAbsCollection.

Definition at line 82 of file RooArgSet.h.

Referenced by RooStats::LikelihoodIntervalPlot::SetPlotParameters().

virtual TObject* RooArgSet::create ( const char *  newname) const
inlinevirtual

Implements RooAbsCollection.

Definition at line 83 of file RooArgSet.h.

Int_t RooArgSet::getCatIndex ( const char *  name,
Int_t  defVal = 0,
Bool_t  verbose = kFALSE 
) const

Get index value of a RooAbsCategory stored in set with given name.

If none is found, value of defVal is returned. No error messages are printed unless the verbose flag is set

Definition at line 613 of file RooArgSet.cxx.

Referenced by RooAdaptiveGaussKronrodIntegrator1D::RooAdaptiveGaussKronrodIntegrator1D(), RooIntegrator1D::RooIntegrator1D(), and RooMCIntegrator::RooMCIntegrator().

const char * RooArgSet::getCatLabel ( const char *  name,
const char *  defVal = "",
Bool_t  verbose = kFALSE 
) const

Get state name of a RooAbsCategory stored in set with given name.

If none is found, value of defVal is returned. No error messages are printed unless the verbose flag is set

Definition at line 570 of file RooArgSet.cxx.

Double_t RooArgSet::getRealValue ( const char *  name,
Double_t  defVal = 0,
Bool_t  verbose = kFALSE 
) const
const char * RooArgSet::getStringValue ( const char *  name,
const char *  defVal = "",
Bool_t  verbose = kFALSE 
) const

Get string value of a RooAbsString stored in set with given name.

If none is found, value of defVal is returned. No error messages are printed unless the verbose flag is set

Definition at line 656 of file RooArgSet.cxx.

Bool_t RooArgSet::isInRange ( const char *  rangeSpec)

Definition at line 1005 of file RooArgSet.cxx.

Referenced by RooAbsGenContext::generate().

void RooArgSet::operator delete ( void ptr)
void* RooArgSet::operator new ( size_t  bytes)
void* RooArgSet::operator new ( size_t  bytes,
void ptr 
)
noexcept
RooArgSet& RooArgSet::operator= ( const RooArgSet other)
inline

Definition at line 84 of file RooArgSet.h.

Referenced by RooSetProxy::operator=().

RooAbsArg & RooArgSet::operator[] ( const char *  name) const

Array operator.

Named element must exist in set, otherwise code will abort.

When used as lvalue in assignment operations, the element contained in the list will not be changed, only the value of the existing element!

Definition at line 489 of file RooArgSet.cxx.

Bool_t RooArgSet::readFromFile ( const char *  fileName,
const char *  flagReadAtt = 0,
const char *  section = 0,
Bool_t  verbose = kFALSE 
)

Read contents of the argset from specified file.

See readFromStream() for details

Definition at line 715 of file RooArgSet.cxx.

virtual Bool_t RooArgSet::readFromStream ( std::istream &  is,
Bool_t  compact,
Bool_t  verbose = kFALSE 
)
inlinevirtual

Definition at line 95 of file RooArgSet.h.

Referenced by readFromFile(), and readFromStream().

Bool_t RooArgSet::readFromStream ( std::istream &  is,
Bool_t  compact,
const char *  flagReadAtt,
const char *  section,
Bool_t  verbose = kFALSE 
)

Read the contents of the argset in ASCII form from given stream.

The stream is read to end-of-file and each line is assumed to be of the form

<argName> = <argValue>

Lines starting with argNames not matching any element in the list will be ignored with a warning message. In addition limited C++ style preprocessing and flow control is provided. The following constructions are recognized:

#include "include.file"

Include given file, recursive inclusion OK

if (<boolean_expression>) <name> =

.... else if (<boolean_expression>)

....

else

....

endif

All expressions are evaluated by RooFormula, and may involve any of the sets variables.

echo <Message>

Print console message while reading from stream

abort

Force termination of read sequence with error status

The value of each argument is read by the arguments readFromStream function.

Definition at line 797 of file RooArgSet.cxx.

Bool_t RooArgSet::setCatIndex ( const char *  name,
Int_t  newVal = 0,
Bool_t  verbose = kFALSE 
)

Set index value of a RooAbsCategoryLValue stored in set with given name to newVal.

No error messages are printed unless the verbose flag is set

Definition at line 634 of file RooArgSet.cxx.

Bool_t RooArgSet::setCatLabel ( const char *  name,
const char *  newVal = "",
Bool_t  verbose = kFALSE 
)

Set state name of a RooAbsCategoryLValue stored in set with given name to newVal.

No error messages are printed unless the verbose flag is set

Definition at line 591 of file RooArgSet.cxx.

Bool_t RooArgSet::setRealValue ( const char *  name,
Double_t  newVal = 0,
Bool_t  verbose = kFALSE 
)

Set value of a RooAbsRealLValye stored in set with given name to newVal No error messages are printed unless the verbose flag is set.

Definition at line 548 of file RooArgSet.cxx.

Referenced by PiecewiseInterpolation::setBinIntegrator().

Bool_t RooArgSet::setStringValue ( const char *  name,
const char *  newVal = "",
Bool_t  verbose = kFALSE 
)

Set string value of a RooStringVar stored in set with given name to newVal.

No error messages are printed unless the verbose flag is set

Definition at line 677 of file RooArgSet.cxx.

void RooArgSet::writeToFile ( const char *  fileName) const

Write contents of the argset to specified file.

See writeToStream() for details

Definition at line 699 of file RooArgSet.cxx.

void RooArgSet::writeToStream ( std::ostream &  os,
Bool_t  compact,
const char *  section = 0 
) const
virtual

Write the contents of the argset in ASCII form to given stream.

A line is written for each element contained in the form <argName> = <argValue>

The <argValue> part of each element is written by the arguments' writeToStream() function.

Definition at line 737 of file RooArgSet.cxx.

Referenced by writeToFile().

Member Data Documentation

char * RooArgSet::_poolBegin = 0
staticprotected

Definition at line 122 of file RooArgSet.h.

char * RooArgSet::_poolCur = 0
staticprotected

Start of memory pool.

Definition at line 123 of file RooArgSet.h.

char * RooArgSet::_poolEnd = 0
staticprotected

Next free slot in memory pool.

Definition at line 124 of file RooArgSet.h.


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