ROOT  6.06/09
Reference Guide
Classes | Public Member Functions | Protected Types | Protected Attributes | List of all members
RooNormSetCache Class Reference

Definition at line 32 of file RooNormSetCache.h.

Classes

struct  PairCmp
 

Public Member Functions

 RooNormSetCache (ULong_t max=32)
 
virtual ~RooNormSetCache ()
 Destructor. More...
 
void add (const RooArgSet *set1, const RooArgSet *set2=0)
 Add given pair of RooArgSet pointers to our store. More...
 
Int_t index (const RooArgSet *set1, const RooArgSet *set2=0, const TNamed *set2RangeName=0)
 
Bool_t contains (const RooArgSet *set1, const RooArgSet *set2=0, const TNamed *set2RangeName=0)
 
Bool_t containsSet1 (const RooArgSet *set1)
 
const RooArgSetlastSet1 () const
 
const RooArgSetlastSet2 () const
 
const RooNameSetnameSet1 () const
 
const RooNameSetnameSet2 () const
 
Bool_t autoCache (const RooAbsArg *self, const RooArgSet *set1, const RooArgSet *set2=0, const TNamed *set2RangeName=0, Bool_t autoRefill=kTRUE)
 If RooArgSets set1 and set2 or sets with similar contents have been seen by this cache manager before return kFALSE If not, return kTRUE. More...
 
void clear ()
 Clear contents. More...
 
Int_t entries () const
 
void initialize (const RooNormSetCache &other)
 

Protected Types

typedef std::pair< const RooArgSet *, const RooArgSet * > Pair
 
typedef std::vector< PairPairVectType
 
typedef std::map< Pair, ULong_tPairIdxMapType
 

Protected Attributes

PairVectType _pairs
 
PairIdxMapType _pairToIdx
 
ULong_t _max
 
ULong_t _next
 
RooNameSet _name1
 
RooNameSet _name2
 
TNamed_set2RangeName
 

#include <RooNormSetCache.h>

+ Collaboration diagram for RooNormSetCache:

Member Typedef Documentation

typedef std::pair<const RooArgSet*, const RooArgSet*> RooNormSetCache::Pair
protected

Definition at line 34 of file RooNormSetCache.h.

typedef std::map<Pair, ULong_t> RooNormSetCache::PairIdxMapType
protected

Definition at line 44 of file RooNormSetCache.h.

typedef std::vector<Pair> RooNormSetCache::PairVectType
protected

Definition at line 43 of file RooNormSetCache.h.

Constructor & Destructor Documentation

RooNormSetCache::RooNormSetCache ( ULong_t  max = 32)

Definition at line 47 of file RooNormSetCache.cxx.

RooNormSetCache::~RooNormSetCache ( )
virtual

Destructor.

Definition at line 55 of file RooNormSetCache.cxx.

Member Function Documentation

void RooNormSetCache::add ( const RooArgSet set1,
const RooArgSet set2 = 0 
)

Add given pair of RooArgSet pointers to our store.

Definition at line 78 of file RooNormSetCache.cxx.

Referenced by autoCache().

Bool_t RooNormSetCache::autoCache ( const RooAbsArg self,
const RooArgSet set1,
const RooArgSet set2 = 0,
const TNamed set2RangeName = 0,
Bool_t  doRefill = kTRUE 
)

If RooArgSets set1 and set2 or sets with similar contents have been seen by this cache manager before return kFALSE If not, return kTRUE.

If sets have not been seen and doRefill is true, update cache reference to current input sets.

Definition at line 112 of file RooNormSetCache.cxx.

void RooNormSetCache::clear ( )

Clear contents.

Definition at line 62 of file RooNormSetCache.cxx.

Referenced by autoCache(), and initialize().

Bool_t RooNormSetCache::contains ( const RooArgSet set1,
const RooArgSet set2 = 0,
const TNamed set2RangeName = 0 
)
inline

Definition at line 65 of file RooNormSetCache.h.

Referenced by autoCache().

Bool_t RooNormSetCache::containsSet1 ( const RooArgSet set1)
inline

Definition at line 69 of file RooNormSetCache.h.

Int_t RooNormSetCache::entries ( ) const
inline

Definition at line 88 of file RooNormSetCache.h.

Int_t RooNormSetCache::index ( const RooArgSet set1,
const RooArgSet set2 = 0,
const TNamed set2RangeName = 0 
)
inline

Definition at line 52 of file RooNormSetCache.h.

Referenced by contains().

void RooNormSetCache::initialize ( const RooNormSetCache other)
inline

Definition at line 90 of file RooNormSetCache.h.

const RooArgSet* RooNormSetCache::lastSet1 ( ) const
inline

Definition at line 78 of file RooNormSetCache.h.

const RooArgSet* RooNormSetCache::lastSet2 ( ) const
inline

Definition at line 79 of file RooNormSetCache.h.

const RooNameSet& RooNormSetCache::nameSet1 ( ) const
inline

Definition at line 80 of file RooNormSetCache.h.

const RooNameSet& RooNormSetCache::nameSet2 ( ) const
inline

Definition at line 81 of file RooNormSetCache.h.

Member Data Documentation

ULong_t RooNormSetCache::_max
protected

Definition at line 96 of file RooNormSetCache.h.

Referenced by add().

RooNameSet RooNormSetCache::_name1
protected

Definition at line 99 of file RooNormSetCache.h.

Referenced by autoCache(), and nameSet1().

RooNameSet RooNormSetCache::_name2
protected

Definition at line 100 of file RooNormSetCache.h.

Referenced by autoCache(), and nameSet2().

ULong_t RooNormSetCache::_next
protected

Definition at line 97 of file RooNormSetCache.h.

Referenced by add(), and clear().

PairVectType RooNormSetCache::_pairs
protected

Definition at line 94 of file RooNormSetCache.h.

Referenced by add(), clear(), entries(), lastSet1(), and lastSet2().

PairIdxMapType RooNormSetCache::_pairToIdx
protected

Definition at line 95 of file RooNormSetCache.h.

Referenced by add(), clear(), containsSet1(), and index().

TNamed* RooNormSetCache::_set2RangeName
protected

Definition at line 101 of file RooNormSetCache.h.

Referenced by autoCache(), and index().


The documentation for this class was generated from the following files: