CMS 3D CMS Logo

L1MuGMTScalesProducer.cc
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
3 // \class L1MuGMTScalesProducer
4 //
5 // Description: A class to produce the L1 GMT emulator scales record in the event setup
6 //
7 //
8 // Author :
9 // I. Mikulec
10 //
11 //--------------------------------------------------
13 
15  : m_scales(ps.getParameter<int>("nbitPackingReducedEta"),
16  ps.getParameter<int>("nbinsReducedEta"),
17  ps.getParameter<std::vector<double> >("scaleReducedEtaDT"),
18  ps.getParameter<std::vector<double> >("scaleReducedEtaBrlRPC"),
19  ps.getParameter<std::vector<double> >("scaleReducedEtaCSC"),
20  ps.getParameter<std::vector<double> >("scaleReducedEtaFwdRPC"),
21 
22  ps.getParameter<int>("nbitPackingDeltaEta"),
23  ps.getParameter<bool>("signedPackingDeltaEta"),
24  ps.getParameter<int>("nbinsDeltaEta"),
25  ps.getParameter<double>("minDeltaEta"),
26  ps.getParameter<double>("maxDeltaEta"),
27  ps.getParameter<int>("offsetDeltaEta"),
28 
29  ps.getParameter<int>("nbitPackingDeltaPhi"),
30  ps.getParameter<bool>("signedPackingDeltaPhi"),
31  ps.getParameter<int>("nbinsDeltaPhi"),
32  ps.getParameter<double>("minDeltaPhi"),
33  ps.getParameter<double>("maxDeltaPhi"),
34  ps.getParameter<int>("offsetDeltaPhi"),
35 
36  ps.getParameter<int>("nbitPackingOvlEtaDT"),
37  ps.getParameter<int>("nbinsOvlEtaDT"),
38  ps.getParameter<double>("minOvlEtaDT"),
39  ps.getParameter<double>("maxOvlEtaDT"),
40 
41  ps.getParameter<int>("nbitPackingOvlEtaCSC"),
42  ps.getParameter<int>("nbinsOvlEtaCSC"),
43  ps.getParameter<double>("minOvlEtaCSC"),
44  ps.getParameter<double>("maxOvlEtaCSC"),
45 
46  ps.getParameter<std::vector<double> >("scaleOvlEtaRPC"),
47  ps.getParameter<int>("nbitPackingOvlEtaBrlRPC"),
48  ps.getParameter<int>("nbinsOvlEtaBrlRPC"),
49  ps.getParameter<int>("nbitPackingOvlEtaFwdRPC"),
50  ps.getParameter<int>("nbinsOvlEtaFwdRPC")) {
52 }
53 
55 
56 //
57 // member functions
58 //
59 
60 // ------------ method called to produce the data ------------
61 std::unique_ptr<L1MuGMTScales> L1MuGMTScalesProducer::produceL1MuGMTScales(const L1MuGMTScalesRcd& iRecord) {
62  return std::make_unique<L1MuGMTScales>(m_scales);
63 }
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:165
std::unique_ptr< L1MuGMTScales > produceL1MuGMTScales(const L1MuGMTScalesRcd &)
L1MuGMTScalesProducer(const edm::ParameterSet &)