Skip to content

Commit fe7cb0e

Browse files
committed
DPG: Fix QA efficiency
1 parent 34d1187 commit fe7cb0e

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

DPG/Tasks/AOTTrack/qaEfficiency.cxx

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1513,16 +1513,16 @@ struct QaEfficiency {
15131513
return false;
15141514
}
15151515

1516-
if (noFakesHits) { // Selecting tracks with no fake hits
1517-
bool hasFakeHit = false;
1518-
for (int i = 0; i < 10; i++) { // From ITS to TPC
1519-
if (track.mcMask() & 1 << i) {
1520-
hasFakeHit = true;
1521-
break;
1516+
if (noFakesHits) { // Selecting tracks with no fake hits
1517+
for (int i = 0; i < 7; i++) { // ITS
1518+
if (track.mcMismatchInITS(i)) {
1519+
return false;
15221520
}
15231521
}
1524-
if (hasFakeHit) {
1525-
return false;
1522+
for (int i = 7; i < 10; i++) { // TPC
1523+
if (track.mcMismatchInTPC(i)) {
1524+
return false;
1525+
}
15261526
}
15271527
}
15281528
if constexpr (doFillHisto) {
@@ -1640,18 +1640,25 @@ struct QaEfficiency {
16401640
switch (globalTrackSelection) {
16411641
case 0:
16421642
isTrackSelectedAfteAll = true;
1643+
break;
16431644
case 1:
16441645
isTrackSelectedAfteAll = track.isGlobalTrack();
1646+
break;
16451647
case 2:
16461648
isTrackSelectedAfteAll = track.isGlobalTrackWoPtEta();
1649+
break;
16471650
case 3:
16481651
isTrackSelectedAfteAll = track.isGlobalTrackWoDCA();
1652+
break;
16491653
case 4:
16501654
isTrackSelectedAfteAll = track.isQualityTrack();
1655+
break;
16511656
case 5:
16521657
isTrackSelectedAfteAll = track.isInAcceptanceTrack();
1658+
break;
16531659
case 6:
16541660
isTrackSelectedAfteAll = customTrackCuts.IsSelected(track);
1661+
break;
16551662
default:
16561663
LOG(fatal) << "Can't interpret track asked selection " << globalTrackSelection;
16571664
}

0 commit comments

Comments
 (0)