#ifndef ROO_ARG_SET
#define ROO_ARG_SET
#include "RooAbsCollection.h"
#include "RooErrorHandler.h"
#include <map>
#include <iostream>
using namespace std ;
class RooArgList ;
#define USEMEMPOOL
class RooArgSet : public RooAbsCollection {
public:
#ifdef USEMEMPOOL
void* operator new (size_t bytes);
void operator delete (void *ptr);
#endif
RooArgSet();
RooArgSet(const RooArgList& list) ;
RooArgSet(const RooArgList& list, const RooAbsArg* var1) ;
explicit RooArgSet(const TCollection& tcoll, const char* name="") ;
explicit RooArgSet(const char *name);
RooArgSet(const RooArgSet& set1, const RooArgSet& set2,
const char *name="");
RooArgSet(const RooAbsArg& var1,
const char *name="");
RooArgSet(const RooAbsArg& var1, const RooAbsArg& var2,
const char *name="");
RooArgSet(const RooAbsArg& var1, const RooAbsArg& var2,
const RooAbsArg& var3,
const char *name="");
RooArgSet(const RooAbsArg& var1, const RooAbsArg& var2,
const RooAbsArg& var3, const RooAbsArg& var4,
const char *name="");
RooArgSet(const RooAbsArg& var1, const RooAbsArg& var2,
const RooAbsArg& var3, const RooAbsArg& var4,
const RooAbsArg& var5,
const char *name="");
RooArgSet(const RooAbsArg& var1, const RooAbsArg& var2,
const RooAbsArg& var3, const RooAbsArg& var4,
const RooAbsArg& var5, const RooAbsArg& var6,
const char *name="");
RooArgSet(const RooAbsArg& var1, const RooAbsArg& var2,
const RooAbsArg& var3, const RooAbsArg& var4,
const RooAbsArg& var5, const RooAbsArg& var6,
const RooAbsArg& var7,
const char *name="");
RooArgSet(const RooAbsArg& var1, const RooAbsArg& var2,
const RooAbsArg& var3, const RooAbsArg& var4,
const RooAbsArg& var5, const RooAbsArg& var6,
const RooAbsArg& var7, const RooAbsArg& var8,
const char *name="");
RooArgSet(const RooAbsArg& var1, const RooAbsArg& var2,
const RooAbsArg& var3, const RooAbsArg& var4,
const RooAbsArg& var5, const RooAbsArg& var6,
const RooAbsArg& var7, const RooAbsArg& var8,
const RooAbsArg& var9, const char *name="");
virtual ~RooArgSet();
RooArgSet(const RooArgSet& other, const char *name="");
virtual TObject* clone(const char* newname) const { return new RooArgSet(*this,newname); }
virtual TObject* create(const char* newname) const { return new RooArgSet(newname); }
RooArgSet& operator=(const RooArgSet& other) { RooAbsCollection::operator=(other) ; return *this ;}
virtual Bool_t add(const RooAbsArg& var, Bool_t silent=kFALSE) ;
virtual Bool_t add(const RooAbsCollection& list, Bool_t silent=kFALSE) {
return RooAbsCollection::add(list,silent) ;
}
virtual Bool_t addOwned(RooAbsArg& var, Bool_t silent=kFALSE);
virtual Bool_t addOwned(const RooAbsCollection& list, Bool_t silent=kFALSE) {
return RooAbsCollection::addOwned(list,silent) ;
}
virtual RooAbsArg *addClone(const RooAbsArg& var, Bool_t silent=kFALSE) ;
virtual void addClone(const RooAbsCollection& list, Bool_t silent=kFALSE) {
RooAbsCollection::addClone(list,silent) ;
}
RooAbsArg& operator[](const char* name) const ;
virtual Bool_t readFromStream(istream& is, Bool_t compact, Bool_t verbose=kFALSE) {
return readFromStream(is, compact, 0, 0, verbose) ;
}
Bool_t readFromStream(istream& is, Bool_t compact, const char* flagReadAtt, const char* section, Bool_t verbose=kFALSE) ;
virtual void writeToStream(ostream& os, Bool_t compact, const char* section=0) const;
void writeToFile(const char* fileName) const ;
Bool_t readFromFile(const char* fileName, const char* flagReadAtt=0, const char* section=0, Bool_t verbose=kFALSE) ;
Double_t getRealValue(const char* name, Double_t defVal=0, Bool_t verbose=kFALSE) const ;
const char* getCatLabel(const char* name, const char* defVal="", Bool_t verbose=kFALSE) const ;
Int_t getCatIndex(const char* name, Int_t defVal=0, Bool_t verbose=kFALSE) const ;
const char* getStringValue(const char* name, const char* defVal="", Bool_t verbose=kFALSE) const ;
Bool_t setRealValue(const char* name, Double_t newVal=0, Bool_t verbose=kFALSE) ;
Bool_t setCatLabel(const char* name, const char* newVal="", Bool_t verbose=kFALSE) ;
Bool_t setCatIndex(const char* name, Int_t newVal=0, Bool_t verbose=kFALSE) ;
Bool_t setStringValue(const char* name, const char* newVal="", Bool_t verbose=kFALSE) ;
static void cleanup() ;
protected:
Bool_t checkForDup(const RooAbsArg& arg, Bool_t silent) const ;
static char* _poolBegin ;
static char* _poolCur ;
static char* _poolEnd ;
ClassDef(RooArgSet,1)
};
#endif