Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:03:07

0001 #ifndef HcalL1TriggerObjectsHandler_h
0002 #define HcalL1TriggerObjectsHandler_h
0003 
0004 // Radek Ofierzynski, 9.11.2008
0005 
0006 #include <string>
0007 #include <iostream>
0008 #include <typeinfo>
0009 #include <fstream>
0010 
0011 #include "FWCore/Framework/interface/MakerMacros.h"
0012 #include "CondCore/PopCon/interface/PopConSourceHandler.h"
0013 
0014 #include "FWCore/Framework/interface/Event.h"
0015 #include "DataFormats/Common/interface/Handle.h"
0016 #include "FWCore/Framework/interface/EventSetup.h"
0017 // user include files
0018 #include "CondFormats/HcalObjects/interface/HcalL1TriggerObjects.h"
0019 #include "CondFormats/DataRecord/interface/HcalL1TriggerObjectsRcd.h"
0020 #include "CalibCalorimetry/HcalAlgos/interface/HcalDbASCIIIO.h"
0021 
0022 class HcalL1TriggerObjectsHandler : public popcon::PopConSourceHandler<HcalL1TriggerObjects> {
0023 public:
0024   void getNewObjects() override;
0025   std::string id() const override { return m_name; }
0026   ~HcalL1TriggerObjectsHandler() override;
0027   HcalL1TriggerObjectsHandler(edm::ParameterSet const&);
0028 
0029   void initObject(HcalL1TriggerObjects*);
0030 
0031 private:
0032   unsigned int sinceTime;
0033   edm::FileInPath fFile;
0034   HcalL1TriggerObjects* myDBObject;
0035   std::string m_name;
0036 };
0037 #endif