Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-02-13 23:39:05

0001 #ifndef CondTools_Ecal_EcalGetLaserData_h
0002 #define CondTools_Ecal_EcalGetLaserData_h
0003 
0004 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0005 #include "CondFormats/EcalObjects/interface/EcalLaserAPDPNRatiosRef.h"
0006 #include "CondFormats/EcalObjects/interface/EcalLaserAlphas.h"
0007 
0008 #include <string>
0009 #include <map>
0010 #include <vector>
0011 #include <ctime>
0012 
0013 namespace edm {
0014   class ParameterSet;
0015   class Event;
0016   class EventSetup;
0017 }  // namespace edm
0018 
0019 class EcalLaserAPDPNRatios;
0020 class EcalLaserAPDPNRatiosRcd;
0021 class EcalLaserAPDPNRatiosRefRcd;
0022 class EcalLaserAlphasRcd;
0023 
0024 class EcalGetLaserData : public edm::one::EDAnalyzer<> {
0025 public:
0026   explicit EcalGetLaserData(const edm::ParameterSet& iConfig);
0027   ~EcalGetLaserData() override;
0028 
0029   void analyze(const edm::Event& evt, const edm::EventSetup& evtSetup) override;
0030 
0031 private:
0032   //std::string m_timetype;
0033   std::map<std::string, unsigned long long> m_cacheIDs;
0034   std::map<std::string, std::string> m_records;
0035   //unsigned long m_firstRun ;
0036   //unsigned long m_lastRun ;
0037 
0038   void beginJob() override;
0039   void endJob() override;
0040   edm::ESGetToken<EcalLaserAPDPNRatios, EcalLaserAPDPNRatiosRcd> ecalLaserAPDPNRatiosToken_;
0041   edm::ESGetToken<EcalLaserAPDPNRatiosRef, EcalLaserAPDPNRatiosRefRcd> ecalLaserAPDPNRatiosRefToken_;
0042   edm::ESGetToken<EcalLaserAlphas, EcalLaserAlphasRcd> ecalLaserAlphasToken_;
0043 };
0044 
0045 #endif