/
L1MuonOverlapPhase1ParamsDBProducer.h
32 lines (25 loc) · 1.2 KB
/
L1MuonOverlapPhase1ParamsDBProducer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef L1T_OmtfP1_L1MuonOverlapParamsDBProducer_H
#define L1T_OmtfP1_L1MuonOverlapParamsDBProducer_H
#include <vector>
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/one/EDAnalyzer.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "CondFormats/L1TObjects/interface/L1TMuonOverlapParams.h"
#include "CondFormats/DataRecord/interface/L1TMuonOverlapParamsRcd.h"
class L1TMuonOverlapParams;
class L1MuonOverlapPhase1ParamsDBProducer : public edm::one::EDAnalyzer<edm::one::WatchRuns> {
public:
L1MuonOverlapPhase1ParamsDBProducer(const edm::ParameterSet& cfg);
~L1MuonOverlapPhase1ParamsDBProducer() override {}
void beginJob() override{};
void beginRun(const edm::Run&, const edm::EventSetup& es) override;
void endRun(edm::Run const& run, edm::EventSetup const& iSetup) override{};
void analyze(const edm::Event&, const edm::EventSetup& es) override;
void endJob() override{};
private:
edm::ESGetToken<L1TMuonOverlapParams, L1TMuonOverlapParamsRcd> omtfParamsEsToken;
std::unique_ptr<L1TMuonOverlapParams> omtfParams, omtfPatterns;
};
#endif