Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-07-16 00:28:47

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