CMS 3D CMS Logo

L1MuTriggerPtScaleProducer.cc

Go to the documentation of this file.
00001 //-------------------------------------------------
00002 //
00003 //   \class L1MuTriggerPtScaleProducer
00004 //
00005 //   Description:  A class to produce the L1 mu emulator scales record in the event setup
00006 //
00007 //   $Date: 2008/04/17 23:33:09 $
00008 //   $Revision: 1.1 $
00009 //
00010 //   Author :
00011 //   W. Sun (copied from L1MuTriggerScalesProducer)
00012 //
00013 //--------------------------------------------------
00014 #include "L1TriggerConfig/L1ScalesProducers/interface/L1MuTriggerPtScaleProducer.h"
00015 
00016 L1MuTriggerPtScaleProducer::L1MuTriggerPtScaleProducer(const edm::ParameterSet& ps)
00017   : m_scales( ps.getParameter<int>("nbitPackingPt"),
00018               ps.getParameter<bool>("signedPackingPt"),
00019               ps.getParameter<int>("nbinsPt"),
00020               ps.getParameter<std::vector<double> >("scalePt") )
00021 {
00022   setWhatProduced(this, &L1MuTriggerPtScaleProducer::produceL1MuTriggerPtScale);
00023 }
00024 
00025 L1MuTriggerPtScaleProducer::~L1MuTriggerPtScaleProducer() {}
00026 
00027 
00028 //
00029 // member functions
00030 //
00031 
00032 // ------------ method called to produce the data  ------------
00033 std::auto_ptr<L1MuTriggerPtScale> 
00034 L1MuTriggerPtScaleProducer::produceL1MuTriggerPtScale(const L1MuTriggerPtScaleRcd& iRecord)
00035 {
00036    using namespace edm::es;
00037 
00038    std::auto_ptr<L1MuTriggerPtScale> l1muscale =
00039      std::auto_ptr<L1MuTriggerPtScale>( new L1MuTriggerPtScale( m_scales ) );
00040 
00041    return l1muscale ;
00042 }
00043 

Generated on Tue Jun 9 17:40:28 2009 for CMSSW by  doxygen 1.5.4