#include <OmtfLinkMappingRpc.h>
Definition at line 28 of file OmtfLinkMappingRpc.h.
omtf::RpcLinkMap::RpcLinkMap |
( |
| ) |
|
|
inline |
Definition at line 72 of file OmtfLinkMappingRpc.cc.
References l1t::stage2::layer2::fedId, edm::EventSetup::get(), RPCAMCLinkMap::getMap(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by omtf::RpcPacker::init(), and omtf::RpcUnpacker::init().
78 for (
const auto & item : amcMap ) {
79 unsigned int fedId = item.first.getFED();
80 unsigned int amcSlot = item.first.getAMCNumber();
81 unsigned int link = item.first.getAMCInput();
85 if (fedId==1380) processorNameStr =
"OMTFn";
else processorNameStr =
"OMTFp";
86 processorNameStr += std::to_string(amcSlot/2+1);
89 std::map< unsigned int, std::string > & li2lb =
link2lbName[processorName];
90 std::map< std::string, unsigned int > & lb2li =
lbName2link[processorName];
93 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 98 of file OmtfLinkMappingRpc.cc.
References geometryCSVtoXML::line, LogTrace, and AlCaHLTBitMon_QueryRunRegistry::string.
102 LogTrace(
"")<<
" reading OmtfRpcLinksMap from: "<<fName;
104 LogTrace(
"")<<
" Unable to open file "<<fName;
106 throw std::runtime_error(
"Unable to open OmtfRpcLinksMap file " + fName);
110 while (std::getline(inFile, line)) {
111 line.erase(0, line.find_first_not_of(
" \t\r\n"));
112 if (line.empty() || !line.compare(0,2,
"--"))
continue;
113 std::stringstream ss(line);
115 unsigned int link, dbId;
116 if (ss >> processorName >> link >> lbName >> dbId) {
117 std::map< unsigned int, std::string > & li2lb =
link2lbName[processorName];
118 std::map< std::string, unsigned int > & lb2li =
lbName2link[processorName];
121 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 36 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 |
Definition at line 38 of file OmtfLinkMappingRpc.h.
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::vector<EleIndex>& omtf::RpcLinkMap::omtfEleIndex |
( |
const std::string & |
lbName | ) |
const |
|
inline |
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 |