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")) {
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 }
L1MuTriggerPtScaleProducer::produceL1MuTriggerPtScale
std::unique_ptr< L1MuTriggerPtScale > produceL1MuTriggerPtScale(const L1MuTriggerPtScaleRcd &)
Definition: L1MuTriggerPtScaleProducer.cc:29
electrons_cff.bool
bool
Definition: electrons_cff.py:366
L1MuTriggerPtScaleProducer::L1MuTriggerPtScaleProducer
L1MuTriggerPtScaleProducer(const edm::ParameterSet &)
Definition: L1MuTriggerPtScaleProducer.cc:14
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
L1MuTriggerPtScaleProducer::~L1MuTriggerPtScaleProducer
~L1MuTriggerPtScaleProducer() override
Definition: L1MuTriggerPtScaleProducer.cc:22
L1MuTriggerPtScaleProducer::m_scales
L1MuTriggerPtScale m_scales
Definition: L1MuTriggerPtScaleProducer.h:42
edm::ParameterSet
Definition: ParameterSet.h:47
createfilelist.int
int
Definition: createfilelist.py:10
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
L1MuTriggerPtScaleRcd
Definition: L1MuTriggerPtScaleRcd.h:12
L1MuTriggerPtScaleProducer.h
std
Definition: JetResolutionObject.h:76