16 #ifndef ROO_CACHE_MANAGER 17 #define ROO_CACHE_MANAGER 46 return getObj(nset,0,sterileIndex,isetRangeName) ;
51 return setObj(nset,0,obj,isetRangeName) ;
97 }
else if (
_size==1) {
100 }
else if (
_size>1) {
173 for (i=0 ; i<other.
_size ; i++) {
191 for (i=0 ; i<
_size ; i++) {
236 Int_t sterileIdx(-1) ;
237 if (
getObj(nset,iset,&sterileIdx,isetRangeName)) {
297 if(
_object[0]==0 && sterileIdx) *sterileIdx=0 ;
302 for (i=0 ; i<
_size ; i++) {
305 if(
_object[i]==0 && sterileIdx) *sterileIdx=i ;
310 for (i=0 ; i<
_size ; i++) {
313 if(
_object[i]==0 && sterileIdx) *sterileIdx=i ;
328 if (index<0||index>=
_size) {
330 << index <<
") out of range [0," <<
_size-1 <<
"]" << std::endl ;
341 if (index<0||index>=
_size) {
343 << index <<
") out of range [0," <<
_size-1 <<
"]" << std::endl ;
354 if (index<0||index>=
_size) {
356 << index <<
") out of range [0," <<
_size-1 <<
"]" << std::endl ;
virtual const char * GetName() const
Returns name of object.
RooCacheManager(Int_t maxSize=2)
virtual void insertObjectHook(T &)
T * getObjByIndex(Int_t index) const
RooAbsCache is the abstract base class for data members of RooAbsArgs that cache other (composite) Ro...
const RooNameSet * nameSet1ByIndex(Int_t index) const
#define ClassDef(name, id)
virtual void printCompactTreeHook(std::ostream &, const char *)
Interface for printing of cache guts in tree mode printing.
The TNamed class is the base class for all named ROOT classes.
T * getObj(const RooArgSet *nset, Int_t *sterileIndex=0, const TNamed *isetRangeName=0)
RooNameSet is a utility class that stores the names the objects in a RooArget.
T * getObj(const RooArgSet *nset, const RooArgSet *iset, Int_t *sterileIdx, const char *isetRangeName)
static const TNamed * ptr(const char *stringPtr)
Return a unique TNamed pointer for given C++ string.
const RooNameSet * nameSet2ByIndex(Int_t index) const
virtual ~RooCacheManager()
RooAbsCollection is an abstract container object that can hold multiple RooAbsArg objects...
virtual void operModeHook()
Interface for operation mode changes.
virtual Bool_t redirectServersHook(const RooAbsCollection &, Bool_t, Bool_t, Bool_t)
Interface for server redirect calls.
Int_t _lastIndex
Actual use.
Int_t setObj(const RooArgSet *nset, T *obj, const TNamed *isetRangeName=0)
Template class RooCacheManager manages the storage of any type of data indexed on the choice of norma...
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
std::vector< T * > _object
Normalization/Integration set manager.
std::vector< RooNormSetCache > _nsetCache
Last slot accessed.