|
ROOT
Reference Guide |
|
Go to the documentation of this file.
25 #define USEMEMPOOLFORARGSET
26 template <
class RooSet_t,
size_t>
32 #ifdef USEMEMPOOLFORARGSET
33 void*
operator new (
size_t bytes);
34 void*
operator new (
size_t bytes,
void* ptr) noexcept;
35 void operator delete (
void *ptr);
49 template<
typename... Ts>
53 int dummy[] = { 0, (
processArg(moreArgsOrName), 0) ... };
62 template<
typename Iterator_t,
63 typename value_type =
typename std::iterator_traits<Iterator_t>::value_type,
64 typename = std::enable_if<std::is_convertible<const value_type*, const RooAbsArg*>::value> >
67 for (
auto it = beginIt; it != endIt; ++it) {
96 using RooAbsCollection::operator[];
144 #ifdef USEMEMPOOLFORARGSET
MemPoolForRooSets< RooArgSet, 10 *600 > MemPool
Bool_t setRealValue(const char *name, Double_t newVal=0, Bool_t verbose=kFALSE)
Set value of a RooAbsRealLValye stored in set with given name to newVal No error messages are printed...
void writeToFile(const char *fileName) const
Write contents of the argset to specified file.
Double_t getRealValue(const char *name, Double_t defVal=0, Bool_t verbose=kFALSE) const
Get value of a RooAbsReal stored in set with given name.
Bool_t checkForDup(const RooAbsArg &arg, Bool_t silent) const
Check if element with var's name is already in set.
Bool_t isInRange(const char *rangeSpec)
TObject * clone(const char *newname) const override
RooArgSet()
Default constructor.
static void output(int code)
RooArgList is a container object that can hold multiple RooAbsArg objects.
Bool_t setStringValue(const char *name, const char *newVal="", Bool_t verbose=kFALSE)
Set string value of a RooStringVar stored in set with given name to newVal.
RooArgSet & operator=(const RooArgSet &other)
Bool_t setCatLabel(const char *name, const char *newVal="", Bool_t verbose=kFALSE)
Set state name of a RooAbsCategoryLValue stored in set with given name to newVal.
void processArg(const RooAbsArg &var)
~RooArgSet() override
Destructor.
#define ClassDefOverride(name, id)
const char * GetName() const
Returns name of object.
const char * getCatLabel(const char *name, const char *defVal="", Bool_t verbose=kFALSE) const
Get state name of a RooAbsCategory stored in set with given name.
RooAbsCollection & operator=(const RooAbsCollection &other)
The assignment operator sets the value of any argument in our set that also appears in the other set.
Int_t getCatIndex(const char *name, Int_t defVal=0, Bool_t verbose=kFALSE) const
Get index value of a RooAbsCategory stored in set with given name.
RooArgSet * snapshot(bool deepCopy=true) const
Use RooAbsCollection::snapshot(), but return as RooArgSet.
virtual RooAbsArg * addClone(const RooAbsArg &var, Bool_t silent=kFALSE)
Add a clone of the specified argument to list.
static MemPool * memPool()
RooAbsCollection is an abstract container object that can hold multiple RooAbsArg objects.
virtual RooAbsArg * addClone(const RooAbsArg &var, Bool_t silent=kFALSE)
Add a clone of the specified argument to list.
virtual Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE)
Add the specified argument to list.
virtual Bool_t addOwned(RooAbsArg &var, Bool_t silent=kFALSE)
Add the specified argument to list.
RooAbsArg & operator[](const TString &str) const
Get reference to an element using its name.
typedef void((*Func_t)())
virtual void writeToStream(std::ostream &os, Bool_t compact, const char *section=0) const
Write the contents of the argset in ASCII form to given stream.
virtual Bool_t addOwned(RooAbsArg &var, Bool_t silent=kFALSE)
Add the specified argument to list.
Memory pool for RooArgSet and RooDataSet.
virtual Bool_t readFromStream(std::istream &is, Bool_t compact, Bool_t verbose=kFALSE)
Shortcut for readFromStream(std::istream&, Bool_t, const char*, const char*, Bool_t),...
RooArgSet(const RooAbsArg &arg, const Ts &... moreArgsOrName)
Construct a (non-owning) RooArgSet from one or more RooFit objects.
virtual Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE)
Add the specified argument to list.
Bool_t snapshot(RooAbsCollection &output, Bool_t deepCopy=kTRUE) const
Take a snap shot of current collection contents.
Mother of all ROOT objects.
Bool_t readFromFile(const char *fileName, const char *flagReadAtt=0, const char *section=0, Bool_t verbose=kFALSE)
Read contents of the argset from specified file.
RooArgSet(Iterator_t beginIt, Iterator_t endIt, const char *name="")
Construct from iterators.
RooAbsArg is the common abstract base class for objects that represent a value and a "shape" in RooFi...
Collection abstract base class.
void processArg(const char *name)
void processArg(const RooArgSet &set)
const char * getStringValue(const char *name, const char *defVal="", Bool_t verbose=kFALSE) const
Get string value of a RooStringVar stored in set with given name.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
RooAbsCollection * snapshot(Bool_t deepCopy=kTRUE) const
Take a snap shot of current collection contents.
Bool_t setCatIndex(const char *name, Int_t newVal=0, Bool_t verbose=kFALSE)
Set index value of a RooAbsCategoryLValue stored in set with given name to newVal.
TObject * create(const char *newname) const override