CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch1/src/L1TriggerConfig/L1GtConfigProducers/src/L1GtParametersTester.cc

Go to the documentation of this file.
00001 
00017 // this class header
00018 #include "L1TriggerConfig/L1GtConfigProducers/interface/L1GtParametersTester.h"
00019 
00020 // system include files
00021 #include <iomanip>
00022 
00023 // user include files
00024 //   base class
00025 #include "FWCore/Framework/interface/EDAnalyzer.h"
00026 
00027 #include "FWCore/Framework/interface/Event.h"
00028 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00029 
00030 #include "FWCore/Framework/interface/EventSetup.h"
00031 #include "FWCore/Framework/interface/ESHandle.h"
00032 
00033 #include "CondFormats/L1TObjects/interface/L1GtParameters.h"
00034 #include "CondFormats/DataRecord/interface/L1GtParametersRcd.h"
00035 
00036 #include "FWCore/MessageLogger/interface/MessageLogger.h"
00037 #include "FWCore/MessageLogger/interface/MessageDrop.h"
00038 
00039 // forward declarations
00040 
00041 // constructor(s)
00042 L1GtParametersTester::L1GtParametersTester(const edm::ParameterSet& parSet)
00043 {
00044     // empty
00045 }
00046 
00047 // destructor
00048 L1GtParametersTester::~L1GtParametersTester()
00049 {
00050     // empty
00051 }
00052 
00053 // loop over events
00054 void L1GtParametersTester::analyze(
00055     const edm::Event& iEvent, const edm::EventSetup& evSetup)
00056 {
00057 
00058     edm::ESHandle< L1GtParameters > l1GtPar ;
00059     evSetup.get< L1GtParametersRcd >().get( l1GtPar ) ;
00060 
00061     LogDebug("L1GtParametersTester") << (*l1GtPar) << std::endl;
00062 
00063 }