Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:52:10

0001 #ifndef CastorChannelQualityHandler_h
0002 #define CastorChannelQualityHandler_h
0003 
0004 // Radek Ofierzynski, 27.02.2008
0005 // Adapter for CASTOR by L. Mundim (26/03/2009)
0006 
0007 #include <string>
0008 #include <iostream>
0009 #include <typeinfo>
0010 #include <fstream>
0011 
0012 #include "FWCore/Framework/interface/MakerMacros.h"
0013 #include "CondCore/PopCon/interface/PopConSourceHandler.h"
0014 
0015 #include "FWCore/Framework/interface/Event.h"
0016 #include "DataFormats/Common/interface/Handle.h"
0017 #include "FWCore/Framework/interface/EventSetup.h"
0018 // user include files
0019 #include "CondFormats/CastorObjects/interface/CastorChannelQuality.h"
0020 #include "CondFormats/DataRecord/interface/CastorChannelQualityRcd.h"
0021 #include "CalibCalorimetry/CastorCalib/interface/CastorDbASCIIIO.h"
0022 
0023 class CastorChannelQualityHandler : public popcon::PopConSourceHandler<CastorChannelQuality> {
0024 public:
0025   void getNewObjects() override;
0026   std::string id() const override { return m_name; }
0027   ~CastorChannelQualityHandler() override;
0028   CastorChannelQualityHandler(edm::ParameterSet const&);
0029 
0030   void initObject(CastorChannelQuality*);
0031 
0032 private:
0033   unsigned int sinceTime;
0034   edm::FileInPath fFile;
0035   CastorChannelQuality* myDBObject;
0036   std::string m_name;
0037 };
0038 #endif