CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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")) {
20 }
21 
23 
24 //
25 // member functions
26 //
27 
28 // ------------ method called to produce the data ------------
29 std::unique_ptr<L1MuTriggerPtScale> L1MuTriggerPtScaleProducer::produceL1MuTriggerPtScale(
30  const L1MuTriggerPtScaleRcd& iRecord) {
31  return std::make_unique<L1MuTriggerPtScale>(m_scales);
32 }
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
std::unique_ptr< L1MuTriggerPtScale > produceL1MuTriggerPtScale(const L1MuTriggerPtScaleRcd &)
L1MuTriggerPtScaleProducer(const edm::ParameterSet &)