CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/L1TriggerConfig/L1ScalesProducers/src/L1MuGMTScalesProducer.cc

Go to the documentation of this file.
00001 //-------------------------------------------------
00002 //
00003 //   \class L1MuGMTScalesProducer
00004 //
00005 //   Description:  A class to produce the L1 GMT 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/L1MuGMTScalesProducer.h"
00015 
00016 L1MuGMTScalesProducer::L1MuGMTScalesProducer(const edm::ParameterSet& ps)
00017   : m_scales( ps.getParameter<int>("nbitPackingReducedEta"),
00018               ps.getParameter<int>("nbinsReducedEta"),
00019               ps.getParameter<std::vector<double> >("scaleReducedEtaDT"),
00020               ps.getParameter<std::vector<double> >("scaleReducedEtaBrlRPC"),
00021               ps.getParameter<std::vector<double> >("scaleReducedEtaCSC"),
00022               ps.getParameter<std::vector<double> >("scaleReducedEtaFwdRPC"),
00023 
00024               ps.getParameter<int>("nbitPackingDeltaEta"),
00025               ps.getParameter<bool>("signedPackingDeltaEta"),
00026               ps.getParameter<int>("nbinsDeltaEta"),
00027               ps.getParameter<double>("minDeltaEta"),
00028               ps.getParameter<double>("maxDeltaEta"),
00029               ps.getParameter<int>("offsetDeltaEta"),
00030 
00031               ps.getParameter<int>("nbitPackingDeltaPhi"),
00032               ps.getParameter<bool>("signedPackingDeltaPhi"),
00033               ps.getParameter<int>("nbinsDeltaPhi"),
00034               ps.getParameter<double>("minDeltaPhi"),
00035               ps.getParameter<double>("maxDeltaPhi"),
00036               ps.getParameter<int>("offsetDeltaPhi"),
00037 
00038               ps.getParameter<int>("nbitPackingOvlEtaDT"),
00039               ps.getParameter<int>("nbinsOvlEtaDT"),
00040               ps.getParameter<double>("minOvlEtaDT"),
00041               ps.getParameter<double>("maxOvlEtaDT"),
00042 
00043               ps.getParameter<int>("nbitPackingOvlEtaCSC"),
00044               ps.getParameter<int>("nbinsOvlEtaCSC"),
00045               ps.getParameter<double>("minOvlEtaCSC"),
00046               ps.getParameter<double>("maxOvlEtaCSC"),
00047 
00048               ps.getParameter<std::vector<double> >("scaleOvlEtaRPC"),
00049               ps.getParameter<int>("nbitPackingOvlEtaBrlRPC"),
00050               ps.getParameter<int>("nbinsOvlEtaBrlRPC"),
00051               ps.getParameter<int>("nbitPackingOvlEtaFwdRPC"),
00052               ps.getParameter<int>("nbinsOvlEtaFwdRPC") )
00053 {
00054  
00055   setWhatProduced(this, &L1MuGMTScalesProducer::produceL1MuGMTScales);
00056   
00057 }
00058 
00059 
00060 L1MuGMTScalesProducer::~L1MuGMTScalesProducer() {}
00061 
00062 
00063 //
00064 // member functions
00065 //
00066 
00067 // ------------ method called to produce the data  ------------
00068 std::auto_ptr<L1MuGMTScales> 
00069 L1MuGMTScalesProducer::produceL1MuGMTScales(const L1MuGMTScalesRcd& iRecord)
00070 {
00071    using namespace edm::es;
00072 
00073    std::auto_ptr<L1MuGMTScales> l1muscale = std::auto_ptr<L1MuGMTScales>( new L1MuGMTScales( m_scales ) );
00074 
00075    return l1muscale ;
00076 }
00077