#include <OmtfLinkMappingRpc.h>
Definition at line 32 of file OmtfLinkMappingRpc.h.
omtf::RpcLinkMap::RpcLinkMap |
( |
| ) |
|
|
inline |
Definition at line 78 of file OmtfLinkMappingRpc.cc.
References l1tstage2_dqm_sourceclient-live_cfg::fedId, edm::EventSetup::get(), RPCAMCLinkMap::getMap(), B2GTnPMonitor_cfi::item, MainPageGenerator::link, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by omtf::RpcPacker::init(), and omtf::RpcUnpacker::init().
83 for (
const auto&
item : amcMap) {
85 unsigned int amcSlot =
item.first.getAMCNumber();
86 unsigned int link =
item.first.getAMCInput();
92 processorNameStr =
"OMTFn";
94 processorNameStr =
"OMTFp";
95 processorNameStr += std::to_string(amcSlot / 2 + 1);
98 std::map<unsigned int, std::string>& li2lb =
link2lbName[processorName];
99 std::map<std::string, unsigned int>& lb2li =
lbName2link[processorName];
102 EleIndex ele(processorName, link);
unsigned int link(const std::string &board, const std::string &lbName) const
std::map< std::string, std::map< unsigned int, std::string > > link2lbName
std::map< std::string, std::vector< EleIndex > > lbName2OmtfIndex
std::map< std::string, std::map< std::string, unsigned int > > lbName2link
std::map< RPCAMCLink, RPCLBLink > map_type
const std::string & lbName(const std::string &board, unsigned int link) const
void omtf::RpcLinkMap::init |
( |
const std::string & |
fName | ) |
|
Definition at line 107 of file OmtfLinkMappingRpc.cc.
References MainPageGenerator::fName, mps_splice::line, MainPageGenerator::link, LogTrace, contentValuesCheck::ss, and AlCaHLTBitMon_QueryRunRegistry::string.
108 std::ifstream inFile;
115 throw std::runtime_error(
"Unable to open OmtfRpcLinksMap file " +
fName);
119 while (std::getline(inFile, line)) {
120 line.erase(0, line.find_first_not_of(
" \t\r\n"));
121 if (line.empty() || !line.compare(0, 2,
"--"))
123 std::stringstream
ss(line);
125 unsigned int link, dbId;
126 if (
ss >> processorName >> link >> lbName >> dbId) {
127 std::map<unsigned int, std::string>& li2lb =
link2lbName[processorName];
128 std::map<std::string, unsigned int>& lb2li =
lbName2link[processorName];
131 EleIndex ele(processorName, link);
unsigned int link(const std::string &board, const std::string &lbName) const
std::map< std::string, std::map< unsigned int, std::string > > link2lbName
std::map< std::string, std::vector< EleIndex > > lbName2OmtfIndex
std::map< std::string, std::map< std::string, unsigned int > > lbName2link
const std::string & lbName(const std::string &board, unsigned int link) const
const std::string& omtf::RpcLinkMap::lbName |
( |
const std::string & |
board, |
|
|
unsigned int |
link |
|
) |
| const |
|
inline |
Definition at line 40 of file OmtfLinkMappingRpc.h.
unsigned int link(const std::string &board, const std::string &lbName) const
std::map< std::string, std::map< unsigned int, std::string > > link2lbName
unsigned int omtf::RpcLinkMap::link |
( |
const std::string & |
board, |
|
|
const std::string & |
lbName |
|
) |
| const |
|
inline |
std::vector< EleIndex > omtf::RpcLinkMap::omtfEleIndex |
( |
const std::string & |
lbName | ) |
const |
std::map<std::string, std::map<std::string, unsigned int> > omtf::RpcLinkMap::lbName2link |
|
private |
std::map<std::string, std::vector<EleIndex> > omtf::RpcLinkMap::lbName2OmtfIndex |
|
private |
std::map<std::string, std::map<unsigned int, std::string> > omtf::RpcLinkMap::link2lbName |
|
private |