ROOT logo
ROOT » ROOFIT » ROOFITCORE » RooArgList

class RooArgList: public RooAbsCollection


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

  - Contained objects are ordered, The iterator
    follows the object insertion order.

  - Objects can be retrieved by name and index

  - Multiple objects with the same name are allowed

 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.


Function Members (Methods)

public:
RooArgList()
RooArgList(const RooArgSet& set)
RooArgList(const char* name)
RooArgList(const TCollection& tcoll, const char* name = "")
RooArgList(const RooAbsArg& var1, const char* name = "")
RooArgList(const RooArgList& other, const char* name = "")
RooArgList(const RooAbsArg& var1, const RooAbsArg& var2, const char* name = "")
RooArgList(const RooAbsArg& var1, const RooAbsArg& var2, const RooAbsArg& var3, const char* name = "")
RooArgList(const RooAbsArg& var1, const RooAbsArg& var2, const RooAbsArg& var3, const RooAbsArg& var4, const char* name = "")
RooArgList(const RooAbsArg& var1, const RooAbsArg& var2, const RooAbsArg& var3, const RooAbsArg& var4, const RooAbsArg& var5, const char* name = "")
RooArgList(const RooAbsArg& var1, const RooAbsArg& var2, const RooAbsArg& var3, const RooAbsArg& var4, const RooAbsArg& var5, const RooAbsArg& var6, const char* name = "")
RooArgList(const RooAbsArg& var1, const RooAbsArg& var2, const RooAbsArg& var3, const RooAbsArg& var4, const RooAbsArg& var5, const RooAbsArg& var6, const RooAbsArg& var7, const char* name = "")
RooArgList(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 = "")
RooArgList(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 = "")
virtual~RooArgList()
voidTObject::AbstractMethod(const char* method) const
virtual Bool_tRooAbsCollection::add(const RooAbsArg& var, Bool_t silent = kFALSE)
virtual Bool_tRooAbsCollection::add(const RooAbsCollection& list, Bool_t silent = kFALSE)
virtual RooAbsArg*RooAbsCollection::addClone(const RooAbsArg& var, Bool_t silent = kFALSE)
virtual voidRooAbsCollection::addClone(const RooAbsCollection& list, Bool_t silent = kFALSE)
virtual Bool_tRooAbsCollection::addOwned(RooAbsArg& var, Bool_t silent = kFALSE)
virtual Bool_tRooAbsCollection::addOwned(const RooAbsCollection& list, Bool_t silent = kFALSE)
Bool_tRooAbsCollection::allInRange(const char* rangeSpec) const
virtual voidTObject::AppendPad(Option_t* option = "")
RooAbsCollection&RooAbsCollection::assignFast(const RooAbsCollection& other)
RooAbsCollection&RooAbsCollection::assignValueOnly(const RooAbsCollection& other, Bool_t oneSafe = kFALSE)
RooAbsArg*at(Int_t idx) const
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*clone(const char* newname) const
virtual TObject*RooAbsCollection::Clone(const char* newname = 0) const
virtual Int_tTObject::Compare(const TObject* obj) const
Bool_tRooAbsCollection::contains(const RooAbsArg& var) const
Bool_tRooAbsCollection::containsInstance(const RooAbsArg& var) const
stringRooAbsCollection::contentsString() const
virtual voidTObject::Copy(TObject& object) const
virtual TObject*create(const char* newname) const
TIterator*RooAbsCollection::createIterator(Bool_t dir = kIterForward) const
virtual Int_tRooAbsCollection::defaultPrintContents(Option_t* opt) const
static ostream&RooPrintable::defaultPrintStream(ostream* os = 0)
virtual RooPrintable::StyleOptionRooPrintable::defaultPrintStyle(Option_t* opt) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
voidRooAbsCollection::dump() const
virtual voidTObject::Dump() constMENU
Bool_tRooAbsCollection::equals(const RooAbsCollection& otherColl) const
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
RooAbsArg*RooAbsCollection::find(const char* name) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
RooAbsArg*RooAbsCollection::first() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
Int_tRooAbsCollection::getHashTableSize() const
virtual const char*TObject::GetIconName() const
virtual const char*RooAbsCollection::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
Int_tRooAbsCollection::getSize() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
Int_tindex(const RooAbsArg* arg) const
Int_tindex(const char* name) const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
Bool_tRooAbsCollection::isOwning() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
RooLinkedListIterRooAbsCollection::iterator(Bool_t dir = kIterForward) const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
static voidRooPrintable::nameFieldLength(Int_t newLen)
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
RooArgList&operator=(const RooArgList& other)
RooAbsArg&operator[](Int_t idx) const
Bool_tRooAbsCollection::overlaps(const RooAbsCollection& otherColl) const
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidRooAbsCollection::Print(Option_t* options = 0) const
virtual voidRooPrintable::printAddress(ostream& os) const
virtual voidRooPrintable::printArgs(ostream& os) const
virtual voidRooAbsCollection::printClassName(ostream& os) const
virtual voidRooPrintable::printExtras(ostream& os) const
voidRooAbsCollection::printLatex(ostream& ofs, Int_t ncol, const char* option = "NEYU", Int_t sigDigit = 1, const RooLinkedList& siblingLists = RooLinkedList(), const RooCmdArg* formatCmd = 0) const
voidRooAbsCollection::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
virtual voidRooAbsCollection::printMultiline(ostream& os, Int_t contents, Bool_t verbose = kFALSE, TString indent = "") const
virtual voidRooAbsCollection::printName(ostream& os) const
virtual voidRooPrintable::printStream(ostream& os, Int_t contents, RooPrintable::StyleOption style, TString indent = "") const
virtual voidRooAbsCollection::printTitle(ostream& os) const
virtual voidRooPrintable::printTree(ostream& os, TString indent = "") const
virtual voidRooAbsCollection::printValue(ostream& os) const
virtual Int_tTObject::Read(const char* name)
virtual Bool_treadFromStream(istream& is, Bool_t compact, Bool_t verbose = kFALSE)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidRooAbsCollection::releaseOwnership()
virtual Bool_tRooAbsCollection::remove(const RooAbsArg& var, Bool_t silent = kFALSE, Bool_t matchByNameOnly = kFALSE)
Bool_tRooAbsCollection::remove(const RooAbsCollection& list, Bool_t silent = kFALSE, Bool_t matchByNameOnly = kFALSE)
virtual voidRooAbsCollection::removeAll()
Bool_tRooAbsCollection::replace(const RooAbsCollection& other)
virtual Bool_tRooAbsCollection::replace(const RooAbsArg& var1, const RooAbsArg& var2)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
RooAbsCollection*RooAbsCollection::selectByAttrib(const char* name, Bool_t value) const
RooAbsCollection*RooAbsCollection::selectByName(const char* nameList, Bool_t verbose = kFALSE) const
RooAbsCollection*RooAbsCollection::selectCommon(const RooAbsCollection& refColl) const
voidRooAbsCollection::setAttribAll(const Text_t* name, Bool_t value = kTRUE)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidRooAbsCollection::setHashTableSize(Int_t i)
voidRooAbsCollection::setName(const char* name)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp)
RooAbsCollection*RooAbsCollection::snapshot(Bool_t deepCopy = kTRUE) const
Bool_tRooAbsCollection::snapshot(RooAbsCollection& output, Bool_t deepCopy = kTRUE) const
voidsort(Bool_t reverse = kFALSE)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
voidRooAbsCollection::takeOwnership()
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
virtual voidwriteToStream(ostream& os, Bool_t compact)
protected:
Bool_tRooAbsCollection::addServerClonesToList(const RooAbsArg& var)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()
voidRooAbsCollection::safeDeleteList()

Data Members

protected:
RooLinkedListRooAbsCollection::_listActual object store
TStringRooAbsCollection::_nameOur name.
static Int_tRooPrintable::_nameLength
Bool_tRooAbsCollection::_ownContFlag to identify a list that owns its contents.

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

RooArgList()
 Default constructor
RooArgList(const RooArgSet& set)
 Constructor from a RooArgSet.
RooArgList(const char* name)
 Empty list constructor
RooArgList(const RooAbsArg& var1, const char* name = "")
 Constructor for list containing 1 initial object
RooArgList(const RooAbsArg& var1, const RooAbsArg& var2, const char* name = "")
 Constructor for set containing 2 initial objects
RooArgList(const RooAbsArg& var1, const RooAbsArg& var2, const RooAbsArg& var3, const char* name = "")
 Constructor for set containing 3 initial objects
RooArgList(const RooAbsArg& var1, const RooAbsArg& var2, const RooAbsArg& var3, const RooAbsArg& var4, const char* name = "")
 Constructor for set containing 4 initial objects
RooArgList(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
RooArgList(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
RooArgList(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
RooArgList(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
RooArgList(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
RooArgList(const TCollection& tcoll, const char* 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.
RooArgList(const RooArgList& other, const char* name = "")
 Copy constructor. Note that a copy of a list is always non-owning,
 even the source list is owning. To create an owning copy of
 a list (owning or not), use the snaphot() method.
~RooArgList()
 Destructor
RooAbsArg& operator[](Int_t idx) const
 Array operator. Element in slot 'idx' must already exist, 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!
void writeToStream(ostream& os, Bool_t compact)
 Write the contents of the argset in ASCII form to given stream.

 All elements will be printed on a single line separated by a single
 white space. The contents of each element is written by the arguments'
 writeToStream() function
Bool_t readFromStream(istream& is, Bool_t compact, Bool_t verbose = kFALSE)
 Read the contents of the argset in ASCII form from given stream.

 A single line is read, and all elements are assumed to be separated
 by white space. The value of each argument is read by the arguments
 readFromStream function.
TObject* clone(const char* newname) const
{ return new RooArgList(*this,newname); }
TObject* create(const char* newname) const
{ return new RooArgList(newname); }
RooArgList& operator=(const RooArgList& other)
{ RooAbsCollection::operator=(other) ; return *this ; }
void sort(Bool_t reverse = kFALSE)
 Sort list in requested order
Int_t index(const RooAbsArg* arg) const
 Returns index of given arg, or -1 if arg is not in list
Int_t index(const char* name) const
 Returns index of given arg, or -1 if arg is not in list
RooAbsArg* at(Int_t idx) const
 Return object at given index, or 0 if index is out of range