52template <
class RooSet_t,
size_t>
58#ifdef USEMEMPOOLFORARGSET
59 void*
operator new (
size_t bytes);
60 void*
operator new (
size_t bytes,
void* ptr)
noexcept;
61 void operator delete (
void *ptr);
80 template<
typename... Args_t>
93 processArgs(arg, std::forward<Args_t>(moreArgsOrName)...);
98 template<
typename... Args_t>
100 :
RooArgSet{arg, std::move(arg), std::forward<Args_t>(moreArgsOrName)...} {}
102 template<
typename... Args_t>
103 explicit RooArgSet(
double arg, Args_t &&... moreArgsOrName) {
104 processArgs(arg, std::forward<Args_t>(moreArgsOrName)...);
112 template<
typename Iterator_t,
113 typename value_type =
typename std::remove_pointer<typename std::iterator_traits<Iterator_t>::value_type>
::type,
114 typename = std::enable_if<std::is_convertible<const value_type*, const RooAbsArg*>::value> >
117 for (
auto it = beginIt; it != endIt; ++it) {
129 for(
auto const& arg :
vec) {
140 const char *
name=
"");
152 using RooAbsCollection::operator[];
158 virtual bool readFromStream(std::istream& is,
bool compact,
bool verbose=
false) {
162 bool readFromStream(std::istream& is,
bool compact,
const char* flagReadAtt,
const char* section,
bool verbose=
false) ;
163 virtual void writeToStream(std::ostream& os,
bool compact,
const char* section=
nullptr)
const;
165 bool readFromFile(
const char* fileName,
const char* flagReadAtt=
nullptr,
const char* section=
nullptr,
bool verbose=
false) ;
170 return find(var) == &var;
195 template<
typename... Args_t>
198 int dummy[] = { 0, (
processArg(std::forward<Args_t>(args)), 0) ... };
204 template<
class Arg_t>
217#ifdef USEMEMPOOLFORARGSET
222 static MemPool* memPool();
231template<
class... Args_t>
233 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 bytes
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
Memory pool for RooArgSet and RooDataSet.
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 & 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.
bool snapshot(RooAbsCollection &output, bool deepCopy=true) const
Take a snap shot of current collection contents.
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)
bool readFromFile(const char *fileName, const char *flagReadAtt=nullptr, const char *section=nullptr, bool verbose=false)
Read contents of the argset from specified file.
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)