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