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