CMS 3D CMS Logo

DTKeyedConfigCache.h
Go to the documentation of this file.
1 #ifndef CondTools_DT_DTKeyedConfigCache_h
2 #define CondTools_DT_DTKeyedConfigCache_h
3 
17 #include <map>
18 #include <string>
19 #include <vector>
20 
22 
23 class DTKeyedConfig;
24 
25 // ---------------------
26 // -- Class Interface --
27 // ---------------------
28 
30 public:
32  virtual ~DTKeyedConfigCache();
33 
34  int get(const cond::persistency::KeyList& keyList, int cfgId, const DTKeyedConfig*& obj);
35 
36  void getData(const cond::persistency::KeyList& keyList, int cfgId, std::vector<std::string>& list);
37 
38  void purge();
39 
40  static const int maxBrickNumber;
41  static const int maxStringNumber;
42  static const int maxByteNumber;
43 
44 private:
45  DTKeyedConfigCache(const DTKeyedConfigCache& x) = delete;
46  const DTKeyedConfigCache& operator=(const DTKeyedConfigCache& x) = delete;
47 
48  typedef std::pair<int, const DTKeyedConfig*> counted_brick;
49  std::map<int, counted_brick> brickMap;
53 };
54 #endif
DTKeyedConfigCache::DTKeyedConfigCache
DTKeyedConfigCache()
Definition: DTKeyedConfigCache.cc:35
DTKeyedConfigCache::maxStringNumber
static const int maxStringNumber
Definition: DTKeyedConfigCache.h:41
DTKeyedConfigCache::getData
void getData(const cond::persistency::KeyList &keyList, int cfgId, std::vector< std::string > &list)
Definition: DTKeyedConfigCache.cc:115
DTKeyedConfigCache::brickMap
std::map< int, counted_brick > brickMap
Definition: DTKeyedConfigCache.h:49
DDAxes::x
DTKeyedConfigCache::operator=
const DTKeyedConfigCache & operator=(const DTKeyedConfigCache &x)=delete
DTKeyedConfigCache::cachedBrickNumber
int cachedBrickNumber
Definition: DTKeyedConfigCache.h:50
DTKeyedConfigCache
Definition: DTKeyedConfigCache.h:29
DTKeyedConfigCache::counted_brick
std::pair< int, const DTKeyedConfig * > counted_brick
Definition: DTKeyedConfigCache.h:48
getGTfromDQMFile.obj
obj
Definition: getGTfromDQMFile.py:32
DTKeyedConfigCache::cachedByteNumber
int cachedByteNumber
Definition: DTKeyedConfigCache.h:52
DTKeyedConfig
Definition: DTKeyedConfig.h:35
DTKeyedConfigCache::maxByteNumber
static const int maxByteNumber
Definition: DTKeyedConfigCache.h:42
DTKeyedConfigCache::maxBrickNumber
static const int maxBrickNumber
Definition: DTKeyedConfigCache.h:40
DTKeyedConfigCache::~DTKeyedConfigCache
virtual ~DTKeyedConfigCache()
Definition: DTKeyedConfigCache.cc:40
DTKeyedConfigCache::purge
void purge()
Definition: DTKeyedConfigCache.cc:131
KeyList.h
DTKeyedConfigCache::get
int get(const cond::persistency::KeyList &keyList, int cfgId, const DTKeyedConfig *&obj)
Definition: DTKeyedConfigCache.cc:42
cond::persistency::KeyList
Definition: KeyList.h:33
list
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*", "!HLTx*" if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL. It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of "!*" before the partial wildcard feature was incorporated). Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run
DTKeyedConfigCache::cachedStringNumber
int cachedStringNumber
Definition: DTKeyedConfigCache.h:51