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") )
46 {
48 }
49 
51 
52 
53 //
54 // member functions
55 //
56 
57 // ------------ method called to produce the data ------------
58 std::unique_ptr<L1MuTriggerScales>
60 {
61  return std::make_unique<L1MuTriggerScales>(m_scales);
62 }
63 
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:116
std::unique_ptr< L1MuTriggerScales > produceL1MuTriggerScales(const L1MuTriggerScalesRcd &)
L1MuTriggerScalesProducer(const edm::ParameterSet &)