Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Implement 'add' functions from RooAbsCollection in RooArgSet.
  • Loading branch information
riga authored Jan 21, 2017
commit 6be4b9d5795a6c96fc1a81ef276e9e9c3daa78ab
16 changes: 13 additions & 3 deletions roofit/roofitcore/inc/RooArgSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,19 @@ class RooArgSet : public RooAbsCollection {
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) ;
Expand Down