CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch12/src/L1TriggerConfig/L1GtConfigProducers/src/L1GtStableParametersTester.cc

Go to the documentation of this file.
00001 
00017 // this class header
00018 #include "L1TriggerConfig/L1GtConfigProducers/interface/L1GtStableParametersTester.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/L1GtStableParameters.h"
00034 #include "CondFormats/DataRecord/interface/L1GtStableParametersRcd.h"
00035 
00036 // forward declarations
00037 
00038 // constructor(s)
00039 L1GtStableParametersTester::L1GtStableParametersTester(
00040     const edm::ParameterSet& parSet) {
00041     // empty
00042 }
00043 
00044 // destructor
00045 L1GtStableParametersTester::~L1GtStableParametersTester() {
00046     // empty
00047 }
00048 
00049 // loop over events
00050 void L1GtStableParametersTester::analyze(const edm::Event& iEvent,
00051     const edm::EventSetup& evSetup) {
00052 
00053     edm::ESHandle< L1GtStableParameters> l1GtPar;
00054     evSetup.get< L1GtStableParametersRcd>().get(l1GtPar) ;
00055 
00056     l1GtPar->print(std::cout);
00057 
00058 }