CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/L1TriggerConfig/L1ScalesProducers/src/L1MuTriggerScalesProducer.cc

Go to the documentation of this file.
00001 //-------------------------------------------------
00002 //
00003 //   \class L1MuTriggerScalesProducer
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:41 $
00008 //   $Revision: 1.2 $
00009 //
00010 //   Author :
00011 //   I. Mikulec
00012 //
00013 //--------------------------------------------------
00014 #include "L1TriggerConfig/L1ScalesProducers/interface/L1MuTriggerScalesProducer.h"
00015 
00016 L1MuTriggerScalesProducer::L1MuTriggerScalesProducer(const edm::ParameterSet& ps)
00017   : m_scales( ps.getParameter<int>("nbitPackingDTEta"),
00018               ps.getParameter<bool>("signedPackingDTEta"),
00019               ps.getParameter<int>("nbinsDTEta"),
00020               ps.getParameter<double>("minDTEta"),
00021               ps.getParameter<double>("maxDTEta"),
00022               ps.getParameter<int>("offsetDTEta"),
00023 
00024               ps.getParameter<int>("nbitPackingCSCEta"),
00025               ps.getParameter<int>("nbinsCSCEta"),
00026               ps.getParameter<double>("minCSCEta"),
00027               ps.getParameter<double>("maxCSCEta"),
00028 
00029               ps.getParameter<std::vector<double> >("scaleRPCEta"),
00030               ps.getParameter<int>("nbitPackingBrlRPCEta"),
00031               ps.getParameter<bool>("signedPackingBrlRPCEta"),
00032               ps.getParameter<int>("nbinsBrlRPCEta"),
00033               ps.getParameter<int>("offsetBrlRPCEta"),
00034               ps.getParameter<int>("nbitPackingFwdRPCEta"),
00035               ps.getParameter<bool>("signedPackingFwdRPCEta"),
00036               ps.getParameter<int>("nbinsFwdRPCEta"),
00037               ps.getParameter<int>("offsetFwdRPCEta"),
00038 
00039               ps.getParameter<int>("nbitPackingGMTEta"),
00040               ps.getParameter<int>("nbinsGMTEta"),
00041               ps.getParameter<std::vector<double> >("scaleGMTEta"),
00042 
00043               ps.getParameter<int>("nbitPackingPhi"),
00044               ps.getParameter<bool>("signedPackingPhi"),
00045               ps.getParameter<int>("nbinsPhi"),
00046               ps.getParameter<double>("minPhi"),
00047               ps.getParameter<double>("maxPhi") )
00048 {
00049   setWhatProduced(this, &L1MuTriggerScalesProducer::produceL1MuTriggerScales);
00050 }
00051 
00052 L1MuTriggerScalesProducer::~L1MuTriggerScalesProducer() {}
00053 
00054 
00055 //
00056 // member functions
00057 //
00058 
00059 // ------------ method called to produce the data  ------------
00060 std::auto_ptr<L1MuTriggerScales> 
00061 L1MuTriggerScalesProducer::produceL1MuTriggerScales(const L1MuTriggerScalesRcd& iRecord)
00062 {
00063    using namespace edm::es;
00064 
00065    std::auto_ptr<L1MuTriggerScales> l1muscale =
00066      std::auto_ptr<L1MuTriggerScales>( new L1MuTriggerScales( m_scales ) );
00067 
00068    return l1muscale ;
00069 }
00070