Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #include "L1TriggerConfig/GctConfigProducers/interface/L1GctConfigDump.h"
0002 
0003 #include "FWCore/PluginManager/interface/ModuleDef.h"
0004 #include "FWCore/Framework/interface/MakerMacros.h"
0005 
0006 #include "FWCore/Framework/interface/Event.h"
0007 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0008 
0009 #include "FWCore/Framework/interface/EventSetup.h"
0010 #include "FWCore/Framework/interface/ESHandle.h"
0011 
0012 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0013 #include "FWCore/MessageLogger/interface/MessageDrop.h"
0014 
0015 #include "CondFormats/L1TObjects/interface/L1GctJetFinderParams.h"
0016 #include "CondFormats/L1TObjects/interface/L1GctChannelMask.h"
0017 #include "CondFormats/L1TObjects/interface/L1CaloEtScale.h"
0018 
0019 #include "CondFormats/DataRecord/interface/L1GctJetFinderParamsRcd.h"
0020 #include "CondFormats/DataRecord/interface/L1GctChannelMaskRcd.h"
0021 #include "CondFormats/DataRecord/interface/L1JetEtScaleRcd.h"
0022 #include "CondFormats/DataRecord/interface/L1HtMissScaleRcd.h"
0023 #include "CondFormats/DataRecord/interface/L1HfRingEtScaleRcd.h"
0024 
0025 #include <iomanip>
0026 
0027 L1GctConfigDump::L1GctConfigDump(const edm::ParameterSet& pSet)
0028     : m_jfParamsToken{esConsumes()},
0029       m_chanMaskToken{esConsumes()},
0030       m_jetScaleToken{esConsumes()},
0031       m_htmScaleToken{esConsumes()},
0032       m_hfRingScaleToken{esConsumes()} {
0033   // empty
0034 }
0035 
0036 void L1GctConfigDump::analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup) {
0037   // get records
0038 
0039   edm::ESHandle<L1GctJetFinderParams> jfParams = iSetup.getHandle(m_jfParamsToken);
0040 
0041   edm::ESHandle<L1GctChannelMask> chanMask = iSetup.getHandle(m_chanMaskToken);
0042 
0043   edm::ESHandle<L1CaloEtScale> jetScale = iSetup.getHandle(m_jetScaleToken);
0044 
0045   edm::ESHandle<L1CaloEtScale> htmScale = iSetup.getHandle(m_htmScaleToken);
0046 
0047   edm::ESHandle<L1CaloEtScale> hfRingScale = iSetup.getHandle(m_hfRingScaleToken);
0048 
0049   edm::LogInfo("L1GctConfigDump") << (*jfParams) << std::endl;
0050   edm::LogInfo("L1GctConfigDump") << (*chanMask) << std::endl;
0051   edm::LogInfo("L1GctConfigDump") << "GCT jet Et scale : " << std::endl << (*jetScale) << std::endl;
0052   edm::LogInfo("L1GctConfigDump") << "GCT HtMiss scale : " << std::endl << (*htmScale) << std::endl;
0053   edm::LogInfo("L1GctConfigDump") << "GCT HF ring scale : " << std::endl << (*hfRingScale) << std::endl;
0054 }
0055 
0056 DEFINE_FWK_MODULE(L1GctConfigDump);