Skip to content

Commit 1f33b1a

Browse files
committed
Correction on magic numbers
1 parent 8aab0e9 commit 1f33b1a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

PWGUD/TableProducer/tauThreeProngEventTableProducer.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,8 +460,9 @@ struct TauThreeProngEventTableProducer {
460460
int nITSbits = 0;
461461
int firstThreeLayers = 0;
462462
const int threeLayers = 3;
463+
const int maxITSlayers = 7;
463464
uint32_t clusterSizes = track.itsClusterSizes();
464-
for (int layer = 0; layer < 7; layer++) {
465+
for (int layer = 0; layer < maxITSlayers; layer++) {
465466
if ((clusterSizes >> (layer * 4)) & 0xf) {
466467
nITSbits++;
467468
if (layer < threeLayers) // 3

0 commit comments

Comments
 (0)