Skip to content
Snippets Groups Projects
Commit dfa5bef1 authored by Marcel R's avatar Marcel R Committed by Pere Mato
Browse files

Implement 'add' functions from RooAbsCollection in RooArgSet.

parent 92c7310f
No related branches found
No related tags found
No related merge requests found
......@@ -83,9 +83,19 @@ public:
virtual TObject* create(const char* newname) const { return new RooArgSet(newname); }
RooArgSet& operator=(const RooArgSet& other) { RooAbsCollection::operator=(other) ; return *this ;}
using RooAbsCollection::add;
using RooAbsCollection::addOwned;
using RooAbsCollection::addClone;
virtual Bool_t add(const RooAbsCollection& col, Bool_t silent=kFALSE) {
// Add all elements in list to collection
return RooAbsCollection::add(col, silent);
}
virtual Bool_t addOwned(const RooAbsCollection& col, Bool_t silent=kFALSE) {
// Add all elements in list as owned components to collection
return RooAbsCollection::addOwned(col, silent);
}
virtual void addClone(const RooAbsCollection& col, Bool_t silent=kFALSE) {
// Add owned clone of all elements of list to collection
RooAbsCollection::addClone(col, silent);
}
virtual Bool_t add(const RooAbsArg& var, Bool_t silent=kFALSE) ;
virtual Bool_t addOwned(RooAbsArg& var, Bool_t silent=kFALSE);
virtual RooAbsArg *addClone(const RooAbsArg& var, Bool_t silent=kFALSE) ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment