181 {
182
185 if(!
b.m_vn.empty()) {
186 b.m_layerKey =
m_geo.getTrigFTF_GNN_LayerKeyByIndex((*
b.m_vn.begin())->m_layer);
187 }
188 }
189
190 if(!useML) return;
191
192 unsigned int nL =
m_geo.num_layers();
193
194 for(unsigned int layerIdx=0;layerIdx<nL;layerIdx++) {
195
196 const TrigFTF_GNN_Layer* pL =
m_geo.getTrigFTF_GNN_LayerByIndex(layerIdx);
197
199 continue;
200 }
201
203
204 if(!isBarrel) continue;
205
206
207
209
211
213
215
216 if(
B.empty())
continue;
217
218 for(
unsigned int nIdx=0;nIdx<
B.m_vn.size();nIdx++) {
219
220 float cluster_width =
B.m_vn[nIdx]->pixelClusterWidth();
221
222 float locPosY =
B.m_vn[nIdx]->localPositionY();
223
224 int lutBinIdx = std::floor(20*cluster_width) - 1;
225
226 if (lutBinIdx >= lutSize) continue;
227
228 const std::array<float, 5> lutBin =
m_mlLUT[lutBinIdx];
229
230 float dist2border = 10.0 - std::abs(locPosY);
231
232 float min_tau = -100.0;
233 float max_tau = 100.0;
234
235 if (dist2border > 0.3f) {
236 min_tau = lutBin[1];
237 max_tau = lutBin[2];
238 } else {
239 min_tau = lutBin[3];
240 max_tau = lutBin[4];
241 }
242
243 if (max_tau < 0) {
244 max_tau = 100.0;
245 }
246
247 B.m_params[nIdx][0] = min_tau;
248 B.m_params[nIdx][1] = max_tau;
249
250 }
251 }
252 }
253}
const TrigInDetSiLayer & m_layer
std::vector< int > m_bins