CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_1/src/L1TriggerConfig/RPCTriggerConfig/src/RPCConfigOnlineProd.cc

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // Package:    RPCConfigOnlineProd
00004 // Class:      RPCConfigOnlineProd
00005 // 
00013 //
00014 // Original Author:  Werner Man-Li Sun
00015 //         Created:  Thu Oct  2 19:40:12 CEST 2008
00016 // $Id: RPCConfigOnlineProd.cc,v 1.1 2008/10/13 02:41:02 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/L1RPCConfig.h"
00029 #include "CondFormats/DataRecord/interface/L1RPCConfigRcd.h"
00030 
00031 //
00032 // class declaration
00033 //
00034 
00035 class RPCConfigOnlineProd : public L1ConfigOnlineProdBase< L1RPCConfigRcd,
00036                                                            L1RPCConfig > {
00037    public:
00038       RPCConfigOnlineProd(const edm::ParameterSet&);
00039       ~RPCConfigOnlineProd();
00040 
00041   virtual boost::shared_ptr< L1RPCConfig > 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 RPCConfigOnlineProd::RPCConfigOnlineProd(const edm::ParameterSet& iConfig)
00060   : L1ConfigOnlineProdBase< L1RPCConfigRcd, L1RPCConfig >( iConfig )
00061 {
00062    //the following line is needed to tell the framework what
00063    // data is being produced
00064 
00065    //now do what ever other initialization is needed
00066 }
00067 
00068 
00069 RPCConfigOnlineProd::~RPCConfigOnlineProd()
00070 {
00071  
00072    // do anything here that needs to be done at desctruction time
00073    // (e.g. close files, deallocate resources etc.)
00074 
00075 }
00076 
00077 boost::shared_ptr< L1RPCConfig >
00078 RPCConfigOnlineProd::newObject( const std::string& objectKey )
00079 {
00080   edm::LogError( "L1-O2O" ) << "L1RPCConfig object with key "
00081                             << objectKey << " not in ORCON!" ;
00082 
00083   return boost::shared_ptr< L1RPCConfig >() ;
00084 }
00085 
00086 //
00087 // member functions
00088 //
00089 
00090 
00091 // ------------ method called to produce the data  ------------
00092 
00093 
00094 //define this as a plug-in
00095 DEFINE_FWK_EVENTSETUP_MODULE(RPCConfigOnlineProd);