CMS 3D CMS Logo

L1MuTriggerPtScaleProducer.cc
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
3 // \class L1MuTriggerPtScaleProducer
4 //
5 // Description: A class to produce the L1 mu emulator scales record in the event setup
6 //
7 //
8 // Author :
9 // W. Sun (copied from L1MuTriggerScalesProducer)
10 //
11 //--------------------------------------------------
13 
15  : m_scales( ps.getParameter<int>("nbitPackingPt"),
16  ps.getParameter<bool>("signedPackingPt"),
17  ps.getParameter<int>("nbinsPt"),
18  ps.getParameter<std::vector<double> >("scalePt") )
19 {
21 }
22 
24 
25 
26 //
27 // member functions
28 //
29 
30 // ------------ method called to produce the data ------------
31 std::unique_ptr<L1MuTriggerPtScale>
33 {
34  using namespace edm::es;
35 
36  std::unique_ptr<L1MuTriggerPtScale> l1muscale =
37  std::unique_ptr<L1MuTriggerPtScale>( new L1MuTriggerPtScale( m_scales ) );
38 
39  return l1muscale ;
40 }
41 
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:116
std::unique_ptr< L1MuTriggerPtScale > produceL1MuTriggerPtScale(const L1MuTriggerPtScaleRcd &)
L1MuTriggerPtScaleProducer(const edm::ParameterSet &)