74 auto item = std::find(
_list.begin(),
_list.end(), arg);
75 return item !=
_list.end() ? item -
_list.begin() : -1;
80 const std::string theName(
name);
82 return elm->GetName() == theName;
84 return item !=
_list.end() ? item -
_list.begin() : -1;
#define ClassDef(name, id)
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
RooAbsCollection is an abstract container object that can hold multiple RooAbsArg objects.
RooAbsCollection & operator=(const RooAbsCollection &other)
The assignment operator sets the value of any argument in our set that also appears in the other set.
RooArgList is a container object that can hold multiple RooAbsArg objects.
RooAbsArg * at(Int_t idx) const
Return object at given index, or nullptr if index is out of range.
virtual void writeToStream(std::ostream &os, Bool_t compact)
Write the contents of the argset in ASCII form to given stream.
Int_t index(const char *name) const
Returns index of arg with given name, or -1 if arg is not in list.
RooArgList()
Default constructor.
virtual TObject * clone(const char *newname) const
RooArgList & operator=(const RooArgList &other)
RooAbsArg & operator[](Int_t idx) const
Array operator.
Int_t index(const RooAbsArg *arg) const
Returns index of given arg, or -1 if arg is not in list.
virtual TObject * create(const char *newname) const
virtual Bool_t readFromStream(std::istream &is, Bool_t compact, Bool_t verbose=kFALSE)
Read the contents of the argset in ASCII form from given stream.
virtual ~RooArgList()
Destructor.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Collection abstract base class.
Mother of all ROOT objects.