CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_4/src/L1TriggerConfig/RPCTriggerConfig/src/L1RPCConeDefinitionOnlineProd.cc

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // Package:    L1RPCConeDefinitionOnlineProd
00004 // Class:      L1RPCConeDefinitionOnlineProd
00005 // 
00013 //
00014 // Original Author:  Werner Man-Li Sun
00015 //         Created:  Wed Apr  1 20:23:43 CEST 2009
00016 // $Id: L1RPCConeDefinitionOnlineProd.cc,v 1.1 2009/04/01 18:33:58 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/L1RPCConeDefinition.h"
00029 #include "CondFormats/DataRecord/interface/L1RPCConeDefinitionRcd.h"
00030 
00031 //
00032 // class declaration
00033 //
00034 
00035 class L1RPCConeDefinitionOnlineProd : public L1ConfigOnlineProdBase<
00036   L1RPCConeDefinitionRcd, L1RPCConeDefinition > {
00037    public:
00038       L1RPCConeDefinitionOnlineProd(const edm::ParameterSet&);
00039       ~L1RPCConeDefinitionOnlineProd();
00040 
00041   virtual boost::shared_ptr< L1RPCConeDefinition > newObject(
00042     const std::string& objectKey ) ;
00043 
00044    private:
00045       // ----------member data ---------------------------
00046 };
00047 
00048 //
00049 // constants, enums and typedefs
00050 //
00051 
00052 //
00053 // static data member definitions
00054 //
00055 
00056 //
00057 // constructors and destructor
00058 //
00059 L1RPCConeDefinitionOnlineProd::L1RPCConeDefinitionOnlineProd(const edm::ParameterSet& iConfig)
00060   : L1ConfigOnlineProdBase< L1RPCConeDefinitionRcd,
00061                             L1RPCConeDefinition >( iConfig )
00062 {
00063    //the following line is needed to tell the framework what
00064    // data is being produced
00065 
00066    //now do what ever other initialization is needed
00067 }
00068 
00069 
00070 L1RPCConeDefinitionOnlineProd::~L1RPCConeDefinitionOnlineProd()
00071 {
00072  
00073    // do anything here that needs to be done at desctruction time
00074    // (e.g. close files, deallocate resources etc.)
00075 
00076 }
00077 
00078 boost::shared_ptr< L1RPCConeDefinition >
00079 L1RPCConeDefinitionOnlineProd::newObject( const std::string& objectKey )
00080 {
00081   edm::LogError( "L1-O2O" ) << "L1RPCConeDefinition object with key "
00082                             << objectKey << " not in ORCON!" ;
00083 
00084   return boost::shared_ptr< L1RPCConeDefinition >() ;
00085 }
00086 
00087 //
00088 // member functions
00089 //
00090 
00091 
00092 // ------------ method called to produce the data  ------------
00093 
00094 
00095 //define this as a plug-in
00096 DEFINE_FWK_EVENTSETUP_MODULE(L1RPCConeDefinitionOnlineProd);