Commit 1f1bf16
authored
Clusterer will prioritize labels with lower trackIndex (#15782)
The HIP may produce a large number of delta electrons (e.g. a magnetic monopole
typically produces a few 10K deltas in the barrel). Since we limit the number of
saved MC labels per ITS/MFT cluster to `Clusterer::MaxLabels` (=10), in a large
cluster receiving contributions from both the HIP and its delta rays, the HIP
label might not be saved if MaxLabels delta electrons contributing to the same
cluster have already been accounted for (the order is quasi-random).
To minimize the chance of such label loss, assuming that the track ID of the HIP
is smaller than those of its delta rays, when there is no free slot left in the
label buffer, the new label (e.g. that of the HIP) will replace the label with
the largest track ID already present in the buffer.1 parent f7f295b commit 1f1bf16
1 file changed
Lines changed: 21 additions & 13 deletions
Lines changed: 21 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| 173 | + | |
173 | 174 | | |
174 | 175 | | |
175 | 176 | | |
| |||
316 | 317 | | |
317 | 318 | | |
318 | 319 | | |
319 | | - | |
| 320 | + | |
320 | 321 | | |
321 | 322 | | |
322 | 323 | | |
| |||
436 | 437 | | |
437 | 438 | | |
438 | 439 | | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
448 | 447 | | |
449 | 448 | | |
450 | | - | |
451 | | - | |
452 | | - | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
453 | 461 | | |
454 | 462 | | |
455 | 463 | | |
| |||
0 commit comments