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 L1TMuonBarrelObjectKeysOnlineProd : public L1ObjectKeysOnlineProdBaseExt {
0006 private:
0007 public:
0008   void fillObjectKeys(L1TriggerKeyExt* pL1TriggerKey) override;
0009 
0010   L1TMuonBarrelObjectKeysOnlineProd(const edm::ParameterSet&);
0011   ~L1TMuonBarrelObjectKeysOnlineProd(void) override {}
0012 };
0013 
0014 L1TMuonBarrelObjectKeysOnlineProd::L1TMuonBarrelObjectKeysOnlineProd(const edm::ParameterSet& iConfig)
0015     : L1ObjectKeysOnlineProdBaseExt(iConfig) {}
0016 
0017 void L1TMuonBarrelObjectKeysOnlineProd::fillObjectKeys(L1TriggerKeyExt* pL1TriggerKey) {
0018   std::string BMTFKey = pL1TriggerKey->subsystemKey(L1TriggerKeyExt::kBMTF);
0019 
0020   std::string stage2Schema = "CMS_TRG_L1_CONF";
0021 
0022   // simply assign the top level key to the record
0023   pL1TriggerKey->add("L1TMuonBarrelParamsO2ORcd", "L1TMuonBarrelParams", BMTFKey);
0024 }
0025 
0026 //define this as a plug-in
0027 DEFINE_FWK_EVENTSETUP_MODULE(L1TMuonBarrelObjectKeysOnlineProd);