43 template<
typename... Args_t>
56 processArgs(arg, std::forward<Args_t>(moreArgsOrName)...);
61 template<
typename... Args_t>
63 :
RooArgSet{arg, std::move(arg), std::forward<Args_t>(moreArgsOrName)...} {}
65 template<
typename... Args_t>
66 explicit RooArgSet(
double arg, Args_t &&... moreArgsOrName) {
67 processArgs(arg, std::forward<Args_t>(moreArgsOrName)...);
75 template<
typename Iterator_t,
76 typename value_type =
typename std::remove_pointer<typename std::iterator_traits<Iterator_t>::value_type>
::type,
77 typename = std::enable_if<std::is_convertible<const value_type*, const RooAbsArg*>::value> >
80 for (
auto it = beginIt; it != endIt; ++it) {
92 for(
auto const& arg :
vec) {
103 const char *
name=
"");
115 using RooAbsCollection::operator[];
121 virtual bool readFromStream(std::istream& is,
bool compact,
bool verbose=
false) {
125 bool readFromStream(std::istream& is,
bool compact,
const char* flagReadAtt,
const char* section,
bool verbose=
false) ;
126 virtual void writeToStream(std::ostream& os,
bool compact,
const char* section=
nullptr)
const;
128 bool readFromFile(
const char* fileName,
const char* flagReadAtt=
nullptr,
const char* section=
nullptr,
bool verbose=
false) ;
133 return find(var) == &var;
166 template<
typename... Args_t>
169 int dummy[] = { 0, (
processArg(std::forward<Args_t>(args)), 0) ... };
175 template<
class Arg_t>
194template<
class... Args_t>
196 return {std::forward<Args_t>(args)...};
#define ClassDefOverride(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
Common abstract base class for objects that represent a value and a "shape" in RooFit.
Abstract container object that can hold multiple RooAbsArg objects.
RooAbsCollection * snapshot(bool deepCopy=true) const
Take a snap shot of current collection contents.
const char * GetName() const override
Returns name of object.
virtual bool add(const RooAbsArg &var, bool silent=false)
Add the specified argument to list.
static void assert_is_no_temporary(T &&)
RooAbsCollection * selectByName(const char *nameList, bool verbose=false) const
Create a subset of the current collection, consisting only of those elements with names matching the ...
bool selectCommon(const RooAbsCollection &refColl, RooAbsCollection &outColl) const
Create a subset of the current collection, consisting only of those elements that are contained as we...
RooAbsCollection & operator=(const RooAbsCollection &other)
Assign values from the elements in other to our elements.
RooAbsArg * find(const char *name) const
Find object with given name in list.
RooArgList is a container object that can hold multiple RooAbsArg objects.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
bool isInRange(const char *rangeSpec)
void processArg(RooAbsCollection &&coll)
TObject * clone(const char *newname) const override
RooArgSet & operator=(const RooArgSet &other)
bool checkForDup(const RooAbsArg &arg, bool silent) const
Check if element with var's name is already in set.
RooArgSet(RooAbsArg &&arg, Args_t &&... moreArgsOrName)
This constructor will provoke a static_assert, because passing a RooAbsArg as r-value reference is no...
RooArgSet * snapshot(bool deepCopy=true) const
Use RooAbsCollection::snapshot(), but return as RooArgSet.
void processArg(Arg_t &&arg)
RooArgSet()
Default constructor.
RooArgSet(std::vector< RooAbsArgPtrOrDouble > const &vec)
Construct a non-owning RooArgSet from a vector of RooAbsArg pointers.
~RooArgSet() override
Destructor.
bool containsInstance(const RooAbsArg &var) const override
Check if this exact instance is in this collection.
void processArg(const char *name)
RooArgSet(RooArgSet &&other)
Move constructor.
bool canBeAdded(const RooAbsArg &arg, bool silent) const override
Determine whether it's possible to add a given RooAbsArg to the collection or not.
void writeToFile(const char *fileName) const
Write contents of the argset to specified file.
TObject * create(const char *newname) const override
void processArgs(Args_t &&... args)
void processArg(const RooAbsArg *arg)
void processArg(const RooAbsCollection &coll)
RooArgSet(double arg, Args_t &&... moreArgsOrName)
void processArg(const RooArgList &list)
RooArgSet * selectByName(const char *nameList, bool verbose=false) const
Use RooAbsCollection::selectByName(), but return as RooArgSet.
bool readFromFile(const char *fileName, const char *flagReadAtt=nullptr, const char *section=nullptr, bool verbose=false)
Read contents of the argset from specified file.
RooArgSet * selectCommon(const RooAbsCollection &refColl) const
Use RooAbsCollection::selecCommon(), but return as RooArgSet.
void processArg(RooAbsArg *var)
virtual bool readFromStream(std::istream &is, bool compact, bool verbose=false)
Shortcut for readFromStream(std::istream&, bool, const char*, const char*, bool), setting flagReadAtt...
RooArgSet(Iterator_t beginIt, Iterator_t endIt, const char *name="")
Construct a (non-owning) RooArgSet from iterators.
void processArg(const RooAbsArg &arg)
RooAbsArg & operator[](const TString &str) const
Get reference to an element using its name.
RooArgSet(const RooAbsArg &arg, Args_t &&... moreArgsOrName)
Construct a (non-owning) RooArgSet from one or more RooFit objects.
virtual void writeToStream(std::ostream &os, bool compact, const char *section=nullptr) const
Write the contents of the argset in ASCII form to given stream.
Collection abstract base class.
Mother of all ROOT objects.
RooArgSet S(Args_t &&... args)