68 {
69 std::vector<Identifier> chIds;
74 auto [stEtaMin, stEtaMax] =
m_idHelperSvc->mdtIdHelper().stationEtaMinMax(
id);
75
76 int chEtaLeft = stEta - 1;
77 int chEtaRight = stEta + 1;
78
79
80
81
82 if (chEtaLeft < stEtaMin) chEtaLeft = -999;
83
84
85 if (chEtaRight > stEtaMax) chEtaRight = -999;
86
87 using namespace MuonStationIndex;
89
90
92 chEtaRight = -999;
93 chEtaLeft = -999;
94 }
95
97
98 if (chEtaLeft == 0) chEtaLeft -= 1;
99 if (chEtaRight == 0) chEtaRight += 1;
100 } else {
101
102 if (chEtaLeft == 0) chEtaLeft = -999;
103 if (chEtaRight == 0) chEtaRight = -999;
104 }
105
106
107 if (
chIndex == ChIndex::BIS && std::abs(stEta) == 8) {
108 chEtaLeft = -999;
109 chEtaRight = -999;
110 }
111
112
114 if (std::abs(chEtaLeft) == 8) chEtaLeft = -999;
115 if (std::abs(chEtaRight) == 8) chEtaRight = -999;
116 }
117
119
120 if( std::abs(chEtaLeft) != 5 && std::abs(chEtaLeft) != 4 ) chEtaLeft = -999;
121 if( std::abs(chEtaRight) != 5 && std::abs(chEtaRight) != 4 ) chEtaRight = -999;
122 }
123
124 if (chEtaLeft != -999 &&
128 if (chEtaRight != -999 &&
131
132
133
134
135
136
137
138
139 return chIds;
140 }
ChIndex chIndex(const std::string &index)
convert ChIndex name string to enum
bool isBarrel(const ChIndex index)
Returns true if the chamber index points to a barrel chamber.
const std::string & stName(StIndex index)
convert StIndex into a string
ChIndex
enum to classify the different chamber layers in the muon spectrometer