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