Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 /**
0002  * \class L1GtBoardMapsTester
0003  *
0004  *
0005  * Description: test analyzer for various mappings of the L1 GT 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/L1GtBoardMapsTester.h"
0017 
0018 // system include files
0019 #include <iomanip>
0020 #include <iostream>
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/L1GtBoardMaps.h"
0029 #include "CondFormats/DataRecord/interface/L1GtBoardMapsRcd.h"
0030 
0031 // forward declarations
0032 
0033 // constructor(s)
0034 L1GtBoardMapsTester::L1GtBoardMapsTester(const edm::ParameterSet& parSet) : m_getToken(esConsumes()) {
0035   // empty
0036 }
0037 
0038 // loop over events
0039 void L1GtBoardMapsTester::analyze(edm::StreamID, const edm::Event& iEvent, const edm::EventSetup& evSetup) const {
0040   L1GtBoardMaps const& l1GtBM = evSetup.getData(m_getToken);
0041 
0042   l1GtBM.print(std::cout);
0043   std::cout << std::endl;
0044 
0045   // print for simplicity the individual maps
0046 
0047   l1GtBM.printGtDaqRecordMap(std::cout);
0048   std::cout << std::endl;
0049 
0050   l1GtBM.printGtEvmRecordMap(std::cout);
0051   std::cout << std::endl;
0052 
0053   l1GtBM.printGtDaqActiveBoardsMap(std::cout);
0054   std::cout << std::endl;
0055 
0056   l1GtBM.printGtEvmActiveBoardsMap(std::cout);
0057   std::cout << std::endl;
0058 
0059   l1GtBM.printGtBoardSlotMap(std::cout);
0060   std::cout << std::endl;
0061 
0062   l1GtBM.printGtBoardHexNameMap(std::cout);
0063   std::cout << std::endl;
0064 
0065   l1GtBM.printGtQuadToPsbMap(std::cout);
0066   std::cout << std::endl;
0067 }