Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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