/usr/include/root/RooArgSet.h is in libroot-roofit-dev 5.34.30-0ubuntu8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | /*****************************************************************************
* Project: RooFit *
* Package: RooFitCore *
* File: $Id: RooArgSet.h,v 1.45 2007/08/09 19:55:47 wouter Exp $
* Authors: *
* WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu *
* DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
* *
* Copyright (c) 2000-2005, Regents of the University of California *
* and Stanford University. All rights reserved. *
* *
* Redistribution and use in source and binary forms, *
* with or without modification, are permitted according to the terms *
* listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
*****************************************************************************/
#ifndef ROO_ARG_SET
#define ROO_ARG_SET
#include "RooAbsCollection.h"
#include "RooErrorHandler.h"
#include <map>
#include <iostream>
class RooArgList ;
#define USEMEMPOOL
class RooArgSet : public RooAbsCollection {
public:
#ifdef USEMEMPOOL
void* operator new (size_t bytes);
void operator delete (void *ptr);
#endif
// Constructors, assignment etc.
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();
// Create a copy of an existing list. New variables cannot be added
// to a copied list. The variables in the copied list are independent
// of the original variables.
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) {
// Add all elements in list to collection
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) {
// Add all elements in list as owned components to collection
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) {
// Add owned clone of all elements of list to collection
RooAbsCollection::addClone(list,silent) ;
}
RooAbsArg& operator[](const char* name) const ;
virtual Bool_t readFromStream(std::istream& is, Bool_t compact, Bool_t verbose=kFALSE) {
// I/O streaming interface (machine readable)
return readFromStream(is, compact, 0, 0, verbose) ;
}
Bool_t readFromStream(std::istream& is, Bool_t compact, const char* flagReadAtt, const char* section, Bool_t verbose=kFALSE) ;
virtual void writeToStream(std::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) ;
// Utilities functions when used as configuration object
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() ;
Bool_t isInRange(const char* rangeSpec) ;
protected:
Bool_t checkForDup(const RooAbsArg& arg, Bool_t silent) const ;
static char* _poolBegin ; //! Start of memory pool
static char* _poolCur ; //! Next free slot in memory pool
static char* _poolEnd ; //! End of memory pool
ClassDef(RooArgSet,1) // Set of RooAbsArg objects
};
#endif
|