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 //
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") )
19 {
21 }
22 
24 
25 
26 //
27 // member functions
28 //
29 
30 // ------------ method called to produce the data ------------
31 std::auto_ptr<L1MuTriggerPtScale>
33 {
34  using namespace edm::es;
35 
36  std::auto_ptr<L1MuTriggerPtScale> l1muscale =
37  std::auto_ptr<L1MuTriggerPtScale>( new L1MuTriggerPtScale( m_scales ) );
38 
39  return l1muscale ;
40 }
41 
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 &)