23 #include "GaudiKernel/StatusCode.h"
48 return StatusCode::SUCCESS;
54 const std::string
sep{
", "};
66 const std::string testAreaPath =
".";
67 std::string
filename{testAreaPath+
"/cabling.txt"};
71 ATH_MSG_INFO(
"hash, offline Id, online Id(hex), serial number");
72 const unsigned int nHashesInCabling{2*
m_cablingTool->size(ctx)};
73 for (
unsigned int i{0};
i!=nHashesInCabling; ++
i) {
74 IdentifierHash
hash{
i};
78 ATH_MSG_INFO(
i <<
" " << offlineId <<
" " << std::hex << onlineId << std::dec <<
" " << sn <<
" " <<
coordString(offlineId));
79 opFile1 <<
i <<
" " << offlineId <<
" " << std::hex << onlineId << std::dec <<
" " << sn <<
" " <<
coordString(offlineId) << std::endl;
86 std::vector<unsigned int> rods;
89 ATH_MSG_INFO(
"First rod id " << std::hex << rods[0] << std::dec);
90 std::string sn{
"20220130000299"};
94 unsigned long long snll{20220130000299LL};
100 std::vector<IdentifierHash> hashVec;
102 ATH_MSG_INFO(
"number of hashes for rod 0x220005: " << hashVec.size());
106 std::sort(rods.begin(), rods.end());
107 std::map<unsigned int, unsigned int> rodHashMap;
108 for (
unsigned int i{0};
i!=rods.size(); ++
i) {
109 rodHashMap[rods[
i]]=
i;
123 for (
unsigned int i{0};
i!=nHashesInCabling; ++
i) {
124 IdentifierHash
hash{
i};
134 const unsigned int rodIndex{rodHashMap[onlineId.rod()]};
140 return StatusCode::SUCCESS;
147 return StatusCode::SUCCESS;