BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
MCache Class Reference

#include <cache.h>

+ Inheritance diagram for MCache:

Static Public Member Functions

static Minor5::Ptr getMinor5 (const Kinem5 &k)
 
static Minor4::Ptr getMinor4 (const Kinem4 &k)
 
static Minor3::Ptr getMinor3 (const Kinem3 &k)
 
static Minor2::Ptr getMinor2 (const Kinem2 &k)
 
static void insertMinor5 (const Kinem5 &k, Minor5::Ptr &m)
 
static void insertMinor4 (const Kinem4 &k, Minor4::Ptr &m)
 
static void insertMinor3 (const Kinem3 &k, Minor3::Ptr &m)
 
static void insertMinor2 (const Kinem2 &k, Minor2::Ptr &m)
 
static void smartinsertMinor3 (const Kinem3 &k, Minor3::Ptr &m)
 
static void smartinsertMinor2 (const Kinem2 &k, Minor2::Ptr &m)
 
static void Clear ()
 
static Minor5::Ptr getMinor5 (const Kinem5 &k)
 
static Minor4::Ptr getMinor4 (const Kinem4 &k)
 
static Minor3::Ptr getMinor3 (const Kinem3 &k)
 
static Minor2::Ptr getMinor2 (const Kinem2 &k)
 
static void insertMinor5 (const Kinem5 &k, Minor5::Ptr &m)
 
static void insertMinor4 (const Kinem4 &k, Minor4::Ptr &m)
 
static void insertMinor3 (const Kinem3 &k, Minor3::Ptr &m)
 
static void insertMinor2 (const Kinem2 &k, Minor2::Ptr &m)
 
static void smartinsertMinor3 (const Kinem3 &k, Minor3::Ptr &m)
 
static void smartinsertMinor2 (const Kinem2 &k, Minor2::Ptr &m)
 
static void Clear ()
 

Additional Inherited Members

- Static Protected Attributes inherited from Cache
static const int size6 =2
 
static const int size5 =size6*6
 
static const int size4 =size6*15
 
static const int size3 =size6*20
 
static const int size2 =size6*15
 
static const int size1 =size6*6
 

Detailed Description

Member Function Documentation

◆ Clear() [1/2]

void MCache::Clear ( )
static

Definition at line 69 of file bak-BesEvtGen-00-04-08/src/phokhara/eemmg-lib/src/cache.cpp.

70{
71 cm5.reset();
72 cm4.reset();
73 cm3.reset();
74 cm2.reset();
75}

Referenced by ICache::setMu2().

◆ Clear() [2/2]

static void MCache::Clear ( )
static

◆ getMinor2() [1/2]

static Minor2::Ptr MCache::getMinor2 ( const Kinem2 k)
static

Referenced by ICache::getB().

◆ getMinor2() [2/2]

static Minor2::Ptr MCache::getMinor2 ( const Kinem2 k)
static

◆ getMinor3() [1/2]

static Minor3::Ptr MCache::getMinor3 ( const Kinem3 k)
static

Referenced by ICache::getC().

◆ getMinor3() [2/2]

static Minor3::Ptr MCache::getMinor3 ( const Kinem3 k)
static

◆ getMinor4() [1/2]

Minor4::Ptr MCache::getMinor4 ( const Kinem4 k)
static

Definition at line 658 of file bak-BesEvtGen-00-04-08/src/phokhara/eemmg-lib/src/cache.cpp.

663{
664 Minor4::Ptr minor;
665 for (Array4::iterator it4=cm4.begin(); it4!=cm4.end(); ++it4) {
666 if (it4->key == k) {
667 minor=it4->val;
668 break;
669 }
670 }
671 if (minor==0) {
673 minor=cm4.begin()->val;
674 cm4.insert(Entry4(k,minor));

Referenced by ICache::getD().

◆ getMinor4() [2/2]

static Minor4::Ptr MCache::getMinor4 ( const Kinem4 k)
static

◆ getMinor5() [1/2]

static Minor5::Ptr MCache::getMinor5 ( const Kinem5 k)
static

Referenced by ICache::getE().

◆ getMinor5() [2/2]

static Minor5::Ptr MCache::getMinor5 ( const Kinem5 k)
static

◆ insertMinor2() [1/2]

static void MCache::insertMinor2 ( const Kinem2 k,
Minor2::Ptr m 
)
static

◆ insertMinor2() [2/2]

static void MCache::insertMinor2 ( const Kinem2 k,
Minor2::Ptr m 
)
static

◆ insertMinor3() [1/2]

static void MCache::insertMinor3 ( const Kinem3 k,
Minor3::Ptr m 
)
static

◆ insertMinor3() [2/2]

static void MCache::insertMinor3 ( const Kinem3 k,
Minor3::Ptr m 
)
static

◆ insertMinor4() [1/2]

static void MCache::insertMinor4 ( const Kinem4 k,
Minor4::Ptr m 
)
static

◆ insertMinor4() [2/2]

static void MCache::insertMinor4 ( const Kinem4 k,
Minor4::Ptr m 
)
static

◆ insertMinor5() [1/2]

static void MCache::insertMinor5 ( const Kinem5 k,
Minor5::Ptr m 
)
static

◆ insertMinor5() [2/2]

static void MCache::insertMinor5 ( const Kinem5 k,
Minor5::Ptr m 
)
static

◆ smartinsertMinor2() [1/2]

void MCache::smartinsertMinor2 ( const Kinem2 k,
Minor2::Ptr m 
)
static

Definition at line 690 of file bak-BesEvtGen-00-04-08/src/phokhara/eemmg-lib/src/cache.cpp.

695{
696 for (Array2::iterator it2=cm2.begin(); it2!=cm2.end(); ++it2) {
697 if (it2->key == k) {
698 cm2.remove(it2);
699 break;

◆ smartinsertMinor2() [2/2]

static void MCache::smartinsertMinor2 ( const Kinem2 k,
Minor2::Ptr m 
)
static

◆ smartinsertMinor3() [1/2]

void MCache::smartinsertMinor3 ( const Kinem3 k,
Minor3::Ptr m 
)
static

Definition at line 679 of file bak-BesEvtGen-00-04-08/src/phokhara/eemmg-lib/src/cache.cpp.

684{
685 for (Array3::iterator it3=cm3.begin(); it3!=cm3.end(); ++it3) {
686 if (it3->key == k) {
687 cm3.remove(it3);
688 break;

◆ smartinsertMinor3() [2/2]

static void MCache::smartinsertMinor3 ( const Kinem3 k,
Minor3::Ptr m 
)
static

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