Skip to content

Commit 68e8822

Browse files
committed
Fix bug: Using isBestCollIndex instead of bestCollisionIndex
1 parent d55754a commit 68e8822

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

‎PWGLF/Tasks/Nuspex/piKpRAA.cxx‎

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1547,13 +1547,13 @@ struct PiKpRAA {
15471547
if (hasBcFT0TVX) {
15481548
// NUMERATOR/DENOMINATOR OF THE EVENT LOSS
15491549
registry.fill(HIST("NchMC_WithRecoEvt_HasFT0AndTVX"), nChMCTPCAcc);
1550-
}
15511550

1552-
// TVX-triggered + bestCollisionIndex
1553-
if (hasBcFT0TVX && isBestCollIndex) {
1554-
registry.fill(HIST("EventCounterMC"), 4.5);
1555-
// NUMERATOR/DENOMINATOR OF THE EVENT LOSS
1556-
registry.fill(HIST("NchMC_WithRecoEvt_HasFT0AndTVX_BestCollIdx"), nChMCTPCAcc);
1551+
// TVX-triggered + bestCollisionIndex
1552+
if (isBestCollIndex) {
1553+
registry.fill(HIST("EventCounterMC"), 4.5);
1554+
// NUMERATOR/DENOMINATOR OF THE EVENT LOSS
1555+
registry.fill(HIST("NchMC_WithRecoEvt_HasFT0AndTVX_BestCollIdx"), nChMCTPCAcc);
1556+
}
15571557
}
15581558

15591559
//---------------------------
@@ -1604,28 +1604,28 @@ struct PiKpRAA {
16041604
if (hasBcFT0TVX) {
16051605
registry.fill(HIST("PtPiVsNchMC_HasFT0AndTVX"), particle.pt(), nChMCTPCAcc);
16061606
registry.fill(HIST("PtPiVsNchMCFwd_HasFT0AndTVX"), particle.pt(), nChMCForward);
1607-
}
1608-
if (hasBcFT0TVX && isBestCollIndex) {
1609-
registry.fill(HIST("PtPiVsNchMC_HasFT0AndTVX_BestCollIdx"), particle.pt(), nChMCTPCAcc);
1610-
registry.fill(HIST("PtPiVsNchMCFwd_HasFT0AndTVX_BestCollIdx"), particle.pt(), nChMCForward);
1607+
if (isBestCollIndex) {
1608+
registry.fill(HIST("PtPiVsNchMC_HasFT0AndTVX_BestCollIdx"), particle.pt(), nChMCTPCAcc);
1609+
registry.fill(HIST("PtPiVsNchMCFwd_HasFT0AndTVX_BestCollIdx"), particle.pt(), nChMCForward);
1610+
}
16111611
}
16121612
} else if (particle.pdgCode() == PDG_t::kKPlus || particle.pdgCode() == PDG_t::kKMinus) {
16131613
if (hasBcFT0TVX) {
16141614
registry.fill(HIST("PtKaVsNchMC_HasFT0AndTVX"), particle.pt(), nChMCTPCAcc);
16151615
registry.fill(HIST("PtKaVsNchMCFwd_HasFT0AndTVX"), particle.pt(), nChMCForward);
1616-
}
1617-
if (hasBcFT0TVX && isBestCollIndex) {
1618-
registry.fill(HIST("PtKaVsNchMC_HasFT0AndTVX_BestCollIdx"), particle.pt(), nChMCTPCAcc);
1619-
registry.fill(HIST("PtKaVsNchMCFwd_HasFT0AndTVX_BestCollIdx"), particle.pt(), nChMCForward);
1616+
if (isBestCollIndex) {
1617+
registry.fill(HIST("PtKaVsNchMC_HasFT0AndTVX_BestCollIdx"), particle.pt(), nChMCTPCAcc);
1618+
registry.fill(HIST("PtKaVsNchMCFwd_HasFT0AndTVX_BestCollIdx"), particle.pt(), nChMCForward);
1619+
}
16201620
}
16211621
} else if (particle.pdgCode() == PDG_t::kProton || particle.pdgCode() == PDG_t::kProtonBar) {
16221622
if (hasBcFT0TVX) {
16231623
registry.fill(HIST("PtPrVsNchMC_HasFT0AndTVX"), particle.pt(), nChMCTPCAcc);
16241624
registry.fill(HIST("PtPrVsNchMCFwd_HasFT0AndTVX"), particle.pt(), nChMCForward);
1625-
}
1626-
if (hasBcFT0TVX && isBestCollIndex) {
1627-
registry.fill(HIST("PtPrVsNchMC_HasFT0AndTVX_BestCollIdx"), particle.pt(), nChMCTPCAcc);
1628-
registry.fill(HIST("PtPrVsNchMCFwd_HasFT0AndTVX_BestCollIdx"), particle.pt(), nChMCForward);
1625+
if (isBestCollIndex) {
1626+
registry.fill(HIST("PtPrVsNchMC_HasFT0AndTVX_BestCollIdx"), particle.pt(), nChMCTPCAcc);
1627+
registry.fill(HIST("PtPrVsNchMCFwd_HasFT0AndTVX_BestCollIdx"), particle.pt(), nChMCForward);
1628+
}
16291629
}
16301630
} else {
16311631
continue;

0 commit comments

Comments
 (0)