Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #include <iostream>
0002 #include "CondTools/L1TriggerExt/interface/L1ObjectKeysOnlineProdBaseExt.h"
0003 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0004 
0005 class L1TCaloParamsObjectKeysOnlineProd : public L1ObjectKeysOnlineProdBaseExt {
0006 private:
0007 public:
0008   void fillObjectKeys(L1TriggerKeyExt* pL1TriggerKey) override;
0009 
0010   L1TCaloParamsObjectKeysOnlineProd(const edm::ParameterSet&);
0011   ~L1TCaloParamsObjectKeysOnlineProd(void) override {}
0012 };
0013 
0014 L1TCaloParamsObjectKeysOnlineProd::L1TCaloParamsObjectKeysOnlineProd(const edm::ParameterSet& iConfig)
0015     : L1ObjectKeysOnlineProdBaseExt(iConfig) {}
0016 
0017 void L1TCaloParamsObjectKeysOnlineProd::fillObjectKeys(L1TriggerKeyExt* pL1TriggerKey) {
0018   std::string CALOKey = pL1TriggerKey->subsystemKey(L1TriggerKeyExt::kCALO);
0019 
0020   // simply assign the top level key to the record
0021   pL1TriggerKey->add("L1TCaloParamsO2ORcd", "CaloParams", CALOKey);
0022 }
0023 
0024 //define this as a plug-in
0025 DEFINE_FWK_EVENTSETUP_MODULE(L1TCaloParamsObjectKeysOnlineProd);