Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:22:25

0001 // -*- C++ -*-
0002 //
0003 // Package:    RPCConfigOnlineProd
0004 // Class:      RPCConfigOnlineProd
0005 //
0006 /**\class RPCConfigOnlineProd RPCConfigOnlineProd.h L1Trigger/RPCConfigProducers/src/RPCConfigOnlineProd.cc
0007 
0008  Description: <one line class summary>
0009 
0010  Implementation:
0011      <Notes on implementation>
0012 */
0013 //
0014 // Original Author:  Werner Man-Li Sun
0015 //         Created:  Thu Oct  2 19:40:12 CEST 2008
0016 // $Id$
0017 //
0018 //
0019 
0020 // system include files
0021 
0022 // user include files
0023 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0024 
0025 #include "CondTools/L1Trigger/interface/L1ConfigOnlineProdBase.h"
0026 
0027 #include "CondFormats/L1TObjects/interface/L1RPCConfig.h"
0028 #include "CondFormats/DataRecord/interface/L1RPCConfigRcd.h"
0029 
0030 //
0031 // class declaration
0032 //
0033 
0034 class RPCConfigOnlineProd : public L1ConfigOnlineProdBase<L1RPCConfigRcd, L1RPCConfig> {
0035 public:
0036   RPCConfigOnlineProd(const edm::ParameterSet&);
0037   ~RPCConfigOnlineProd() override;
0038 
0039   std::unique_ptr<L1RPCConfig> newObject(const std::string& objectKey) override;
0040 
0041 private:
0042   // ----------member data ---------------------------
0043 };
0044 
0045 //
0046 // constants, enums and typedefs
0047 //
0048 
0049 //
0050 // static data member definitions
0051 //
0052 
0053 //
0054 // constructors and destructor
0055 //
0056 RPCConfigOnlineProd::RPCConfigOnlineProd(const edm::ParameterSet& iConfig)
0057     : L1ConfigOnlineProdBase<L1RPCConfigRcd, L1RPCConfig>(iConfig) {
0058   //the following line is needed to tell the framework what
0059   // data is being produced
0060 
0061   //now do what ever other initialization is needed
0062 }
0063 
0064 RPCConfigOnlineProd::~RPCConfigOnlineProd() {
0065   // do anything here that needs to be done at desctruction time
0066   // (e.g. close files, deallocate resources etc.)
0067 }
0068 
0069 std::unique_ptr<L1RPCConfig> RPCConfigOnlineProd::newObject(const std::string& objectKey) {
0070   edm::LogError("L1-O2O") << "L1RPCConfig object with key " << objectKey << " not in ORCON!";
0071 
0072   return std::unique_ptr<L1RPCConfig>();
0073 }
0074 
0075 //
0076 // member functions
0077 //
0078 
0079 // ------------ method called to produce the data  ------------
0080 
0081 //define this as a plug-in
0082 DEFINE_FWK_EVENTSETUP_MODULE(RPCConfigOnlineProd);