Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooSetProxy Class Referencefinal

RooSetProxy is the concrete proxy for RooArgSet objects.

A RooSetProxy is the general mechanism to store a RooArgSet with RooAbsArgs in a RooAbsArg.

Creating a RooSetProxy adds all members of the proxied RooArgSet to the proxy owners server list (thus receiving value/shape dirty flags from it) and registers itself with the owning class. The latter allows the owning class to update the pointers of RooArgSet contents to reflect the serverRedirect changes.

Definition at line 23 of file RooSetProxy.h.

Public Member Functions

 RooSetProxy ()
 
 RooSetProxy (const char *name, const char *desc, RooAbsArg *owner, Bool_t defValueServer=kTRUE, Bool_t defShapeServer=kFALSE)
 Construct proxy with given name and description, with given owner The default value and shape dirty propagation of the set contents to the set owner is controlled by flags defValueServer and defShapeServer.
 
 RooSetProxy (const char *name, RooAbsArg *owner, const RooSetProxy &other)
 Copy constructor.
 
virtual ~RooSetProxy ()
 Destructor.
 
virtual Bool_t add (const RooAbsArg &var, Bool_t silent=kFALSE)
 Add the specified argument to list.
 
virtual Bool_t add (const RooAbsArg &var, Bool_t silent=kFALSE) override
 Overloaded RooArgSet::add() method inserts 'var' into set and registers 'var' as server to owner with default value and shape dirty flag propagation.
 
virtual Bool_t add (const RooAbsArg &var, Bool_t valueServer, Bool_t shapeServer, Bool_t silent)
 Overloaded RooArgSet::add() method insert object into set and registers object as server to owner with given value and shape dirty flag propagation requests.
 
bool add (const RooAbsCollection &list, bool silent=kFALSE)
 Add a collection of arguments to this collection by calling add() for each element in the source collection.
 
template<typename Iterator_t , typename value_type = typename std::remove_pointer<typename std::iterator_traits<Iterator_t>::value_type>, typename = std::enable_if<std::is_convertible<const value_type*, const RooAbsArg*>::value>>
bool add (Iterator_t beginIt, Iterator_t endIt, bool silent=false)
 
virtual RooAbsArgaddClone (const RooAbsArg &var, Bool_t silent=kFALSE)
 Add a clone of the specified argument to list.
 
virtual RooAbsArgaddClone (const RooAbsArg &var, Bool_t silent=kFALSE) override
 Overloaded RooArgSet::addClone() method insert clone of object into owning set and registers cloned object as server to owner with default value and shape dirty flag propagation.
 
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.
 
virtual bool addOwned (const RooAbsCollection &list, bool silent=false)
 for each element in the source collection.
 
virtual Bool_t addOwned (RooAbsArg &var, Bool_t silent=kFALSE)
 Add an argument and transfer the ownership to the collection.
 
virtual Bool_t addOwned (RooAbsArg &var, Bool_t silent=kFALSE) override
 Overloaded RooArgSet::addOwned() method insert object into owning set and registers object as server to owner with default value and shape dirty flag propagation.
 
bool addOwned (RooAbsCollection &&list, bool silent=false)
 Add a collection of arguments to this collection by calling addOwned() for each element in the source collection.
 
bool addOwned (std::unique_ptr< RooAbsArg > var, bool silent=false)
 Add an argument and transfer the ownership to the collection from a std::unique_ptr.
 
virtual const char * name () const override
 
void operator delete (void *ptr)
 
voidoperator new (size_t bytes)
 
RooSetProxyoperator= (const RooArgSet &other)
 Assign values of arguments on other set to arguments in this set.
 
virtual void print (std::ostream &os, Bool_t addContents=kFALSE) const override
 Printing name of proxy on ostream.
 
virtual Bool_t remove (const RooAbsArg &var, Bool_t silent=kFALSE, Bool_t matchByNameOnly=kFALSE) override
 Remove object 'var' from set and deregister 'var' as server to owner.
 
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&).
 
virtual void removeAll () override
 Remove all argument inset using remove(const RooAbsArg&).
 
virtual Bool_t replace (const RooAbsArg &var1, const RooAbsArg &var2) override
 Replace object 'var1' in set with 'var2'.
 
- Public Member Functions inherited from RooArgSet
 RooArgSet ()
 Default constructor.
 
 RooArgSet (const char *name)
 Empty set constructor.
 
template<typename... Args_t>
 RooArgSet (const RooAbsArg &arg, Args_t &&... moreArgsOrName)
 Construct a (non-owning) RooArgSet from one or more RooFit objects.
 
 RooArgSet (const RooAbsCollection &coll)
 Constructor from a RooArgList.
 
 RooArgSet (const RooAbsCollection &collection, const RooAbsArg *var1)
 Constructor from a RooArgSet / RooArgList and a pointer to another RooFit object.
 
 RooArgSet (const RooArgSet &other, const char *name="")
 Copy constructor.
 
 RooArgSet (const RooArgSet &set1, const RooArgSet &set2, const char *name="")
 Construct a set from two existing sets.
 
 RooArgSet (const TCollection &tcoll, const char *name="")
 Constructor from a root TCollection.
 
template<typename... Args_t>
 RooArgSet (double arg, Args_t &&... moreArgsOrName)
 
template<typename Iterator_t , typename value_type = typename std::remove_pointer<typename std::iterator_traits<Iterator_t>::value_type>::type, typename = std::enable_if<std::is_convertible<const value_type*, const RooAbsArg*>::value>>
 RooArgSet (Iterator_t beginIt, Iterator_t endIt, const char *name="")
 Construct a (non-owning) RooArgSet from iterators.
 
template<typename... Args_t>
 RooArgSet (RooAbsArg &&arg, Args_t &&... moreArgsOrName)
 This constructor will provoke a static_assert, because passing a RooAbsArg as r-value reference is not allowed.
 
 RooArgSet (RooArgSet &&other)
 Move constructor.
 
 RooArgSet (std::vector< RooAbsArgPtrOrDouble > const &vec)
 Construct a non-owning RooArgSet from a vector of RooAbsArg pointers.
 
 ~RooArgSet () override
 Destructor.
 
TObjectclone (const char *newname) const override
 
Bool_t containsInstance (const RooAbsArg &var) const override
 Check if this exact instance is in this collection.
 
TObjectcreate (const char *newname) const override
 
Bool_t isInRange (const char *rangeSpec)
 
void operator delete (void *ptr)
 
voidoperator new (size_t bytes)
 
voidoperator new (size_t bytes, void *ptr) noexcept
 
RooArgSetoperator= (const RooArgSet &other)
 
RooAbsArgoperator[] (const TString &str) const
 Get reference to an element using its name.
 
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.
 
virtual bool readFromStream (std::istream &is, bool compact, bool verbose=false)
 Shortcut for readFromStream(std::istream&, Bool_t, const char*, const char*, Bool_t), setting flagReadAtt and section to 0.
 
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.
 
RooArgSetsnapshot (bool deepCopy=true) const
 Use RooAbsCollection::snapshot(), but return as RooArgSet.
 
Bool_t snapshot (RooAbsCollection &output, Bool_t deepCopy=kTRUE) const
 Take a snap shot of current collection contents.
 
RooFit::UniqueId< RooArgSet > const & uniqueId () const
 Returns a unique ID that is different for every instantiated RooArgSet.
 
void writeToFile (const char *fileName) const
 Write contents of the argset to specified file.
 
virtual void writeToStream (std::ostream &os, bool compact, const char *section=0) const
 Write the contents of the argset in ASCII form to given stream.
 
- Public Member Functions inherited from RooAbsCollection
 RooAbsCollection ()
 Default constructor.
 
 RooAbsCollection (const char *name)
 Empty collection constructor.
 
 RooAbsCollection (const RooAbsCollection &other, const char *name="")
 Copy constructor.
 
 RooAbsCollection (RooAbsCollection &&other)
 Move constructor.
 
virtual ~RooAbsCollection ()
 Destructor.
 
bool add (const RooAbsCollection &list, bool silent=kFALSE)
 Add a collection of arguments to this collection by calling add() for each element in the source collection.
 
template<typename Iterator_t , typename value_type = typename std::remove_pointer<typename std::iterator_traits<Iterator_t>::value_type>, typename = std::enable_if<std::is_convertible<const value_type*, const RooAbsArg*>::value>>
bool add (Iterator_t beginIt, Iterator_t endIt, bool silent=false)
 
bool addOwned (RooAbsCollection &&list, bool silent=false)
 Add a collection of arguments to this collection by calling addOwned() for each element in the source collection.
 
bool addOwned (std::unique_ptr< RooAbsArg > var, bool silent=false)
 Add an argument and transfer the ownership to the collection from a std::unique_ptr.
 
Bool_t allInRange (const char *rangeSpec) const
 Return true if all contained object report to have their value inside the specified range.
 
void assign (const RooAbsCollection &other) const
 Sets the value, cache and constant attribute of any argument in our set that also appears in the other set.
 
void assignFast (const RooAbsCollection &other, bool setValDirty=true) const
 Functional equivalent of assign() but assumes this and other collection have same layout.
 
RooAbsCollectionassignValueOnly (const RooAbsCollection &other, bool forceIfSizeOne=false)
 Sets the value of any argument in our set that also appears in the other set.
 
const_iterator begin () const
 
void clear ()
 Clear contents. If the collection is owning, it will also delete the contents.
 
virtual TObjectClone (const char *newname=0) const
 Make a clone of an object using the Streamer facility.
 
Bool_t contains (const RooAbsArg &var) const
 Check if collection contains an argument with the same name as var.
 
std::string contentsString () const
 Return comma separated list of contained object names as STL string.
 
TIteratorcreateIterator (Bool_t dir=kIterForward) const
 TIterator-style iteration over contained elements.
 
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.
 
void dump () const
 Base contents dumper for debugging purposes.
 
bool empty () const
 
const_iterator end () const
 
Bool_t equals (const RooAbsCollection &otherColl) const
 Check if this and other collection have identically-named contents.
 
RooAbsArgfind (const char *name) const
 Find object with given name in list.
 
RooAbsArgfind (const RooAbsArg &) const
 Find object with given name in list.
 
TObjectFindObject (const char *name) const
 Find object by name in the collection.
 
TObjectFindObject (const TObject *obj) const
 Find object in the collection, Note: matching by object name, like the find() method.
 
RooAbsArgfirst () const
 
RooFIter fwdIterator () const
 One-time forward iterator.
 
Storage_t const & get () const
 Const access to the underlying stl container.
 
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.
 
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.
 
Int_t getHashTableSize () const
 Query the size at which the collection will automatically start using an extra lookup table instead of performing a linear search.
 
const char * GetName () const
 Returns name of object.
 
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.
 
Int_t getSize () const
 
const char * getStringValue (const char *name, const char *defVal="", Bool_t verbose=kFALSE) const
 Get string value of a RooStringVar stored in set with given name.
 
bool hasSameLayout (const RooAbsCollection &other) const
 Check that all entries where the collections overlap have the same name.
 
Int_t index (const char *name) const
 Return index of item with given name, or -1 in case it's not in the collection.
 
Int_t index (const RooAbsArg &arg) const
 Returns index of given arg, or -1 if arg is not in the collection.
 
Int_t index (const RooAbsArg *arg) const
 Returns index of given arg, or -1 if arg is not in the collection.
 
Bool_t isOwning () const
 
RooLinkedListIter iterator (Bool_t dir=kIterForward) const
 TIterator-style iteration over contained elements.
 
RooAbsCollectionoperator= (const RooAbsCollection &other)
 Assign values from the elements in other to our elements.
 
RooAbsArgoperator[] (Storage_t::size_type i) const
 
bool overlaps (const RooAbsCollection &otherColl) const
 Check if this and other collection have common entries.
 
template<typename Iterator_t , typename value_type = typename std::remove_pointer<typename std::iterator_traits<Iterator_t>::value_type>, typename = std::enable_if<std::is_convertible<const value_type*, const RooAbsArg*>::value>>
bool overlaps (Iterator_t otherCollBegin, Iterator_t otherCollEnd) const
 
virtual void Print (Option_t *options=0) const
 This method must be overridden when a class wants to print itself.
 
virtual void printClassName (std::ostream &os) const
 Return collection class name.
 
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.
 
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.
 
virtual void printMultiline (std::ostream &os, Int_t contents, Bool_t verbose=kFALSE, TString indent="") const
 Implement multiline printing of collection, one line for each contained object showing the requested content.
 
virtual void printName (std::ostream &os) const
 Return collection name.
 
virtual void printTitle (std::ostream &os) const
 Return collection title.
 
virtual void printValue (std::ostream &os) const
 Print value of collection, i.e.
 
Storage_t::const_reverse_iterator rbegin () const
 
virtual void RecursiveRemove (TObject *obj)
 If one of the TObject we have a referenced to is deleted, remove the reference.
 
void releaseOwnership ()
 
Bool_t remove (const RooAbsCollection &list, Bool_t silent=kFALSE, Bool_t matchByNameOnly=kFALSE)
 Remove each argument in the input list from our list.
 
template<class forwardIt >
void remove (forwardIt rangeBegin, forwardIt rangeEnd, Bool_t silent=kFALSE, Bool_t matchByNameOnly=kFALSE)
 
Storage_t::const_reverse_iterator rend () const
 
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.
 
void reserve (Storage_t::size_type count)
 
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.
 
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.
 
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.
 
bool selectCommon (const RooAbsCollection &refColl, RooAbsCollection &outColl) const
 Create a subset of the current collection, consisting only of those elements that are contained as well in the given reference collection.
 
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.
 
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.
 
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.
 
void setHashTableSize (Int_t number)
 Set the size at which the collection will automatically start using an extra lookup table instead of performing a linear search.
 
void setName (const char *name)
 
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.
 
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.
 
Storage_t::size_type size () const
 
RooAbsCollectionsnapshot (Bool_t deepCopy=kTRUE) const
 Take a snap shot of current collection contents.
 
Bool_t snapshot (RooAbsCollection &output, Bool_t deepCopy=kTRUE) const
 Take a snap shot of current collection contents: A collection that owns its elements is returned containing clones of.
 
void sort (Bool_t reverse=false)
 Sort collection using std::sort and name comparison.
 
void sortTopologically ()
 Sort collection topologically: the servers of any RooAbsArg will be before that RooAbsArg in the collection.
 
void takeOwnership ()
 
void useHashMapForFind (bool flag) const
 
- Public Member Functions inherited from TObject
 TObject ()
 TObject constructor.
 
 TObject (const TObject &object)
 TObject copy ctor.
 
virtual ~TObject ()
 TObject destructor.
 
void AbstractMethod (const char *method) const
 Use this method to implement an "abstract" method that you don't want to leave purely abstract.
 
virtual void AppendPad (Option_t *option="")
 Append graphics object to current pad.
 
virtual void Browse (TBrowser *b)
 Browse object. May be overridden for another default action.
 
ULong_t CheckedHash ()
 Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object.
 
virtual const char * ClassName () const
 Returns name of class to which the object belongs.
 
virtual void Clear (Option_t *="")
 
virtual Int_t Compare (const TObject *obj) const
 Compare abstract method.
 
virtual void Copy (TObject &object) const
 Copy this to obj.
 
virtual void Delete (Option_t *option="")
 Delete this object.
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 Computes distance from point (px,py) to the object.
 
virtual void Draw (Option_t *option="")
 Default Draw method for all objects.
 
virtual void DrawClass () const
 Draw class inheritance tree of the class to which this object belongs.
 
virtual TObjectDrawClone (Option_t *option="") const
 Draw a clone of this object in the current selected pad for instance with: gROOT->SetSelectedPad(gPad).
 
virtual void Dump () const
 Dump contents of object on stdout.
 
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message.
 
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.
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=0)
 Execute method on this object with parameters stored in the TObjArray.
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 Execute action corresponding to an event at (px,py).
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message.
 
virtual Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object.
 
virtual const char * GetIconName () const
 Returns mime type name of object.
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py).
 
virtual Option_tGetOption () const
 
virtual const char * GetTitle () const
 Returns title of object.
 
virtual UInt_t GetUniqueID () const
 Return the unique object id.
 
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out.
 
virtual ULong_t Hash () const
 Return hash value for this object.
 
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.
 
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message.
 
virtual Bool_t InheritsFrom (const char *classname) const
 Returns kTRUE if object inherits from class "classname".
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 Returns kTRUE if object inherits from TClass cl.
 
virtual void Inspect () const
 Dump contents of this object in a graphics canvas.
 
void InvertBit (UInt_t f)
 
Bool_t IsDestructed () const
 IsDestructed.
 
virtual Bool_t IsEqual (const TObject *obj) const
 Default equal comparison (objects are equal if they have the same address in memory).
 
virtual Bool_t IsFolder () const
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
 
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.
 
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).
 
virtual Bool_t Notify ()
 This method must be overridden to handle object notification.
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete.
 
void operator delete (void *ptr)
 Operator delete.
 
void operator delete[] (void *ptr)
 Operator delete [].
 
voidoperator new (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz)
 
voidoperator new[] (size_t sz, void *vp)
 
TObjectoperator= (const TObject &rhs)
 TObject assignment operator.
 
virtual void Paint (Option_t *option="")
 This method must be overridden if a class wants to paint itself.
 
virtual void Pop ()
 Pop on object drawn in a pad to the top of the display list.
 
virtual Int_t Read (const char *name)
 Read contents of object with specified name from the current directory.
 
void ResetBit (UInt_t f)
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 Save this object in the file specified by filename.
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 Save a primitive as a C++ statement(s) on output stream "out".
 
void SetBit (UInt_t f)
 
void SetBit (UInt_t f, Bool_t set)
 Set or unset the user status bits as specified in f.
 
virtual void SetDrawOption (Option_t *option="")
 Set drawing option for object.
 
virtual void SetUniqueID (UInt_t uid)
 Set the unique object id.
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message.
 
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.
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message.
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0)
 Write this object to the current directory.
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const
 Write this object to the current directory.
 
- 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.
 
virtual void printArgs (std::ostream &os) const
 Interface for printing of object arguments.
 
virtual void printExtras (std::ostream &os) const
 Interface to print extras of object.
 
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'.
 
virtual void printTree (std::ostream &os, TString indent="") const
 Interface for tree structure printing of object.
 
- Public Member Functions inherited from RooAbsProxy
 RooAbsProxy ()
 Constructor.
 
 RooAbsProxy (const char *name, const RooAbsProxy &other)
 Copy constructor.
 
virtual ~RooAbsProxy ()
 
const RooArgSetnset () const
 

Protected Member Functions

virtual Bool_t changePointer (const RooAbsCollection &newServerSet, Bool_t nameChange=kFALSE, Bool_t factoryInitMode=kFALSE) override
 Process server change operation on owner.
 
- Protected Member Functions inherited from RooArgSet
virtual bool canBeAdded (const RooAbsArg &arg, bool silent) const override
 Determine whether it's possible to add a given RooAbsArg to the collection or not.
 
Bool_t checkForDup (const RooAbsArg &arg, Bool_t silent) const
 Check if element with var's name is already in set.
 
- Protected Member Functions inherited from RooAbsCollection
Bool_t addServerClonesToList (const RooAbsArg &var)
 Add clones of servers of given argument to end of list.
 
void clearStructureTags ()
 Typed structure tag.
 
void deleteList ()
 Delete contents of the list.
 
void makeStructureTag ()
 
void makeTypedStructureTag ()
 
TNamedstructureTag ()
 
TNamedtypedStructureTag ()
 
- 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).
 
void MakeZombie ()
 
- Protected Member Functions inherited from RooAbsProxy
virtual void changeNormSet (const RooArgSet *newNormSet)
 Destructor.
 

Protected Attributes

Bool_t _defShapeServer
 
Bool_t _defValueServer
 
RooAbsArg_owner
 
- Protected Attributes inherited from RooAbsCollection
Bool_t _allRRV
 
Storage_t _list
 
TString _name
 
Bool_t _ownCont
 
TNamed_structureTag {nullptr}
 
TNamed_typedStructureTag {nullptr}
 Structure tag.
 
- Protected Attributes inherited from RooAbsProxy
RooArgSet_nset = nullptr
 ! Normalization set to be used for evaluation of RooAbsPdf contents
 

Additional Inherited Members

- Public Types inherited from RooAbsCollection
using const_iterator = Storage_t::const_iterator
 
using Storage_t = std::vector< RooAbsArg * >
 
- 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 RooArgSet
static void cleanup ()
 
- Static Public Member Functions inherited from TObject
static Longptr_t GetDtorOnly ()
 Return destructor only flag.
 
static Bool_t GetObjectStat ()
 Get status of object stat flag.
 
static void SetDtorOnly (void *obj)
 Set destructor only flag.
 
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable.
 
- 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().
 
static void nameFieldLength (Int_t newLen)
 Set length of field reserved from printing name of RooAbsArgs in multi-line collection printing to given amount.
 
- Protected Types inherited from RooAbsCollection
using LegacyIterator_t = TIteratorToSTLInterface< Storage_t >
 
- Protected Types inherited from TObject
enum  { kOnlyPrepStep = BIT(3) }
 
- Static Protected Member Functions inherited from RooAbsCollection
template<class T >
static void assert_is_no_temporary (T &&)
 
- Static Protected Attributes inherited from RooPrintable
static Int_t _nameLength
 

#include <RooSetProxy.h>

Inheritance diagram for RooSetProxy:
[legend]

Constructor & Destructor Documentation

◆ RooSetProxy() [1/3]

RooSetProxy::RooSetProxy ( )
inline

Definition at line 32 of file RooSetProxy.h.

◆ RooSetProxy() [2/3]

RooSetProxy::RooSetProxy ( const char *  name,
const char *  desc,
RooAbsArg owner,
Bool_t  defValueServer = kTRUE,
Bool_t  defShapeServer = kFALSE 
)

Construct proxy with given name and description, with given owner The default value and shape dirty propagation of the set contents to the set owner is controlled by flags defValueServer and defShapeServer.

Definition at line 77 of file RooSetProxy.cxx.

◆ RooSetProxy() [3/3]

RooSetProxy::RooSetProxy ( const char *  name,
RooAbsArg owner,
const RooSetProxy other 
)

Copy constructor.

Definition at line 92 of file RooSetProxy.cxx.

◆ ~RooSetProxy()

RooSetProxy::~RooSetProxy ( )
virtual

Destructor.

Definition at line 105 of file RooSetProxy.cxx.

Member Function Documentation

◆ add() [1/5]

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

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 from RooAbsCollection.

Definition at line 112 of file RooAbsCollection.cxx.

◆ add() [2/5]

Bool_t RooSetProxy::add ( const RooAbsArg var,
Bool_t  silent = kFALSE 
)
overridevirtual

Overloaded RooArgSet::add() method inserts 'var' into set and registers 'var' as server to owner with default value and shape dirty flag propagation.

Reimplemented from RooAbsCollection.

Definition at line 165 of file RooSetProxy.cxx.

◆ add() [3/5]

Bool_t RooSetProxy::add ( const RooAbsArg var,
Bool_t  valueServer,
Bool_t  shapeServer,
Bool_t  silent 
)
virtual

Overloaded RooArgSet::add() method insert object into set and registers object as server to owner with given value and shape dirty flag propagation requests.

Definition at line 117 of file RooSetProxy.cxx.

◆ add() [4/5]

bool RooAbsCollection::add ( const RooAbsCollection list,
bool  silent = kFALSE 
)
inline

Add a collection of arguments to this collection by calling add() for each element in the source collection.

Definition at line 134 of file RooAbsCollection.h.

◆ add() [5/5]

template<typename Iterator_t , typename value_type = typename std::remove_pointer<typename std::iterator_traits<Iterator_t>::value_type>, typename = std::enable_if<std::is_convertible<const value_type*, const RooAbsArg*>::value>>
bool RooAbsCollection::add ( Iterator_t  beginIt,
Iterator_t  endIt,
bool  silent = false 
)
inline

Definition at line 123 of file RooAbsCollection.h.

◆ addClone() [1/3]

RooAbsCollection::addClone ( const RooAbsArg var,
Bool_t  silent = kFALSE 
)
virtual

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.

PyROOT

The RooAbsCollection::addClone() function is pythonized with the command argument pythonization. The keywords must correspond to the CmdArgs of the function.

Reimplemented from RooAbsCollection.

Definition at line 115 of file RooAbsCollection.cxx.

◆ addClone() [2/3]

RooAbsArg * RooSetProxy::addClone ( const RooAbsArg var,
Bool_t  silent = kFALSE 
)
overridevirtual

Overloaded RooArgSet::addClone() method insert clone of object into owning set and registers cloned object as server to owner with default value and shape dirty flag propagation.

Reimplemented from RooAbsCollection.

Definition at line 149 of file RooSetProxy.cxx.

◆ addClone() [3/3]

void RooAbsCollection::addClone ( const RooAbsCollection list,
Bool_t  silent = kFALSE 
)
virtual

Add a collection of arguments to this collection by calling addOwned() for each element in the source collection.

Reimplemented from RooAbsCollection.

Definition at line 139 of file RooAbsCollection.cxx.

◆ addOwned() [1/5]

bool RooAbsCollection::addOwned ( const RooAbsCollection list,
bool  silent = false 
)
virtual

for each element in the source collection.

The input list can't be an owning collection itself, otherwise the arguments would be owned by two collections.

If you want to transfer arguments from one owning collection to another, you have two options:

  1. std::move the input collection and use RooAbsCollection::addOwned(RooAbsCollection&&, bool) (preferred)
  2. release the ownership of the input collection first, using RooAbsCollection::releaseOwnership()

Reimplemented from RooAbsCollection.

Definition at line 137 of file RooAbsCollection.cxx.

◆ addOwned() [2/5]

RooAbsCollection::addOwned ( RooAbsArg var,
Bool_t  silent = kFALSE 
)
virtual

Add an argument and transfer the ownership to the collection.

Returns true if successful, or false if the argument could not be added to the collection (e.g. in the RooArgSet case when an argument with 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).

If the argument you want to add is owned by a std::unique_ptr, you should prefer RooAbsCollection::addOwned(std::unique_ptr<RooAbsArg>, bool).

PyROOT

The RooAbsCollection::addOwned() function is pythonized with the command argument pythonization. The keywords must correspond to the CmdArgs of the function.

Reimplemented from RooAbsCollection.

Definition at line 113 of file RooAbsCollection.cxx.

◆ addOwned() [3/5]

Bool_t RooSetProxy::addOwned ( RooAbsArg var,
Bool_t  silent = kFALSE 
)
overridevirtual

Overloaded RooArgSet::addOwned() method insert object into owning set and registers object as server to owner with default value and shape dirty flag propagation.

Reimplemented from RooAbsCollection.

Definition at line 133 of file RooSetProxy.cxx.

◆ addOwned() [4/5]

bool RooAbsCollection::addOwned ( RooAbsCollection &&  list,
bool  silent = false 
)

Add a collection of arguments to this collection by calling addOwned() for each element in the source collection.

Unlike RooAbsCollection::addOwned(const RooAbsCollection&, bool), this function also accepts owning source collections because their content will be moved out.

Definition at line 138 of file RooAbsCollection.cxx.

◆ addOwned() [5/5]

bool RooAbsCollection::addOwned ( std::unique_ptr< RooAbsArg var,
bool  silent = false 
)

Add an argument and transfer the ownership to the collection from a std::unique_ptr.

Always returns true. If the argument can not be added to the collection (e.g. in the RooArgSet case when an argument with the same name is already in the list), a std::runtime_exception will be thrown, as nobody is owning the argument anymore. 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).

If you want to pass an argument that is not owned by a std::unique_ptr, you can use RooAbsCollection::addOwned(RooAbsArg&, bool).

Definition at line 114 of file RooAbsCollection.cxx.

◆ changePointer()

Bool_t RooSetProxy::changePointer ( const RooAbsCollection newServerList,
Bool_t  nameChange = kFALSE,
Bool_t  factoryInitMode = kFALSE 
)
overrideprotectedvirtual

Process server change operation on owner.

Replace elements in set with equally named objects in 'newServerList'

Implements RooAbsProxy.

Definition at line 264 of file RooSetProxy.cxx.

◆ name()

virtual const char * RooSetProxy::name ( ) const
inlineoverridevirtual

Reimplemented from RooAbsProxy.

Definition at line 42 of file RooSetProxy.h.

◆ operator delete()

void RooSetProxy::operator delete ( void ptr)

◆ operator new()

void * RooSetProxy::operator new ( size_t  bytes)

◆ operator=()

RooSetProxy & RooSetProxy::operator= ( const RooArgSet other)

Assign values of arguments on other set to arguments in this set.

Definition at line 251 of file RooSetProxy.cxx.

◆ print()

void RooSetProxy::print ( std::ostream &  os,
Bool_t  addContents = kFALSE 
) const
overridevirtual

Printing name of proxy on ostream.

If addContents is true also print names of objects in set

Reimplemented from RooAbsProxy.

Definition at line 292 of file RooSetProxy.cxx.

◆ remove() [1/2]

Bool_t RooSetProxy::remove ( const RooAbsArg var,
Bool_t  silent = kFALSE,
Bool_t  matchByNameOnly = kFALSE 
)
overridevirtual

Remove object 'var' from set and deregister 'var' as server to owner.

Reimplemented from RooAbsCollection.

Definition at line 193 of file RooSetProxy.cxx.

◆ remove() [2/2]

Bool_t RooSetProxy::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&).

and remove each argument as server to owner

Definition at line 208 of file RooSetProxy.cxx.

◆ removeAll()

void RooSetProxy::removeAll ( )
overridevirtual

Remove all argument inset using remove(const RooAbsArg&).

and remove each argument as server to owner

Reimplemented from RooAbsCollection.

Definition at line 229 of file RooSetProxy.cxx.

◆ replace()

Bool_t RooSetProxy::replace ( const RooAbsArg var1,
const RooAbsArg var2 
)
overridevirtual

Replace object 'var1' in set with 'var2'.

Deregister var1 as server from owner and register var2 as server to owner with default value and shape dirty propagation flags

Reimplemented from RooAbsCollection.

Definition at line 177 of file RooSetProxy.cxx.

Member Data Documentation

◆ _defShapeServer

Bool_t RooSetProxy::_defShapeServer
protected

Definition at line 68 of file RooSetProxy.h.

◆ _defValueServer

Bool_t RooSetProxy::_defValueServer
protected

Definition at line 67 of file RooSetProxy.h.

◆ _owner

RooAbsArg* RooSetProxy::_owner
protected

Definition at line 66 of file RooSetProxy.h.

Libraries for RooSetProxy:

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