CMS 3D CMS Logo

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

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