CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalDBCopy.h
Go to the documentation of this file.
1 #ifndef ECALDBCOPY_H
2 #define ECALDBCOPY_H
3 
6 
8 
9 #include <string>
10 #include <map>
11 
12 namespace edm {
13  class ParameterSet;
14  class Event;
15  class EventSetup;
16 }
17 
18 class EcalDBCopy : public edm::EDAnalyzer {
19  public:
20  explicit EcalDBCopy(const edm::ParameterSet& iConfig );
21  ~EcalDBCopy();
22 
23  virtual void analyze( const edm::Event& evt, const edm::EventSetup& evtSetup);
24 
25  private:
26  bool shouldCopy(const edm::EventSetup& evtSetup, std::string container);
27  void copyToDB(const edm::EventSetup& evtSetup, std::string container);
28 
30  std::map<std::string, unsigned long long> m_cacheIDs;
31  std::map<std::string, std::string> m_records;
32 };
33 
34 #endif
std::string m_timetype
Definition: EcalDBCopy.h:29
bool shouldCopy(const edm::EventSetup &evtSetup, std::string container)
Definition: EcalDBCopy.cc:122
std::map< std::string, std::string > m_records
Definition: EcalDBCopy.h:31
EcalDBCopy(const edm::ParameterSet &iConfig)
Definition: EcalDBCopy.cc:78
std::map< std::string, unsigned long long > m_cacheIDs
Definition: EcalDBCopy.h:30
virtual void analyze(const edm::Event &evt, const edm::EventSetup &evtSetup)
Definition: EcalDBCopy.cc:104
void copyToDB(const edm::EventSetup &evtSetup, std::string container)
Definition: EcalDBCopy.cc:203