Repository navigation
Commit 54c13e3
Use std::abs for floating-point values in TRD and ITS studies
This fixes unqualified abs() calls on floats that resolve to the integer abs and truncate.
- 11 calls in TRD TrackBasedCalib and ITS studies (Efficiency, AvgClusSize) called int abs(int) on a float.
- They now call std::abs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 1e95e93 commit 54c13e3
3 files changed
Lines changed: 11 additions & 8 deletions
File tree
- Detectors
- ITSMFT/ITS/postprocessing/studies/src
- TRD/calibration/src
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
461 | 462 | | |
462 | 463 | | |
463 | 464 | | |
464 | | - | |
| 465 | + | |
465 | 466 | | |
466 | 467 | | |
467 | 468 | | |
| |||
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
902 | 903 | | |
903 | 904 | | |
904 | 905 | | |
905 | | - | |
| 906 | + | |
906 | 907 | | |
907 | 908 | | |
908 | 909 | | |
909 | | - | |
| 910 | + | |
910 | 911 | | |
911 | 912 | | |
912 | 913 | | |
| |||
1139 | 1140 | | |
1140 | 1141 | | |
1141 | 1142 | | |
1142 | | - | |
| 1143 | + | |
1143 | 1144 | | |
1144 | 1145 | | |
1145 | | - | |
| 1146 | + | |
1146 | 1147 | | |
1147 | 1148 | | |
1148 | 1149 | | |
| |||
2279 | 2280 | | |
2280 | 2281 | | |
2281 | 2282 | | |
2282 | | - | |
| 2283 | + | |
2283 | 2284 | | |
2284 | 2285 | | |
2285 | 2286 | | |
2286 | | - | |
| 2287 | + | |
2287 | 2288 | | |
2288 | 2289 | | |
2289 | 2290 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
152 | | - | |
| 153 | + | |
153 | 154 | | |
154 | 155 | | |
155 | 156 | | |
| |||
0 commit comments