00001 00017 // this class header 00018 #include "L1TriggerConfig/L1GtConfigProducers/interface/L1GtBoardMapsTester.h" 00019 00020 // system include files 00021 #include <iomanip> 00022 00023 // user include files 00024 // base class 00025 00026 #include "FWCore/Framework/interface/EventSetup.h" 00027 #include "FWCore/Framework/interface/ESHandle.h" 00028 00029 #include "CondFormats/L1TObjects/interface/L1GtBoardMaps.h" 00030 #include "CondFormats/DataRecord/interface/L1GtBoardMapsRcd.h" 00031 00032 // forward declarations 00033 00034 // constructor(s) 00035 L1GtBoardMapsTester::L1GtBoardMapsTester(const edm::ParameterSet& parSet) 00036 { 00037 // empty 00038 } 00039 00040 // destructor 00041 L1GtBoardMapsTester::~L1GtBoardMapsTester() 00042 { 00043 // empty 00044 } 00045 00046 // loop over events 00047 void L1GtBoardMapsTester::analyze( 00048 const edm::Event& iEvent, const edm::EventSetup& evSetup) 00049 { 00050 00051 00052 edm::ESHandle< L1GtBoardMaps > l1GtBM ; 00053 evSetup.get< L1GtBoardMapsRcd >().get( l1GtBM ) ; 00054 00055 l1GtBM->print(std::cout); 00056 std::cout << std::endl; 00057 00058 // print for simplicity the individual maps 00059 00060 l1GtBM->printGtDaqRecordMap(std::cout); 00061 std::cout << std::endl; 00062 00063 l1GtBM->printGtEvmRecordMap(std::cout); 00064 std::cout << std::endl; 00065 00066 l1GtBM->printGtDaqActiveBoardsMap(std::cout); 00067 std::cout << std::endl; 00068 00069 l1GtBM->printGtEvmActiveBoardsMap(std::cout); 00070 std::cout << std::endl; 00071 00072 l1GtBM->printGtBoardSlotMap(std::cout); 00073 std::cout << std::endl; 00074 00075 l1GtBM->printGtBoardHexNameMap(std::cout); 00076 std::cout << std::endl; 00077 00078 l1GtBM->printGtQuadToPsbMap(std::cout); 00079 std::cout << std::endl; 00080 }