CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/L1TriggerConfig/DTTrackFinder/src/DTEtaPatternLutOnlineProd.cc

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // Package:    DTEtaPatternLutOnlineProd
00004 // Class:      DTEtaPatternLutOnlineProd
00005 // 
00013 //
00014 // Original Author:  Werner Man-Li Sun
00015 //         Created:  Thu Oct  2 19:40:12 CEST 2008
00016 // $Id: DTEtaPatternLutOnlineProd.cc,v 1.1 2008/10/13 03:24:50 wsun Exp $
00017 //
00018 //
00019 
00020 
00021 // system include files
00022 
00023 // user include files
00024 #include "FWCore/MessageLogger/interface/MessageLogger.h"
00025 
00026 #include "CondTools/L1Trigger/interface/L1ConfigOnlineProdBase.h"
00027 
00028 #include "CondFormats/L1TObjects/interface/L1MuDTEtaPatternLut.h"
00029 #include "CondFormats/DataRecord/interface/L1MuDTEtaPatternLutRcd.h"
00030 
00031 //
00032 // class declaration
00033 //
00034 
00035 class DTEtaPatternLutOnlineProd :
00036   public L1ConfigOnlineProdBase< L1MuDTEtaPatternLutRcd, L1MuDTEtaPatternLut >
00037 {
00038    public:
00039       DTEtaPatternLutOnlineProd(const edm::ParameterSet&);
00040       ~DTEtaPatternLutOnlineProd();
00041 
00042   virtual boost::shared_ptr< L1MuDTEtaPatternLut > newObject(
00043     const std::string& objectKey ) ;
00044 
00045    private:
00046       // ----------member data ---------------------------
00047 };
00048 
00049 //
00050 // constants, enums and typedefs
00051 //
00052 
00053 //
00054 // static data member definitions
00055 //
00056 
00057 //
00058 // constructors and destructor
00059 //
00060 DTEtaPatternLutOnlineProd::DTEtaPatternLutOnlineProd(
00061   const edm::ParameterSet& iConfig)
00062   : L1ConfigOnlineProdBase< L1MuDTEtaPatternLutRcd,
00063                             L1MuDTEtaPatternLut >( iConfig )
00064 {
00065    //the following line is needed to tell the framework what
00066    // data is being produced
00067 
00068    //now do what ever other initialization is needed
00069 }
00070 
00071 
00072 DTEtaPatternLutOnlineProd::~DTEtaPatternLutOnlineProd()
00073 {
00074  
00075    // do anything here that needs to be done at desctruction time
00076    // (e.g. close files, deallocate resources etc.)
00077 
00078 }
00079 
00080 boost::shared_ptr< L1MuDTEtaPatternLut >
00081 DTEtaPatternLutOnlineProd::newObject( const std::string& objectKey )
00082 {
00083   edm::LogError( "L1-O2O" ) << "L1MuDTEtaPatternLut object with key "
00084                             << objectKey << " not in ORCON!" ;
00085 
00086   return boost::shared_ptr< L1MuDTEtaPatternLut >() ;
00087 }
00088 
00089 //
00090 // member functions
00091 //
00092 
00093 
00094 // ------------ method called to produce the data  ------------
00095 
00096 
00097 //define this as a plug-in
00098 DEFINE_FWK_EVENTSETUP_MODULE(DTEtaPatternLutOnlineProd);