CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/L1TriggerConfig/GctConfigProducers/src/L1GctConfigDump.cc

Go to the documentation of this file.
00001 #include "L1TriggerConfig/GctConfigProducers/interface/L1GctConfigDump.h"
00002 
00003 #include "FWCore/Framework/interface/EDAnalyzer.h"
00004 #include "FWCore/PluginManager/interface/ModuleDef.h"
00005 #include "FWCore/Framework/interface/MakerMacros.h"
00006 
00007 #include "FWCore/Framework/interface/Event.h"
00008 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00009 
00010 #include "FWCore/Framework/interface/EventSetup.h"
00011 #include "FWCore/Framework/interface/ESHandle.h"
00012 
00013 #include "FWCore/MessageLogger/interface/MessageLogger.h"
00014 #include "FWCore/MessageLogger/interface/MessageDrop.h"
00015 
00016 #include "CondFormats/L1TObjects/interface/L1GctJetFinderParams.h"
00017 #include "CondFormats/L1TObjects/interface/L1GctChannelMask.h"
00018 #include "CondFormats/L1TObjects/interface/L1CaloEtScale.h"
00019 
00020 #include "CondFormats/DataRecord/interface/L1GctJetFinderParamsRcd.h"
00021 #include "CondFormats/DataRecord/interface/L1GctChannelMaskRcd.h"
00022 #include "CondFormats/DataRecord/interface/L1JetEtScaleRcd.h"
00023 #include "CondFormats/DataRecord/interface/L1HtMissScaleRcd.h"
00024 #include "CondFormats/DataRecord/interface/L1HfRingEtScaleRcd.h"
00025 
00026 #include <iomanip>
00027 
00028 
00029 L1GctConfigDump::L1GctConfigDump(const edm::ParameterSet& pSet)
00030 {
00031     // empty
00032 }
00033 
00034 // destructor
00035 L1GctConfigDump::~L1GctConfigDump()
00036 {
00037     // empty
00038 }
00039 
00040 void L1GctConfigDump::analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup) {
00041 
00042   // get records
00043 
00044   edm::ESHandle< L1GctJetFinderParams > jfParams;
00045   iSetup.get< L1GctJetFinderParamsRcd >().get( jfParams ) ;
00046 
00047   edm::ESHandle< L1GctChannelMask > chanMask;
00048   iSetup.get< L1GctChannelMaskRcd >().get( chanMask ) ;
00049 
00050   edm::ESHandle< L1CaloEtScale > jetScale;
00051   iSetup.get< L1JetEtScaleRcd >().get( jetScale ) ;
00052 
00053   edm::ESHandle< L1CaloEtScale > htmScale;
00054   iSetup.get< L1HtMissScaleRcd >().get( htmScale ) ;
00055   
00056   edm::ESHandle< L1CaloEtScale > hfRingScale;
00057   iSetup.get< L1HfRingEtScaleRcd >().get( hfRingScale ) ;
00058   
00059   edm::LogInfo("L1GctConfigDump") << (*jfParams) << std::endl;
00060   edm::LogInfo("L1GctConfigDump") << (*chanMask) << std::endl;
00061   edm::LogInfo("L1GctConfigDump") << "GCT jet Et scale : " << std::endl << (*jetScale) << std::endl;
00062   edm::LogInfo("L1GctConfigDump") << "GCT HtMiss scale : " << std::endl << (*htmScale) << std::endl;
00063   edm::LogInfo("L1GctConfigDump") << "GCT HF ring scale : " << std::endl << (*hfRingScale) << std::endl;
00064 
00065 }
00066 
00067 
00068 
00069 DEFINE_FWK_MODULE(L1GctConfigDump);