Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 11:14:21

0001 //-------------------------------------------------
0002 //
0003 //   \class L1MuTriggerPtScaleProducer
0004 //
0005 //   Description:  A class to produce the L1 mu emulator scales record in the event setup
0006 //
0007 //
0008 //   Author :
0009 //   W. Sun (copied from L1MuTriggerScalesProducer)
0010 //
0011 //--------------------------------------------------
0012 #include "L1TriggerConfig/L1ScalesProducers/interface/L1MuTriggerPtScaleProducer.h"
0013 
0014 L1MuTriggerPtScaleProducer::L1MuTriggerPtScaleProducer(const edm::ParameterSet& ps)
0015     : m_scales(ps.getParameter<int>("nbitPackingPt"),
0016                ps.getParameter<bool>("signedPackingPt"),
0017                ps.getParameter<int>("nbinsPt"),
0018                ps.getParameter<std::vector<double> >("scalePt")) {
0019   setWhatProduced(this, &L1MuTriggerPtScaleProducer::produceL1MuTriggerPtScale);
0020 }
0021 
0022 L1MuTriggerPtScaleProducer::~L1MuTriggerPtScaleProducer() {}
0023 
0024 //
0025 // member functions
0026 //
0027 
0028 // ------------ method called to produce the data  ------------
0029 std::unique_ptr<L1MuTriggerPtScale> L1MuTriggerPtScaleProducer::produceL1MuTriggerPtScale(
0030     const L1MuTriggerPtScaleRcd& iRecord) {
0031   return std::make_unique<L1MuTriggerPtScale>(m_scales);
0032 }