CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_1/src/CondTools/Hcal/interface/CastorElectronicsMapHandler.h

Go to the documentation of this file.
00001 #ifndef CastorElectronicsMapHandler_h
00002 #define CastorElectronicsMapHandler_h
00003 
00004 // Radek Ofierzynski, 27.02.2008
00005 // Adapted for CASTOR by L. Mundim (26/03/2009)
00006 
00007 
00008 #include <string>
00009 #include <iostream>
00010 #include <typeinfo>
00011 #include <fstream>
00012 
00013 #include "FWCore/Framework/interface/MakerMacros.h"
00014 #include "CondCore/PopCon/interface/PopConSourceHandler.h"
00015  
00016 #include "FWCore/Framework/interface/ESHandle.h"
00017 #include "FWCore/Framework/interface/Event.h"
00018 #include "DataFormats/Common/interface/Handle.h"
00019 #include "FWCore/Framework/interface/EventSetup.h"
00020 // user include files
00021 #include "CondFormats/CastorObjects/interface/CastorElectronicsMap.h"
00022 #include "CondFormats/DataRecord/interface/CastorElectronicsMapRcd.h"
00023 #include "CalibCalorimetry/CastorCalib/interface/CastorDbASCIIIO.h"
00024 
00025 
00026 class CastorElectronicsMapHandler : public popcon::PopConSourceHandler<CastorElectronicsMap>
00027 {
00028  public:
00029   void getNewObjects();
00030   std::string id() const { return m_name;}
00031   ~CastorElectronicsMapHandler();
00032   CastorElectronicsMapHandler(edm::ParameterSet const &);
00033 
00034   void initObject(CastorElectronicsMap*);
00035 
00036  private:
00037   unsigned int sinceTime;
00038   edm::FileInPath fFile;
00039   CastorElectronicsMap* myDBObject;
00040   std::string m_name;
00041 
00042 };
00043 #endif