CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2/src/CondTools/Ecal/interface/EcalMappingElectronicsHandler.h

Go to the documentation of this file.
00001 #ifndef ECAL_MAPPINGELECTRONICS_HANDLER_H
00002 #define ECAL_MAPPINGELECTRONICS_HANDLER_H
00003 
00004 #include <vector>
00005 #include <typeinfo>
00006 #include <string>
00007 #include <map>
00008 #include <iostream>
00009 #include <time.h>
00010 
00011 #include "CondCore/PopCon/interface/PopConSourceHandler.h"
00012 #include "FWCore/ParameterSet/interface/ParameterSetfwd.h"
00013 
00014 
00015 #include "FWCore/ServiceRegistry/interface/Service.h"
00016 #include "CondCore/DBOutputService/interface/PoolDBOutputService.h"
00017 #include "FWCore/Framework/interface/ESHandle.h"
00018 #include "FWCore/Framework/interface/Event.h"
00019 #include "FWCore/Framework/interface/MakerMacros.h"
00020 #include "FWCore/MessageLogger/interface/MessageLogger.h"
00021 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00022 #include "DataFormats/Common/interface/Handle.h"
00023 #include "FWCore/Framework/interface/EventSetup.h"
00024 #include "FWCore/Framework/interface/EventSetupRecordKey.h"
00025 
00026 
00027 
00028 #include "CondFormats/EcalObjects/interface/EcalMappingElectronics.h"
00029 #include "CondFormats/DataRecord/interface/EcalMappingElectronicsRcd.h"
00030 
00031 
00032 #include "DataFormats/EcalDetId/interface/EEDetId.h"
00033 #include "DataFormats/EcalDetId/interface/EBDetId.h"
00034 #include "DataFormats/Provenance/interface/Timestamp.h"
00035 
00036 class EcalMappingElectronicsHandler : public popcon::PopConSourceHandler<EcalMappingElectronics>
00037 {
00038  public:
00039   EcalMappingElectronicsHandler(edm::ParameterSet const & );
00040   virtual ~EcalMappingElectronicsHandler(); 
00041   virtual void getNewObjects();
00042   virtual std::string id() const { return m_name;}
00043   
00044  private:
00045 
00046   const EcalMappingElectronics * myMap;
00047 
00048   std::string txtFileSource_;
00049   std::string m_name;
00050 
00051   long long since_;
00052 };
00053 
00054 #endif
00055