CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ESDBCopy.h
Go to the documentation of this file.
1 #ifndef CondTools_Ecal_ESDBCopy_h
2 #define CondTools_Ecal_ESDBCopy_h
3 
6 
19 
21 
22 #include <string>
23 #include <map>
24 
25 namespace edm {
26  class ParameterSet;
27  class Event;
28  class EventSetup;
29 } // namespace edm
30 
31 class ESDBCopy : public edm::one::EDAnalyzer<> {
32 public:
33  explicit ESDBCopy(const edm::ParameterSet& iConfig);
34  ~ESDBCopy() override;
35 
36  void analyze(const edm::Event& evt, const edm::EventSetup& evtSetup) override;
37 
38 private:
39  bool shouldCopy(const edm::EventSetup& evtSetup, const std::string& container);
40  void copyToDB(const edm::EventSetup& evtSetup, const std::string& container);
41 
43  std::map<std::string, unsigned long long> m_cacheIDs;
44  std::map<std::string, std::string> m_records;
45 
52 };
53 
54 #endif
std::map< std::string, unsigned long long > m_cacheIDs
Definition: ESDBCopy.h:43
~ESDBCopy() override
Definition: ESDBCopy.cc:33
const edm::ESGetToken< ESPedestals, ESPedestalsRcd > esPedestalsToken_
Definition: ESDBCopy.h:46
const edm::ESGetToken< ESWeightStripGroups, ESWeightStripGroupsRcd > esWeightStripGroupsToken_
Definition: ESDBCopy.h:50
const edm::ESGetToken< ESIntercalibConstants, ESIntercalibConstantsRcd > esIntercalibConstantsToken_
Definition: ESDBCopy.h:49
bool shouldCopy(const edm::EventSetup &evtSetup, const std::string &container)
Definition: ESDBCopy.cc:43
void copyToDB(const edm::EventSetup &evtSetup, const std::string &container)
Definition: ESDBCopy.cc:69
const edm::ESGetToken< ESChannelStatus, ESChannelStatusRcd > esChannelStatusToken_
Definition: ESDBCopy.h:48
std::map< std::string, std::string > m_records
Definition: ESDBCopy.h:44
void analyze(const edm::Event &evt, const edm::EventSetup &evtSetup) override
Definition: ESDBCopy.cc:35
const edm::ESGetToken< ESADCToGeVConstant, ESADCToGeVConstantRcd > esADCToGeVConstantToken_
Definition: ESDBCopy.h:47
const edm::ESGetToken< ESTBWeights, ESTBWeightsRcd > esTBWeightsToken_
Definition: ESDBCopy.h:51
ESDBCopy(const edm::ParameterSet &iConfig)
Definition: ESDBCopy.cc:11
std::string m_timetype
Definition: ESDBCopy.h:42