Commit 1472563
Encode the ITS layer into the per-layer ITS track cluster references
With the per-layer (staggered readout) ITS clusters input the cluster index kept
by TrackITS is local to its layer, so the layer must be encoded into the stored
reference for the consumers to be able to find the cluster. MatchTPCITS already
decoded the ITS/TRACKCLSID entries as such composed IDs, but the tracker pushed
the bare per-layer index, which was correct only for the layer 0.
- ITSTrackingInterface::run composes the stored reference as
(layer << ClusLayerShift) + index_in_layer; with the monolithic clusters input
the layer slot is 0 and the composed ID stays equal to the flat index, so the
non-staggered output is unchanged
- the ID composition/decomposition and the max number of separately provided
ITS/MFT cluster layers move from MatchTPCITS.h to the new lightweight
DataFormatsITSMFT/ClusterID.h, so that both the producer and the (many)
consumers can use them without pulling in GlobalTracking; RecoContainer.h
includes it and keeps MaxITSLayers/MaxMFTLayers as aliases
- the layer field is shifted by 27 rather than 28 bits, so that it can
accommodate the MFT layers too: the bit 31 is unusable, since the negative
values of the composed ID are reserved for the "no cluster" flags
- the unused TrackITSExt::setClusterIndex, carrying its own hardcoded copy of
the composition (and writing to the packed slot while getClusterIndex reads
the layer slot), is removed
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 8d8b21f commit 1472563
6 files changed
Lines changed: 61 additions & 28 deletions
File tree
- DataFormats/Detectors
- GlobalTracking/include/DataFormatsGlobalTracking
- ITSMFT
- ITS/include/DataFormatsITS
- common/include/DataFormatsITSMFT
- Detectors
- GlobalTracking
- include/GlobalTracking
- src
- ITSMFT/ITS/tracking/src
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
188 | 189 | | |
189 | 190 | | |
190 | 191 | | |
191 | | - | |
192 | | - | |
| 192 | + | |
| 193 | + | |
193 | 194 | | |
194 | 195 | | |
195 | 196 | | |
| |||
Lines changed: 0 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | 224 | | |
232 | 225 | | |
233 | 226 | | |
| |||
Lines changed: 43 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
Lines changed: 5 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | 113 | | |
121 | 114 | | |
122 | 115 | | |
| |||
282 | 275 | | |
283 | 276 | | |
284 | 277 | | |
285 | | - | |
| 278 | + | |
286 | 279 | | |
287 | 280 | | |
288 | 281 | | |
| |||
295 | 288 | | |
296 | 289 | | |
297 | 290 | | |
298 | | - | |
| 291 | + | |
299 | 292 | | |
300 | 293 | | |
301 | 294 | | |
| |||
320 | 313 | | |
321 | 314 | | |
322 | 315 | | |
323 | | - | |
| 316 | + | |
324 | 317 | | |
325 | 318 | | |
326 | 319 | | |
| |||
631 | 624 | | |
632 | 625 | | |
633 | 626 | | |
634 | | - | |
| 627 | + | |
635 | 628 | | |
636 | 629 | | |
637 | 630 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2147 | 2147 | | |
2148 | 2148 | | |
2149 | 2149 | | |
2150 | | - | |
| 2150 | + | |
2151 | 2151 | | |
2152 | 2152 | | |
2153 | 2153 | | |
| |||
2365 | 2365 | | |
2366 | 2366 | | |
2367 | 2367 | | |
2368 | | - | |
| 2368 | + | |
2369 | 2369 | | |
2370 | 2370 | | |
2371 | 2371 | | |
| |||
2384 | 2384 | | |
2385 | 2385 | | |
2386 | 2386 | | |
2387 | | - | |
| 2387 | + | |
2388 | 2388 | | |
2389 | 2389 | | |
2390 | 2390 | | |
| |||
2907 | 2907 | | |
2908 | 2908 | | |
2909 | 2909 | | |
2910 | | - | |
2911 | | - | |
| 2910 | + | |
| 2911 | + | |
2912 | 2912 | | |
2913 | | - | |
| 2913 | + | |
2914 | 2914 | | |
2915 | 2915 | | |
2916 | 2916 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
333 | 334 | | |
334 | 335 | | |
335 | 336 | | |
336 | | - | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
337 | 340 | | |
338 | 341 | | |
339 | 342 | | |
| |||
0 commit comments