CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/CondTools/Hcal/interface/CastorPedestalsHandler.h

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