42 template<
typename... Args_t>
55 processArgs(arg, std::forward<Args_t>(moreArgsOrName)...);
60 template<
typename... Args_t>
62 :
RooArgList{arg, std::move(arg), std::forward<Args_t>(moreArgsOrName)...} {}
64 template<
typename... Args_t>
65 explicit RooArgList(
double arg, Args_t &&... moreArgsOrName) {
66 processArgs(arg, std::forward<Args_t>(moreArgsOrName)...);
74 template<
typename Iterator_t,
75 typename value_type =
typename std::remove_pointer<typename std::iterator_traits<Iterator_t>::value_type>,
76 typename = std::enable_if<std::is_convertible<const value_type*, const RooAbsArg*>::value> >
79 for (
auto it = beginIt; it != endIt; ++it) {
91 for(
auto const& arg :
vec) {
119 virtual bool readFromStream(std::istream& is,
bool compact,
bool verbose=
false);
124 assert(0 <= idx && idx <
static_cast<Int_t>(
_list.size()));
132 template<
typename... Args_t>
135 int dummy[] = { 0, (
processArg(std::forward<Args_t>(args)), 0) ... };
141 template<
class Arg_t>
155template<
class... Args_t>
157 return {std::forward<Args_t>(args)...};
typedef void(GLAPIENTRYP _GLUfuncptr)(void)
#define ClassDef(name, id)
RooAbsArg is the common abstract base class for objects that represent a value and a "shape" in RooFi...
RooAbsCollection is an abstract container object that can hold multiple RooAbsArg objects.
virtual Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE)
Add the specified argument to list.
static void assert_is_no_temporary(T &&)
RooAbsCollection & operator=(const RooAbsCollection &other)
Assign values from the elements in other to our elements.
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 compact)
Write the contents of the argset in ASCII form to given stream.
virtual bool readFromStream(std::istream &is, bool compact, bool verbose=false)
Read the contents of the argset in ASCII form from given stream.
RooArgList(RooAbsArg const &arg, Args_t &&... moreArgsOrName)
Construct a (non-owning) RooArgList from one or more RooFit objects.
RooArgList(std::vector< RooAbsArgPtrOrDouble > const &vec)
Construct a non-owning RooArgList from a vector of RooAbsArg pointers.
void processArgs(Args_t &&... args)
RooArgList(Iterator_t beginIt, Iterator_t endIt, const char *name="")
Construct from iterators.
RooArgList(RooArgList &&other)
Move constructor.
RooArgList()
Default constructor.
void processArg(Arg_t &&arg)
void processArg(const RooAbsArg &arg)
virtual TObject * clone(const char *newname) const
RooArgList & operator=(const RooArgList &other)
void processArg(const RooAbsArg *arg)
RooAbsArg & operator[](Int_t idx) const
Access element by index.
virtual bool canBeAdded(RooAbsArg const &, bool) const
Determine whether it's possible to add a given RooAbsArg to the collection or not.
RooArgList(double arg, Args_t &&... moreArgsOrName)
void processArg(RooAbsArg *arg)
RooArgList(RooAbsArg &&arg, Args_t &&... moreArgsOrName)
This constructor will provoke a static_assert, because passing a RooAbsArg as r-value reference is no...
virtual TObject * create(const char *newname) const
virtual ~RooArgList()
Destructor.
void processArg(const char *name)
Collection abstract base class.
Mother of all ROOT objects.
RooArgList L(Args_t &&... args)