CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch2/src/L1TriggerConfig/DTTrackFinder/src/DTPtaLutOnlineProd.cc

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // Package:    DTPtaLutOnlineProd
00004 // Class:      DTPtaLutOnlineProd
00005 // 
00013 //
00014 // Original Author:  Werner Man-Li Sun
00015 //         Created:  Thu Oct  2 19:40:12 CEST 2008
00016 // $Id: DTPtaLutOnlineProd.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/L1MuDTPtaLut.h"
00029 #include "CondFormats/DataRecord/interface/L1MuDTPtaLutRcd.h"
00030 
00031 //
00032 // class declaration
00033 //
00034 
00035 class DTPtaLutOnlineProd :
00036   public L1ConfigOnlineProdBase< L1MuDTPtaLutRcd, L1MuDTPtaLut >
00037 {
00038    public:
00039       DTPtaLutOnlineProd(const edm::ParameterSet&);
00040       ~DTPtaLutOnlineProd();
00041 
00042   virtual boost::shared_ptr< L1MuDTPtaLut > 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 DTPtaLutOnlineProd::DTPtaLutOnlineProd(
00061   const edm::ParameterSet& iConfig)
00062   : L1ConfigOnlineProdBase< L1MuDTPtaLutRcd,
00063                             L1MuDTPtaLut >( 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 DTPtaLutOnlineProd::~DTPtaLutOnlineProd()
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< L1MuDTPtaLut >
00081 DTPtaLutOnlineProd::newObject( const std::string& objectKey )
00082 {
00083   edm::LogError( "L1-O2O" ) << "L1MuDTPtaLut object with key "
00084                             << objectKey << " not in ORCON!" ;
00085 
00086   return boost::shared_ptr< L1MuDTPtaLut >() ;
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(DTPtaLutOnlineProd);