CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 // $Date: 2008/04/17 23:33:09 $
8 // $Revision: 1.1 $
9 //
10 // Author :
11 // W. Sun (copied from L1MuTriggerScalesProducer)
12 //
13 //--------------------------------------------------
15 
17  : m_scales( ps.getParameter<int>("nbitPackingPt"),
18  ps.getParameter<bool>("signedPackingPt"),
19  ps.getParameter<int>("nbinsPt"),
20  ps.getParameter<std::vector<double> >("scalePt") )
21 {
23 }
24 
26 
27 
28 //
29 // member functions
30 //
31 
32 // ------------ method called to produce the data ------------
33 std::auto_ptr<L1MuTriggerPtScale>
35 {
36  using namespace edm::es;
37 
38  std::auto_ptr<L1MuTriggerPtScale> l1muscale =
39  std::auto_ptr<L1MuTriggerPtScale>( new L1MuTriggerPtScale( m_scales ) );
40 
41  return l1muscale ;
42 }
43 
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
L1MuTriggerPtScaleProducer(const edm::ParameterSet &)
std::auto_ptr< L1MuTriggerPtScale > produceL1MuTriggerPtScale(const L1MuTriggerPtScaleRcd &)