31 <<
"initialize now the TGC cabling and TGC container.");
39 return StatusCode::SUCCESS;
50 ATH_MSG_DEBUG(
"Recorded TgcRdoContainer called " << rdoContainer.
name() <<
" in store " << rdoContainer.
store());
55 std::map<uint16_t, std::unique_ptr<TgcRdo>> tgcRdoMap{};
63 for (
const TgcDigit* tgcDigit : *tgcCollection) {
68 int subDetectorID{0}, rodID{0}, sswID{0}, slbID{0}, channelID{0};
71 for (
int iAd = 0; iAd < 2; ++iAd) {
86 bool status =
m_cabling->getReadoutIDfromOfflineID(
channelId, subDetectorID, rodID, sswID, slbID, channelID, adFlag);
89 ATH_MSG_DEBUG(
"MuonTGC_CablingSvc can't return an online ID for the channel : "
100 else if (
name[1] ==
'1')
105 auto rawData = std::make_unique<TgcRawData>(bctag, subDetectorID, rodID, sswID, slbID, 0, 0,
type, adFlag, 0, channelID);
108 ATH_MSG_DEBUG(MSG::hex <<
" Sub : " << subDetectorID <<
" ROD : " << rodID <<
" SSW : " << sswID <<
" SLB : " << slbID
109 <<
" Ch : " << channelID);
112 const uint16_t rdoId = identifyFragment(*rawData);
113 std::unique_ptr<TgcRdo>& tgcRdo = tgcRdoMap[rdoId];
118 tgcRdo = std::make_unique<TgcRdo>(rdoId, hashId);
119 tgcRdo->
setOnlineId(rawData->subDetectorId(), rawData->rodId());
128 for (
auto&[onlineId, rdo] : tgcRdoMap) {
129 unsigned int elementHash = hashF(onlineId);
134 return StatusCode::SUCCESS;
142 if (tagInfoMgr.retrieve().isFailure())
return StatusCode::FAILURE;
146 if (
sc.isFailure()) {
153 return StatusCode::SUCCESS;
160 if (maxRodId == 12) {
164 ATH_MSG_INFO(
"Other TGC cabling scheme is (e.g. 8-fold) is selected");
171 return StatusCode::SUCCESS;