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") )
51 {
52 
54 
55 }
56 
57 
59 
60 
61 //
62 // member functions
63 //
64 
65 // ------------ method called to produce the data ------------
66 std::unique_ptr<L1MuGMTScales>
68 {
69  using namespace edm::es;
70 
71  std::unique_ptr<L1MuGMTScales> l1muscale = std::unique_ptr<L1MuGMTScales>( new L1MuGMTScales( m_scales ) );
72 
73  return l1muscale ;
74 }
75 
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:116
std::unique_ptr< L1MuGMTScales > produceL1MuGMTScales(const L1MuGMTScalesRcd &)
L1MuGMTScalesProducer(const edm::ParameterSet &)