Skip to content

Commit 696faae

Browse files
committed
Fix magic number warning
1 parent b1ae73c commit 696faae

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Common/Tasks/integrationTest.cxx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ struct integrationTest {
6363
kTrackUsedDecay3Body,
6464
kTrackUsedTrackedV0,
6565
kTrackUsedTrackedCascade,
66-
kTrackUsedQA };
66+
kTrackUsedQA,
67+
kNTrackTypes};
6768

6869
enum kTable { kBC = 0,
6970
kBCFlag,
@@ -220,10 +221,10 @@ struct integrationTest {
220221
"QA"};
221222

222223
// construct labels to make this plot easier to understand
223-
for (uint8_t i = 0; i < 64; i++) {
224-
TString trackTypeString = "";
225-
for (uint8_t j = 0; j < kTrackUsedQA + 1; j++) {
226-
if (((i) & (1 << (j)))) {
224+
for(uint8_t i=0; i<(1 << kNTrackTypes); i++){
225+
TString trackTypeString = "";
226+
for(uint8_t j=0; j<kTrackUsedQA+1; j++){
227+
if( ((i) & (1<<(j))) ){
227228
trackTypeString.Append(Form("%s ", kTrackTypeNames[j].Data()));
228229
}
229230
}

0 commit comments

Comments
 (0)