Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 /**
0002  * \class L1GtPsbSetupTester
0003  *
0004  *
0005  * Description: test analyzer for the setup of L1 GT PSB boards.
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/L1GtPsbSetupTester.h"
0017 
0018 // system include files
0019 #include <iostream>
0020 #include <iomanip>
0021 
0022 // user include files
0023 //   base class
0024 
0025 #include "FWCore/Framework/interface/EventSetup.h"
0026 #include "FWCore/Framework/interface/ESHandle.h"
0027 
0028 #include "CondFormats/L1TObjects/interface/L1GtPsbSetup.h"
0029 #include "CondFormats/DataRecord/interface/L1GtPsbSetupRcd.h"
0030 
0031 // forward declarations
0032 
0033 // constructor(s)
0034 L1GtPsbSetupTester::L1GtPsbSetupTester(const edm::ParameterSet& parSet) : m_getToken(esConsumes()) {
0035   // empty
0036 }
0037 
0038 // loop over events
0039 void L1GtPsbSetupTester::analyze(edm::StreamID, const edm::Event& iEvent, const edm::EventSetup& evSetup) const {
0040   evSetup.getData(m_getToken).print(std::cout);
0041   std::cout << std::endl;
0042 }