Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef L1T_OmtfP1_L1MuonOverlapParamsDBProducer_H
0002 #define L1T_OmtfP1_L1MuonOverlapParamsDBProducer_H
0003 
0004 #include <vector>
0005 
0006 #include "FWCore/Framework/interface/Frameworkfwd.h"
0007 #include "FWCore/Framework/interface/Event.h"
0008 #include "FWCore/Framework/interface/EventSetup.h"
0009 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0010 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0011 #include "CondFormats/L1TObjects/interface/L1TMuonOverlapParams.h"
0012 #include "CondFormats/DataRecord/interface/L1TMuonOverlapParamsRcd.h"
0013 
0014 class L1TMuonOverlapParams;
0015 
0016 class L1MuonOverlapPhase1ParamsDBProducer : public edm::one::EDAnalyzer<edm::one::WatchRuns> {
0017 public:
0018   L1MuonOverlapPhase1ParamsDBProducer(const edm::ParameterSet& cfg);
0019   ~L1MuonOverlapPhase1ParamsDBProducer() override {}
0020   void beginJob() override{};
0021   void beginRun(const edm::Run&, const edm::EventSetup& es) override;
0022   void endRun(edm::Run const& run, edm::EventSetup const& iSetup) override{};
0023   void analyze(const edm::Event&, const edm::EventSetup& es) override;
0024   void endJob() override{};
0025 
0026 private:
0027   edm::ESGetToken<L1TMuonOverlapParams, L1TMuonOverlapParamsRcd> omtfParamsEsToken;
0028 
0029   std::unique_ptr<L1TMuonOverlapParams> omtfParams, omtfPatterns;
0030 };
0031 
0032 #endif