Docs | All | Real | Category | PDF | DataSet | Plot | Container | Misc | Aux | User

RooFit Toolkit for Data Modeling
#include "RooArgSet.hh"

RooArgSet


class description - source file - inheritance tree (.pdf)

class RooArgSet : public RooAbsCollection

Inheritance Chart:
TObject
RooPrintable
<-
RooAbsCollection
<-
RooArgSet
<-
RooSetProxy

    protected:
Bool_t checkForDup(const RooAbsArg& arg, Bool_t silent) const public:
RooArgSet() RooArgSet(const RooArgList& list) RooArgSet(const TCollection& tcoll, const char* name = "") RooArgSet(const char* name) RooArgSet(const RooAbsArg& var1, const char* name = "") RooArgSet(const RooAbsArg& var1, const RooAbsArg& var2, const char* name = "") RooArgSet(const RooAbsArg& var1, const RooAbsArg& var2, const RooAbsArg& var3, const char* name = "") RooArgSet(const RooAbsArg& var1, const RooAbsArg& var2, const RooAbsArg& var3, const RooAbsArg& var4, const char* name = "") RooArgSet(const RooAbsArg& var1, const RooAbsArg& var2, const RooAbsArg& var3, const RooAbsArg& var4, const RooAbsArg& var5, const char* name = "") RooArgSet(const RooAbsArg& var1, const RooAbsArg& var2, const RooAbsArg& var3, const RooAbsArg& var4, const RooAbsArg& var5, const RooAbsArg& var6, const char* name = "") 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 = "") 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 = "") 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 = "") RooArgSet(const RooArgSet& other, const char* name = "") virtual ~RooArgSet() virtual Bool_t add(const RooAbsArg& var, Bool_t silent = kFALSE) virtual Bool_t add(const RooAbsCollection& list, Bool_t silent = kFALSE) virtual RooAbsArg* addClone(const RooAbsArg& var, Bool_t silent = kFALSE) virtual void addClone(const RooAbsCollection& list, Bool_t silent = kFALSE) virtual Bool_t addOwned(RooAbsArg& var, Bool_t silent = kFALSE) virtual Bool_t addOwned(const RooAbsCollection& list, Bool_t silent = kFALSE) static TClass* Class() virtual TObject* clone(const char* newname) const virtual TObject* create(const char* newname) const Int_t getCatIndex(const char* name, Int_t defVal = 0, Bool_t verbose = kFALSE) const const char* getCatLabel(const char* name, const char* defVal = "", Bool_t verbose = kFALSE) const Double_t getRealValue(const char* name, Double_t defVal = 0, Bool_t verbose = kFALSE) const const char* getStringValue(const char* name, const char* defVal = "", Bool_t verbose = kFALSE) const virtual TClass* IsA() const RooArgSet& operator=(const RooArgSet& other) RooAbsArg& operator[](const char* name) const Bool_t readFromFile(const char* fileName, const char* flagReadAtt = "0", const char* section = "0", Bool_t verbose = kFALSE) virtual Bool_t readFromStream(istream& is, Bool_t compact, Bool_t verbose = kFALSE) Bool_t readFromStream(istream& is, Bool_t compact, const char* flagReadAtt, const char* section, Bool_t verbose = kFALSE) Bool_t setCatIndex(const char* name, Int_t newVal = 0, Bool_t verbose = kFALSE) Bool_t setCatLabel(const char* name, const char* newVal = "", Bool_t verbose = kFALSE) Bool_t setRealValue(const char* name, Double_t newVal = 0, Bool_t verbose = kFALSE) Bool_t setStringValue(const char* name, const char* newVal = "", Bool_t verbose = kFALSE) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) void writeToFile(const char* fileName) virtual void writeToStream(ostream& os, Bool_t compact, const char* section = "0")

Data Members




Class Description

 RooArgSet is a container object that can hold multiple RooAbsArg objects.
 The container has set semantics which means that:

  - Every object it contains must have a unique name returned by GetName().

  - Contained objects are not ordered, although the set can be traversed
    using an iterator returned by createIterator(). The iterator does not
    necessarily follow the object insertion order.

  - Objects can be retrieved by name only, and not by index.


 Ownership of contents.

 Unowned objects are inserted with the add() method. Owned objects
 are added with addOwned() or addClone(). A RooArgSet either owns all
 of it contents, or none, which is determined by the first <add>
 call. Once an ownership status is selected, inappropriate <add> calls
 will return error status. Clearing the list via removeAll() resets the
 ownership status. Arguments supplied in the constructor are always added
 as unowned elements.



RooArgSet() : RooAbsCollection()
 Default constructor

RooArgSet(const RooArgList& list) : RooAbsCollection(list.GetName())
 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.

RooArgSet(const char *name) : RooAbsCollection(name)
 Empty set constructor

RooArgSet(const RooAbsArg& var1, const char *name) : RooAbsCollection(name)
 Constructor for set containing 1 initial object

RooArgSet(const RooAbsArg& var1, const RooAbsArg& var2, const char *name) : RooAbsCollection(name)
 Constructor for set containing 2 initial objects

RooArgSet(const RooAbsArg& var1, const RooAbsArg& var2, const RooAbsArg& var3, const char *name) : RooAbsCollection(name)
 Constructor for set containing 3 initial objects

RooArgSet(const RooAbsArg& var1, const RooAbsArg& var2, const RooAbsArg& var3, const RooAbsArg& var4, const char *name) : RooAbsCollection(name)
 Constructor for set containing 4 initial objects

RooArgSet(const RooAbsArg& var1, const RooAbsArg& var2, const RooAbsArg& var3, const RooAbsArg& var4, const RooAbsArg& var5, const char *name) : RooAbsCollection(name)
 Constructor for set containing 5 initial objects

RooArgSet(const RooAbsArg& var1, const RooAbsArg& var2, const RooAbsArg& var3, const RooAbsArg& var4, const RooAbsArg& var5, const RooAbsArg& var6, const char *name) : RooAbsCollection(name)
 Constructor for set containing 6 initial objects

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) : RooAbsCollection(name)
 Constructor for set containing 7 initial objects

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) : RooAbsCollection(name)
 Constructor for set containing 8 initial objects

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) : RooAbsCollection(name)
 Constructor for set containing 9 initial objects

RooArgSet(const TCollection& tcoll, const char* name) : RooAbsCollection(name)
 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.

RooArgSet(const RooArgSet& other, const char *name) : RooAbsCollection(other,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.

~RooArgSet()
 Destructor

Bool_t add(const RooAbsArg& var, Bool_t silent)
 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

Bool_t addOwned(RooAbsArg& var, Bool_t silent)
 Add element to an owning set. The operation will fail if
 a similarly named object already exists in the set, or
 the set is not specified to own its elements. Eventual error messages
 can be suppressed with the silent flag

RooAbsArg* addClone(const RooAbsArg& var, Bool_t silent)
 Add clone of specified element to an owning set. If sucessful, the
 set will own the clone, not the original. The operation will fail if
 a similarly named object already exists in the set, or
 the set is not specified to own its elements. Eventual error messages
 can be suppressed with the silent flag

Bool_t checkForDup(const RooAbsArg& var, Bool_t silent) const
 Check if element with var's name is already in set

Double_t getRealValue(const char* name, Double_t defVal, Bool_t verbose) const

Bool_t setRealValue(const char* name, Double_t newVal, Bool_t verbose)

const char* getCatLabel(const char* name, const char* defVal, Bool_t verbose) const

Bool_t setCatLabel(const char* name, const char* newVal, Bool_t verbose)

Int_t getCatIndex(const char* name, Int_t defVal, Bool_t verbose) const

Bool_t setCatIndex(const char* name, Int_t newVal, Bool_t verbose)

const char* getStringValue(const char* name, const char* defVal, Bool_t verbose) const

Bool_t setStringValue(const char* name, const char* newVal, Bool_t verbose)

void writeToFile(const char* fileName)
 Write contents of the argset to specified file.
 See writeToStream() for details

Bool_t readFromFile(const char* fileName, const char* flagReadAtt, const char* section, Bool_t verbose)
 Read contents of the argset from specified file.
 See readFromStream() for details

void writeToStream(ostream& os, Bool_t compact, const char* /*section*/)
 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.

Bool_t readFromStream(istream& is, Bool_t compact, const char* flagReadAtt, const char* section, Bool_t verbose)
 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> = <value>
 >   ....
 > 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.



Inline Functions


           TObject* clone(const char* newname) const
           TObject* create(const char* newname) const
         RooArgSet& operator=(const RooArgSet& other)
             Bool_t add(const RooAbsCollection& list, Bool_t silent = kFALSE)
             Bool_t addOwned(const RooAbsCollection& list, Bool_t silent = kFALSE)
               void addClone(const RooAbsCollection& list, Bool_t silent = kFALSE)
         RooAbsArg& operator[](const char* name) const
             Bool_t readFromStream(istream& is, Bool_t compact, const char* flagReadAtt, const char* section, Bool_t verbose = kFALSE)
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
               void StreamerNVirtual(TBuffer& b)
Last CVS Update: v 1.61 2005/06/21 19:59:51 wverkerke Top
Copyright © 2000-2005 University of California, Stanford University

Page maintained by Wouter Verkerke and David Kirkby

SourceForge.net Logo