Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef HcalLutMetadataHandler_h
0002 #define HcalLutMetadataHandler_h
0003 
0004 /*
0005 \class HcalLutMetadataHandler
0006 \author Gena Kukartsev 21 Sep 2009
0007 PopCon handler for the HCAL LUT metadata condition
0008 */
0009 
0010 #include <string>
0011 #include <iostream>
0012 #include <typeinfo>
0013 #include <fstream>
0014 
0015 #include "FWCore/Framework/interface/MakerMacros.h"
0016 #include "CondCore/PopCon/interface/PopConSourceHandler.h"
0017 
0018 #include "FWCore/Framework/interface/Event.h"
0019 #include "DataFormats/Common/interface/Handle.h"
0020 #include "FWCore/Framework/interface/EventSetup.h"
0021 // user include files
0022 #include "CondFormats/HcalObjects/interface/HcalLutMetadata.h"
0023 #include "CondFormats/DataRecord/interface/HcalLutMetadataRcd.h"
0024 #include "CalibCalorimetry/HcalAlgos/interface/HcalDbASCIIIO.h"
0025 
0026 class HcalLutMetadataHandler : public popcon::PopConSourceHandler<HcalLutMetadata> {
0027 public:
0028   void getNewObjects() override;
0029   std::string id() const override { return m_name; }
0030   ~HcalLutMetadataHandler() override;
0031   HcalLutMetadataHandler(edm::ParameterSet const&);
0032 
0033   void initObject(HcalLutMetadata*);
0034 
0035 private:
0036   unsigned int sinceTime;
0037   edm::FileInPath fFile;
0038   HcalLutMetadata* myDBObject;
0039   std::string m_name;
0040 };
0041 #endif