CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 }
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
std::unique_ptr< L1MuTriggerScales > produceL1MuTriggerScales(const L1MuTriggerScalesRcd &)
L1MuTriggerScalesProducer(const edm::ParameterSet &)