Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:22:19

0001 /**
0002  * \class L1GtStableParametersTester
0003  * 
0004  * 
0005  * Description: test analyzer for L1 GT parameters.  
0006  *
0007  * Implementation:
0008  *    <TODO: enter implementation details>
0009  *   
0010  * \author: Vasile Mihai Ghete - HEPHY Vienna
0011  * 
0012  *
0013  */
0014 
0015 // this class header
0016 #include "L1TriggerConfig/L1GtConfigProducers/interface/L1GtStableParametersTester.h"
0017 
0018 // system include files
0019 #include <iomanip>
0020 #include <iostream>
0021 
0022 // user include files
0023 #include "FWCore/Framework/interface/Event.h"
0024 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0025 
0026 #include "FWCore/Framework/interface/EventSetup.h"
0027 #include "FWCore/Framework/interface/ESHandle.h"
0028 
0029 #include "CondFormats/L1TObjects/interface/L1GtStableParameters.h"
0030 #include "CondFormats/DataRecord/interface/L1GtStableParametersRcd.h"
0031 
0032 // forward declarations
0033 
0034 // constructor(s)
0035 L1GtStableParametersTester::L1GtStableParametersTester(const edm::ParameterSet& parSet) : m_l1GtParToken(esConsumes()) {
0036   // empty
0037 }
0038 
0039 // loop over events
0040 void L1GtStableParametersTester::analyze(edm::StreamID,
0041                                          const edm::Event& iEvent,
0042                                          const edm::EventSetup& evSetup) const {
0043   evSetup.getData(m_l1GtParToken).print(std::cout);
0044 }