class RooCacheManager<vector<double,allocator<double> > >: public RooAbsCache



Template class RooCacheManager manages the storage of any type of data indexed on the choice of normalization and optionally the set of integrated observables. The purpose of this class is to faciliate storage of intermediate results in operator p.d.f.s whose value and inner working are often highly dependent on the user provided choice of normalization in getVal(). For efficiency reasons these normalization set pointer are derefenced as little as possible. This class contains a lookup table for RooArgSet pointer pairs -> normalization lists. Distinct pointer pairs that represent the same normalization/projection are recognized and will all point to the same normalization list. Lists for up to 'maxSize' different normalization/ projection configurations can be cached.


This class is also known as (typedefs to this class)

RooCacheManager<vector<Double_t> >, RooCacheManager<std::vector<Double_t> >

Function Members (Methods)

public:
RooCacheManager<vector<double,allocator<double> > >(Int_t maxSize = 10)
RooCacheManager<vector<double,allocator<double> > >(RooAbsArg* owner, Int_t maxSize = 10)
RooCacheManager<vector<double,allocator<double> > >(const RooCacheManager<vector<double,allocator<double> > >& other, RooAbsArg* owner = 0)
virtual~RooCacheManager<vector<double,allocator<double> > >()
Int_tcacheSize() const
static TClass*Class()
virtual voidRooAbsCache::findConstantNodes(const RooArgSet&, RooArgSet&, RooLinkedList&)
vector<double,allocator<double> >*getObj(const RooArgSet* nset, Int_t* sterileIndex = 0, const TNamed* isetRangeName = 0)
vector<double,allocator<double> >*getObj(const RooArgSet* nset, const RooArgSet* iset, Int_t* sterileIdx = 0, const TNamed* isetRangeName = 0)
vector<double,allocator<double> >*getObjByIndex(Int_t index) const
virtual voidinsertObjectHook(vector<double,allocator<double> >&)
virtual TClass*IsA() const
Int_tlastIndex() const
const RooNameSet*nameSet1ByIndex(Int_t index) const
const RooNameSet*nameSet2ByIndex(Int_t index) const
RooCacheManager<vector<double,allocator<double> > >&operator=(const RooCacheManager<vector<double,allocator<double> > >&)
virtual voidoperModeHook()
virtual voidRooAbsCache::optimizeCacheMode(const RooArgSet&, RooArgSet&, RooLinkedList&)
virtual voidprintCompactTreeHook(ostream&, const char*)
virtual Bool_tredirectServersHook(const RooAbsCollection&, Bool_t, Bool_t, Bool_t)
voidreset()
Int_tsetObj(const RooArgSet* nset, vector<double,allocator<double> >* obj, const TNamed* isetRangeName = 0)
Int_tsetObj(const RooArgSet* nset, const RooArgSet* iset, vector<double,allocator<double> >* obj, const TNamed* isetRangeName = 0)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
voidsterilize()
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)

Data Members

protected:
Int_t_lastIndexLast slot accessed
Int_t_maxSizeMaximum size
RooNormSetCache*_nsetCache! Normalization/Integration set manager
vector<double,allocator<double> >**_object! Payload
RooAbsArg*RooAbsCache::_ownerPointer to owning RooAbsArg
Int_t_sizeActual use

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

T* getObj(const RooArgSet* nset, Int_t* sterileIndex = 0, const TNamed* isetRangeName = 0)
 Getter function without integration set
return getObj(const RooArgSet* nset, const RooArgSet* iset, Int_t* sterileIdx = 0, const TNamed* isetRangeName = 0)
Int_t setObj(const RooArgSet* nset, vector<double,allocator<double> >* obj, const TNamed* isetRangeName = 0)
 Setter function without integration set
return setObj(const RooArgSet* nset, const RooArgSet* iset, vector<double,allocator<double> >* obj, const TNamed* isetRangeName = 0)
void reset()
void sterilize()
Int_t lastIndex()
 Return index of slot used in last get or set operation
Int_t cacheSize()
 Return size of cache
Bool_t redirectServersHook(const RooAbsCollection& , Bool_t , Bool_t , Bool_t )
 Interface function to intercept server redirects
void operModeHook()
 Interface function to intercept cache operation mode changes
void printCompactTreeHook(ostream& , const char* )
 Interface function to cache add contents to output in tree printing mode
T* getObjByIndex(Int_t index) const
const RooNameSet* nameSet1ByIndex(Int_t index) const
const RooNameSet* nameSet2ByIndex(Int_t index) const
void insertObjectHook(vector<double,allocator<double> >& )
 Interface function to perform post-insert operations on cached object
template <> void RooCacheManager<RooAbsCacheElement> ShowMembers(TMemberInspector& insp, char* parent)
 needed to avoid 'specialization after instantiation' problem in gcc

Last change: Wed Jun 25 08:32:12 2008
Last generated: 2008-06-25 08:32
Copyright (c) 2000-2005, Regents of the University of California *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.