CMS 3D CMS Logo

DTUserKeyedConfigHandler.h
Go to the documentation of this file.
1 #ifndef DTUserKeyedConfigHandler_H
2 #define DTUserKeyedConfigHandler_H
3 
14 //----------------------
15 // Base Class Headers --
16 //----------------------
18 
19 //------------------------------------
20 // Collaborating Class Declarations --
21 //------------------------------------
25 #include <memory>
26 #include <string>
27 
28 namespace coral {
29  class ISessionProxy;
30 }
31 
32 namespace cond {
33  namespace persistency {
34  class KeyList;
35  }
36 } // namespace cond
37 
38 //---------------
39 // C++ Headers --
40 //---------------
41 
42 // ---------------------
43 // -- Class Interface --
44 // ---------------------
45 
47 public:
51 
54  ~DTUserKeyedConfigHandler() override;
55 
58  void getNewObjects() override;
60  std::string id() const override;
61 
62  void setList(const cond::persistency::KeyList* list);
63 
64 private:
65  int dataRun;
71  std::vector<DTConfigKey> userConf;
72  bool writeKeys;
73  bool writeData;
75 
77  std::shared_ptr<coral::ISessionProxy> isession;
78  void chkConfigList(const std::map<int, bool>& userBricks);
79  bool userDiscardedKey(int key);
80  static bool sameConfigList(const std::vector<DTConfigKey>& cfgl, const std::vector<DTConfigKey>& cfgr);
81 
83 };
84 
85 #endif // DTUserKeyedConfigHandler_H
std::string id() const override
const cond::persistency::KeyList * keyList
std::vector< DTConfigKey > userConf
static bool sameConfigList(const std::vector< DTConfigKey > &cfgl, const std::vector< DTConfigKey > &cfgr)
void setList(const cond::persistency::KeyList *list)
Definition: Binary.h:9
DTUserKeyedConfigHandler(const edm::ParameterSet &ps)
void chkConfigList(const std::map< int, bool > &userBricks)
std::shared_ptr< coral::ISessionProxy > isession
cond::persistency::ConnectionPool connection