CMS 3D CMS Logo

EcalDBCopy.h

Go to the documentation of this file.
00001 #ifndef ECALDBCOPY_H
00002 #define ECALDBCOPY_H
00003 
00004 #include "FWCore/Framework/interface/EDAnalyzer.h"
00005 #include "CondCore/DBCommon/interface/DBSession.h"
00006 #include "CondCore/DBCommon/interface/Exception.h"
00007 //#include "CondCore/DBCommon/interface/ConnectMode.h"
00008 #include "CondCore/DBCommon/interface/MessageLevel.h"
00009 
00010 #include "FWCore/Framework/interface/IOVSyncValue.h"
00011 
00012 #include <string>
00013 #include <map>
00014 
00015 namespace edm {
00016   class ParameterSet;
00017   class Event;
00018   class EventSetup;
00019 }
00020 
00021 using namespace std;
00022 
00023 class  EcalDBCopy : public edm::EDAnalyzer {
00024  public:
00025   explicit  EcalDBCopy(const edm::ParameterSet& iConfig );
00026   ~EcalDBCopy();
00027 
00028   virtual void analyze( const edm::Event& evt, const edm::EventSetup& evtSetup);
00029 
00030  private:
00031   bool shouldCopy(const edm::EventSetup& evtSetup, std::string container);
00032   void copyToDB(const edm::EventSetup& evtSetup, std::string container);
00033 
00034   std::string m_timetype;
00035   std::map<std::string, unsigned long long> m_cacheIDs;
00036   std::map<std::string, std::string> m_records;
00037 };
00038 
00039 #endif

Generated on Tue Jun 9 17:26:52 2009 for CMSSW by  doxygen 1.5.4