20 {
21 bool debug =
msg.level() <= MSG::DEBUG;
22
24 const sTgcIdHelper& sTgcHelper{
m_idHelperSvc->stgcIdHelper()};
29 <<
" has no known cabling correction" <<
endmsg;
30 return std::make_optional<Identifier>(id);
31 }
35 NswZebraSet::const_iterator zebra_conn = correctionSet.find(channel);
36 if (zebra_conn == correctionSet.end()) {
38 msg << MSG::DEBUG <<
"The zebra connector associated to "
40 <<
" was mounted correctly -> no correction needed " <<
endmsg;
41 return std::make_optional<Identifier>(id);
42 }
43 const int newChannel =
channel + zebra_conn->shiftChannel;
44 if (newChannel < zebra_conn->firstChannel ||
45 newChannel > zebra_conn->lastChannel) {
47 msg << MSG::DEBUG <<
"The associated channel "
49 << " is shifted outside of the zebra connector range: "
50 << newChannel <<
". Mask the channel." <<
endmsg;
51 return std::nullopt;
52 }
54 const Identifier newId = mmHelper.
channelID(
id,
57 newChannel);
59 msg << MSG::DEBUG <<
"The input identifier "
62 return std::make_optional<Identifier>(std::move(newId));
63 }
64 const Identifier newId = sTgcHelper.
channelID(
id,
68 newChannel);
70 msg << MSG::DEBUG <<
"The input identifier "
73
74 return std::make_optional<Identifier>(std::move(newId));
75}
Identifier channelID(int stationName, int stationEta, int stationPhi, int multilayer, int gasGap, int channel) const
int channel(const Identifier &id) const override
int gasGap(const Identifier &id) const override
get the hashes
int multilayer(const Identifier &id) const
int multilayer(const Identifier &id) const
int channelType(const Identifier &id) const
int channel(const Identifier &id) const override
int gasGap(const Identifier &id) const override
get the hashes
Identifier channelID(int stationName, int stationEta, int stationPhi, int multilayer, int gasGap, int channelType, int channel) const