ROOT 6.14/05 Reference Guide |
RooAbsCollection is an abstract container object that can hold multiple RooAbsArg objects.
Collections are ordered and can contain multiple objects of the same name, (but a derived implementation can enforce unique names). The storage of objects in implement through class RooLinkedList, a doubly linked list with an an optional hash-table lookup mechanism for fast indexing of large collections.
Definition at line 27 of file RooAbsCollection.h.
Public Member Functions | |
RooAbsCollection () | |
Default constructor. More... | |
RooAbsCollection (const char *name) | |
Empty collection constructor. More... | |
RooAbsCollection (const RooAbsCollection &other, const char *name="") | |
Copy constructor. More... | |
virtual | ~RooAbsCollection () |
Destructor. More... | |
virtual Bool_t | add (const RooAbsArg &var, Bool_t silent=kFALSE) |
Add the specified argument to list. 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 RooAbsArg * | addClone (const RooAbsArg &var, Bool_t silent=kFALSE) |
Add a clone of the specified argument to list. 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... | |
virtual Bool_t | addOwned (RooAbsArg &var, Bool_t silent=kFALSE) |
Add the specified argument to list. 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... | |
Bool_t | allInRange (const char *rangeSpec) const |
Return true if all contained object report to have their value inside the specified range. More... | |
void | assignFast (const RooAbsCollection &other, Bool_t setValDirty=kTRUE) |
Functional equivalent of operator=() but assumes this and other collection have same layout. More... | |
RooAbsCollection & | assignValueOnly (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... | |
virtual TObject * | clone (const char *newname) const =0 |
virtual TObject * | Clone (const char *newname=0) const |
Make a clone of an object using the Streamer facility. More... | |
Bool_t | contains (const RooAbsArg &var) const |
Bool_t | containsInstance (const RooAbsArg &var) const |
std::string | contentsString () const |
Return comma separated list of contained object names as STL string. More... | |
virtual TObject * | create (const char *newname) const =0 |
TIterator * | createIterator (Bool_t dir=kIterForward) const |
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 | dump () const |
Base contents dumper for debugging purposes. More... | |
Bool_t | equals (const RooAbsCollection &otherColl) const |
Check if this and other collection have identically named contents. More... | |
RooAbsArg * | find (const char *name) const |
Find object with given name in list. More... | |
RooAbsArg * | find (const RooAbsArg &) const |
Find object with given name in list. More... | |
RooAbsArg * | first () const |
RooFIter | fwdIterator () const |
Int_t | getHashTableSize () const |
const char * | GetName () const |
Returns name of object. More... | |
Int_t | getSize () const |
Bool_t | isOwning () const |
RooLinkedListIter | iterator (Bool_t dir=kIterForward) const |
RooAbsCollection & | operator= (const RooAbsCollection &other) |
The assignment operator sets the value of any argument in our set that also appears in the other set. More... | |
Bool_t | overlaps (const RooAbsCollection &otherColl) const |
Check if this and other collection have common entries. More... | |
virtual void | Print (Option_t *options=0) const |
This method must be overridden when a class wants to print itself. More... | |
virtual void | printClassName (std::ostream &os) const |
Return collection class name. 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... | |
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 void | printName (std::ostream &os) const |
Return collection name. More... | |
virtual void | printTitle (std::ostream &os) const |
Return collection title. More... | |
virtual void | printValue (std::ostream &os) const |
Print value of collection, i.e. More... | |
virtual void | RecursiveRemove (TObject *obj) |
If one of the TObject we have a referenced to is deleted, remove the reference. More... | |
void | releaseOwnership () |
virtual Bool_t | remove (const RooAbsArg &var, Bool_t silent=kFALSE, Bool_t matchByNameOnly=kFALSE) |
Remove the specified argument from our list. 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... | |
virtual void | removeAll () |
Remove all arguments from our set, deleting them if we own them. More... | |
virtual Bool_t | replace (const RooAbsArg &var1, const RooAbsArg &var2) |
Replace var1 with var2 and return kTRUE for success. 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... | |
RooAbsCollection * | selectByAttrib (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... | |
RooAbsCollection * | selectByName (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... | |
RooAbsCollection * | selectCommon (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... | |
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... | |
void | setHashTableSize (Int_t i) |
void | setName (const char *name) |
RooAbsCollection * | snapshot (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 | sort (Bool_t ascend=kTRUE) |
void | takeOwnership () |
Public Member Functions inherited from TObject | |
TObject () | |
TObject constructor. More... | |
TObject (const TObject &object) | |
TObject copy ctor. More... | |
virtual | ~TObject () |
TObject destructor. 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... | |
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... | |
ULong_t | CheckedHash () |
Checked and record whether for this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object. 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 TObject * | DrawClone (Option_t *option="") const |
Draw a clone of this object in the current selected pad for instance with: gROOT->SetSelectedPad(gPad) . More... | |
virtual void | Dump () const |
Dump contents of object on stdout. More... | |
virtual void | Error (const char *method, const char *msgfmt,...) const |
Issue error message. 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 void | Fatal (const char *method, const char *msgfmt,...) const |
Issue fatal error message. More... | |
virtual TObject * | FindObject (const char *name) const |
Must be redefined in derived classes. More... | |
virtual TObject * | FindObject (const TObject *obj) const |
Must be redefined in derived classes. More... | |
virtual Option_t * | GetDrawOption () const |
Get option used by the graphics system to draw this object. More... | |
virtual const char * | GetIconName () const |
Returns mime type name of object. More... | |
virtual char * | GetObjectInfo (Int_t px, Int_t py) const |
Returns string containing info about the object at position (px,py). More... | |
virtual Option_t * | GetOption () const |
virtual const char * | GetTitle () const |
Returns title of object. More... | |
virtual UInt_t | GetUniqueID () const |
Return the unique object id. 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... | |
Bool_t | HasInconsistentHash () const |
Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e. More... | |
virtual void | Info (const char *method, const char *msgfmt,...) const |
Issue info message. 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... | |
void | InvertBit (UInt_t f) |
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 | IsFolder () const |
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). More... | |
R__ALWAYS_INLINE Bool_t | IsOnHeap () const |
virtual Bool_t | IsSortable () const |
R__ALWAYS_INLINE Bool_t | IsZombie () const |
virtual void | ls (Option_t *option="") const |
The ls function lists the contents of a class on stdout. 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... | |
virtual Bool_t | Notify () |
This method must be overridden to handle object notification. More... | |
void | Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const |
Use this method to declare a method obsolete. More... | |
void | operator delete (void *ptr) |
Operator delete. More... | |
void | operator delete[] (void *ptr) |
Operator delete []. More... | |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *vp) |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, void *vp) |
TObject & | operator= (const TObject &rhs) |
TObject assignment operator. 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... | |
void | ResetBit (UInt_t f) |
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... | |
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) |
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 | SysError (const char *method, const char *msgfmt,...) const |
Issue system error message. More... | |
R__ALWAYS_INLINE Bool_t | TestBit (UInt_t f) const |
Int_t | TestBits (UInt_t f) const |
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 void | Warning (const char *method, const char *msgfmt,...) const |
Issue warning message. 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... | |
Public Member Functions inherited from RooPrintable | |
RooPrintable () | |
virtual | ~RooPrintable () |
virtual StyleOption | defaultPrintStyle (Option_t *opt) const |
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 | 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 | printTree (std::ostream &os, TString indent="") const |
Interface for tree structure printing of object. More... | |
Protected Member Functions | |
Bool_t | addServerClonesToList (const RooAbsArg &var) |
Add clones of servers of given argument to list. More... | |
void | clearStructureTags () |
Typed structure tag. More... | |
void | makeStructureTag () |
void | makeTypedStructureTag () |
void | safeDeleteList () |
Examine client server dependencies in list and delete contents in safe order: any client is deleted before a server is deleted. More... | |
TNamed * | structureTag () |
TNamed * | typedStructureTag () |
Protected Member Functions inherited from TObject | |
virtual void | DoError (int level, const char *location, const char *fmt, va_list va) const |
Interface to ErrorHandler (protected). More... | |
void | MakeZombie () |
Protected Attributes | |
Bool_t | _allRRV |
RooLinkedList | _list |
TString | _name |
Bool_t | _ownCont |
TNamed * | _structureTag |
TNamed * | _typedStructureTag |
Structure tag. More... | |
Friends | |
class | RooMultiCatIter |
Additional Inherited Members | |
Public Types inherited from TObject | |
enum | { kIsOnHeap = 0x01000000, kNotDeleted = 0x02000000, kZombie = 0x04000000, kInconsistent = 0x08000000, kBitMask = 0x00ffffff } |
enum | { kSingleKey = BIT(0), kOverwrite = BIT(1), kWriteDelete = BIT(2) } |
enum | EDeprecatedStatusBits { kObjInCanvas = BIT(3) } |
enum | EStatusBits { kCanDelete = BIT(0), kMustCleanup = BIT(3), kIsReferenced = BIT(4), kHasUUID = BIT(5), kCannotPick = BIT(6), kNoContextMenu = BIT(8), kInvalidObject = BIT(13) } |
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 TObject | |
static Long_t | GetDtorOnly () |
Return destructor only flag. More... | |
static Bool_t | GetObjectStat () |
Get status of object stat flag. More... | |
static void | SetDtorOnly (void *obj) |
Set destructor only 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... | |
Static Protected Attributes inherited from RooPrintable | |
static Int_t | _nameLength |
#include <RooAbsCollection.h>
RooAbsCollection::RooAbsCollection | ( | ) |
Default constructor.
Definition at line 64 of file RooAbsCollection.cxx.
RooAbsCollection::RooAbsCollection | ( | const char * | name | ) |
Empty collection constructor.
Definition at line 77 of file RooAbsCollection.cxx.
|
virtual |
Destructor.
Definition at line 116 of file RooAbsCollection.cxx.
RooAbsCollection::RooAbsCollection | ( | const RooAbsCollection & | other, |
const char * | name = "" |
||
) |
Copy constructor.
Note that a copy of a collection is always non-owning, even the source collection is owning. To create an owning copy of a collection (owning or not), use the snaphot() method.
Definition at line 92 of file RooAbsCollection.cxx.
Add the specified argument to list.
Returns kTRUE if successful, or else kFALSE if a variable of the same name is already in the list or the list owns its variables (in this case, try addClone() or addOwned() instead).
Reimplemented in RooArgSet, RooSetProxy, and RooListProxy.
Definition at line 451 of file RooAbsCollection.cxx.
|
virtual |
Add a collection of arguments to this collection by calling add() for each element in the source collection.
Reimplemented in RooArgSet, RooSetProxy, and RooListProxy.
Definition at line 473 of file RooAbsCollection.cxx.
Add a clone of the specified argument to list.
Returns a pointer to the clone if successful, or else zero if a variable of the same name is already in the list or the list does not own its variables (in this case, try add() instead.) Calling addClone() on an empty list forces it to take ownership of all its subsequent variables.
Reimplemented in RooArgSet, and RooSetProxy.
Definition at line 425 of file RooAbsCollection.cxx.
|
virtual |
Add a collection of arguments to this collection by calling addOwned() for each element in the source collection.
Reimplemented in RooArgSet, and RooSetProxy.
Definition at line 509 of file RooAbsCollection.cxx.
Add the specified argument to list.
Returns kTRUE if successful, or else kFALSE if a variable of the same name is already in the list. This method can only be called on a list that is flagged as owning all of its contents, or else on an empty list (which will force the list into that mode).
Reimplemented in RooArgSet, RooSetProxy, and RooListProxy.
Definition at line 399 of file RooAbsCollection.cxx.
|
virtual |
Add a collection of arguments to this collection by calling addOwned() for each element in the source collection.
Reimplemented in RooArgSet, RooSetProxy, and RooListProxy.
Definition at line 491 of file RooAbsCollection.cxx.
Add clones of servers of given argument to list.
Definition at line 278 of file RooAbsCollection.cxx.
Bool_t RooAbsCollection::allInRange | ( | const char * | rangeSpec | ) | const |
Return true if all contained object report to have their value inside the specified range.
Definition at line 1180 of file RooAbsCollection.cxx.
void RooAbsCollection::assignFast | ( | const RooAbsCollection & | other, |
Bool_t | setValDirty = kTRUE |
||
) |
Functional equivalent of operator=() but assumes this and other collection have same layout.
Also no attributes are copied
Definition at line 356 of file RooAbsCollection.cxx.
RooAbsCollection & RooAbsCollection::assignValueOnly | ( | 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.
Definition at line 328 of file RooAbsCollection.cxx.
|
inlineprotected |
Typed structure tag.
Definition at line 183 of file RooAbsCollection.h.
|
pure virtual |
Implemented in RooArgSet, and RooArgList.
|
inlinevirtual |
Make a clone of an object using the Streamer facility.
If the object derives from TNamed, this function is called by TNamed::Clone. TNamed::Clone uses the optional argument to set a new name to the newly created object.
If the object class has a DirectoryAutoAdd function, it will be called at the end of the function with the parameter gDirectory. This usually means that the object will be appended to the current ROOT directory.
Reimplemented from TObject.
Definition at line 35 of file RooAbsCollection.h.
Definition at line 83 of file RooAbsCollection.h.
Definition at line 87 of file RooAbsCollection.h.
string RooAbsCollection::contentsString | ( | ) | const |
Return comma separated list of contained object names as STL string.
Definition at line 832 of file RooAbsCollection.cxx.
|
pure virtual |
Implemented in RooArgSet, and RooArgList.
|
inline |
Definition at line 98 of file RooAbsCollection.h.
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.
In verbose mode also add object adress, argument and title
Reimplemented from RooPrintable.
Definition at line 887 of file RooAbsCollection.cxx.
void RooAbsCollection::dump | ( | ) | const |
Base contents dumper for debugging purposes.
Definition at line 971 of file RooAbsCollection.cxx.
Bool_t RooAbsCollection::equals | ( | const RooAbsCollection & | otherColl | ) | const |
Check if this and other collection have identically named contents.
Definition at line 770 of file RooAbsCollection.cxx.
RooAbsArg * RooAbsCollection::find | ( | const char * | name | ) | const |
Find object with given name in list.
A null pointer is returned if no object with the given name is found
Definition at line 811 of file RooAbsCollection.cxx.
Find object with given name in list.
A null pointer is returned if no object with the given name is found
Definition at line 822 of file RooAbsCollection.cxx.
|
inline |
Definition at line 110 of file RooAbsCollection.h.
|
inline |
Definition at line 104 of file RooAbsCollection.h.
|
inline |
Definition at line 57 of file RooAbsCollection.h.
|
inlinevirtual |
Returns name of object.
This default method returns the class name. Classes that give objects a name should override this method.
Reimplemented from TObject.
Definition at line 142 of file RooAbsCollection.h.
|
inline |
Definition at line 106 of file RooAbsCollection.h.
|
inline |
Definition at line 146 of file RooAbsCollection.h.
RooLinkedListIter RooAbsCollection::iterator | ( | Bool_t | dir = kIterForward | ) | const |
Definition at line 129 of file RooAbsCollection.cxx.
|
protected |
Definition at line 1230 of file RooAbsCollection.cxx.
|
protected |
Definition at line 1237 of file RooAbsCollection.cxx.
RooAbsCollection & RooAbsCollection::operator= | ( | const RooAbsCollection & | other | ) |
The assignment operator sets the value of any argument in our set that also appears in the other set.
Definition at line 306 of file RooAbsCollection.cxx.
Bool_t RooAbsCollection::overlaps | ( | const RooAbsCollection & | otherColl | ) | const |
Check if this and other collection have common entries.
Definition at line 792 of file RooAbsCollection.cxx.
This method must be overridden when a class wants to print itself.
Reimplemented from TObject.
Definition at line 115 of file RooAbsCollection.h.
|
virtual |
Return collection class name.
Reimplemented from RooPrintable.
Definition at line 874 of file RooAbsCollection.cxx.
void RooAbsCollection::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.
By default a table with two columns is created: the left column contains the name of each variable, the right column the value.
The following optional named arguments can be used to modify the default behavior
Columns(Int_t ncol) – Fold table into multiple columns, i.e. ncol=3 will result in 3 x 2 = 6 total columns Sibling(const RooAbsCollection& other) – Define sibling list. The sibling list is assumed to have objects with the same name in the same order. If this is not the case warnings will be printed. If a single sibling list is specified, 3 columns will be output: the (common) name, the value of this list and the value in the sibling list. Multiple sibling lists can be specified by repeating the Sibling() command. Format(const char* str) – Classic format string, provided for backward compatibility Format(...) – Formatting arguments, details are given below OutputFile(const char* fname) – Send output to file with given name rather than standard output
The Format(const char* what,...) has the following structure
const char* what – Controls what is shown. "N" adds name, "E" adds error, "A" shows asymmetric error, "U" shows unit, "H" hides the value FixedPrecision(int n) – Controls precision, set fixed number of digits AutoPrecision(int n) – Controls precision. Number of shown digits is calculated from error
Example use: list.printLatex(Columns(2), Format("NEU",AutoPrecision(1),VerbatimName()) ) ;
Definition at line 1009 of file RooAbsCollection.cxx.
void RooAbsCollection::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.
Definition at line 1066 of file RooAbsCollection.cxx.
|
virtual |
Implement multiline printin of collection, one line for each ontained object showing the requested content.
Reimplemented from RooPrintable.
Definition at line 933 of file RooAbsCollection.cxx.
|
virtual |
Return collection name.
Reimplemented from RooPrintable.
Definition at line 854 of file RooAbsCollection.cxx.
|
virtual |
Return collection title.
Reimplemented from RooPrintable.
Definition at line 864 of file RooAbsCollection.cxx.
|
virtual |
Print value of collection, i.e.
a comma separated list of contained object names
Reimplemented from RooPrintable.
Definition at line 906 of file RooAbsCollection.cxx.
If one of the TObject we have a referenced to is deleted, remove the reference.
Reimplemented from TObject.
Definition at line 1245 of file RooAbsCollection.cxx.
|
inline |
Definition at line 155 of file RooAbsCollection.h.
|
virtual |
Remove the specified argument from our list.
Return kFALSE if the specified argument is not found in our list. An exact pointer match is required, not just a match by name. A variable can be removed from a copied list and will be deleted at the same time.
Reimplemented in RooSetProxy, and RooListProxy.
Definition at line 599 of file RooAbsCollection.cxx.
Bool_t RooAbsCollection::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&).
Return kFALSE in case of problems.
Definition at line 627 of file RooAbsCollection.cxx.
|
virtual |
Remove all arguments from our set, deleting them if we own them.
This effectively restores our object to the state it would have just after calling the RooAbsCollection(const char*) constructor.
Reimplemented in RooSetProxy, and RooListProxy.
Definition at line 646 of file RooAbsCollection.cxx.
Replace var1 with var2 and return kTRUE for success.
Fails if this list is a copy of another, if var1 is not already in this set, or if var2 is already in this set. var1 and var2 do not need to have the same name.
Reimplemented in RooSetProxy, and RooListProxy.
Definition at line 551 of file RooAbsCollection.cxx.
Bool_t RooAbsCollection::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.
Fails if this list is a copy of another.
Definition at line 523 of file RooAbsCollection.cxx.
|
protected |
Examine client server dependencies in list and delete contents in safe order: any client is deleted before a server is deleted.
Definition at line 139 of file RooAbsCollection.cxx.
RooAbsCollection * RooAbsCollection::selectByAttrib | ( | const char * | name, |
Bool_t | value | ||
) | const |
Create a subset of the current collection, consisting only of those elements with the specified attribute set.
The caller is responsibe for deleting the returned collection
Definition at line 680 of file RooAbsCollection.cxx.
RooAbsCollection * RooAbsCollection::selectByName | ( | 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.
Definition at line 730 of file RooAbsCollection.cxx.
RooAbsCollection * RooAbsCollection::selectCommon | ( | 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.
The caller is responsible for deleting the returned collection
Definition at line 705 of file RooAbsCollection.cxx.
Set given attribute in each element of the collection by calling each elements setAttribute() function.
Definition at line 663 of file RooAbsCollection.cxx.
Definition at line 53 of file RooAbsCollection.h.
|
inline |
Definition at line 138 of file RooAbsCollection.h.
RooAbsCollection * RooAbsCollection::snapshot | ( | Bool_t | deepCopy = kTRUE | ) | const |
Take a snap shot of current collection contents: An owning collection is returned containing clones of.
If deepCopy is specified, the client-server links between the cloned list elements and the cloned external dependents are reconnected to each other, making the snapshot a completely self-contained entity.
Definition at line 194 of file RooAbsCollection.cxx.
Bool_t RooAbsCollection::snapshot | ( | RooAbsCollection & | output, |
Bool_t | deepCopy = kTRUE |
||
) | const |
Take a snap shot of current collection contents: An owning collection is returned containing clones of.
If deepCopy is specified, the client-server links between the cloned list elements and the cloned external dependents are reconnected to each other, making the snapshot a completely self-contained entity.
Definition at line 232 of file RooAbsCollection.cxx.
Definition at line 158 of file RooAbsCollection.h.
|
inlineprotected |
Definition at line 177 of file RooAbsCollection.h.
|
inline |
Definition at line 156 of file RooAbsCollection.h.
|
inlineprotected |
Definition at line 178 of file RooAbsCollection.h.
|
friend |
Definition at line 164 of file RooAbsCollection.h.
|
protected |
Definition at line 170 of file RooAbsCollection.h.
|
protected |
Definition at line 166 of file RooAbsCollection.h.
|
protected |
Definition at line 169 of file RooAbsCollection.h.
|
protected |
Definition at line 168 of file RooAbsCollection.h.
|
mutableprotected |
Definition at line 180 of file RooAbsCollection.h.
|
mutableprotected |
Structure tag.
Definition at line 181 of file RooAbsCollection.h.