CMS 3D CMS Logo

L1MuTriggerScalesProducer.cc
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
3 // \class L1MuTriggerScalesProducer
4 //
5 // Description: A class to produce the L1 mu emulator scales record in the event setup
6 //
7 //
8 // Author :
9 // I. Mikulec
10 //
11 //--------------------------------------------------
13 
15  : m_scales(ps.getParameter<int>("nbitPackingDTEta"),
16  ps.getParameter<bool>("signedPackingDTEta"),
17  ps.getParameter<int>("nbinsDTEta"),
18  ps.getParameter<double>("minDTEta"),
19  ps.getParameter<double>("maxDTEta"),
20  ps.getParameter<int>("offsetDTEta"),
21 
22  ps.getParameter<int>("nbitPackingCSCEta"),
23  ps.getParameter<int>("nbinsCSCEta"),
24  ps.getParameter<double>("minCSCEta"),
25  ps.getParameter<double>("maxCSCEta"),
26 
27  ps.getParameter<std::vector<double> >("scaleRPCEta"),
28  ps.getParameter<int>("nbitPackingBrlRPCEta"),
29  ps.getParameter<bool>("signedPackingBrlRPCEta"),
30  ps.getParameter<int>("nbinsBrlRPCEta"),
31  ps.getParameter<int>("offsetBrlRPCEta"),
32  ps.getParameter<int>("nbitPackingFwdRPCEta"),
33  ps.getParameter<bool>("signedPackingFwdRPCEta"),
34  ps.getParameter<int>("nbinsFwdRPCEta"),
35  ps.getParameter<int>("offsetFwdRPCEta"),
36 
37  ps.getParameter<int>("nbitPackingGMTEta"),
38  ps.getParameter<int>("nbinsGMTEta"),
39  ps.getParameter<std::vector<double> >("scaleGMTEta"),
40 
41  ps.getParameter<int>("nbitPackingPhi"),
42  ps.getParameter<bool>("signedPackingPhi"),
43  ps.getParameter<int>("nbinsPhi"),
44  ps.getParameter<double>("minPhi"),
45  ps.getParameter<double>("maxPhi")) {
47 }
48 
50 
51 //
52 // member functions
53 //
54 
55 // ------------ method called to produce the data ------------
56 std::unique_ptr<L1MuTriggerScales> L1MuTriggerScalesProducer::produceL1MuTriggerScales(
57  const L1MuTriggerScalesRcd& iRecord) {
58  return std::make_unique<L1MuTriggerScales>(m_scales);
59 }
electrons_cff.bool
bool
Definition: electrons_cff.py:372
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:138
edm::ParameterSet
Definition: ParameterSet.h:36
createfilelist.int
int
Definition: createfilelist.py:10
L1MuTriggerScalesProducer::produceL1MuTriggerScales
std::unique_ptr< L1MuTriggerScales > produceL1MuTriggerScales(const L1MuTriggerScalesRcd &)
Definition: L1MuTriggerScalesProducer.cc:56
L1MuTriggerScalesRcd
Definition: L1MuTriggerScalesRcd.h:12
std
Definition: JetResolutionObject.h:76
L1MuTriggerScalesProducer::L1MuTriggerScalesProducer
L1MuTriggerScalesProducer(const edm::ParameterSet &)
Definition: L1MuTriggerScalesProducer.cc:14
L1MuTriggerScalesProducer.h
L1MuTriggerScalesProducer::m_scales
L1MuTriggerScales m_scales
Definition: L1MuTriggerScalesProducer.h:42
L1MuTriggerScalesProducer::~L1MuTriggerScalesProducer
~L1MuTriggerScalesProducer() override
Definition: L1MuTriggerScalesProducer.cc:49