Skip to content

Commit d55754a

Browse files
committed
Fixed bug:Using isBestCollIndex instead of bestCollisionIndex
1 parent ff7ea46 commit d55754a

1 file changed

Lines changed: 14 additions & 15 deletions

File tree

‎PWGLF/Tasks/Nuspex/piKpRAA.cxx‎

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

15551552
// TVX-triggered + bestCollisionIndex
15561553
if (hasBcFT0TVX && isBestCollIndex) {
15571554
registry.fill(HIST("EventCounterMC"), 4.5);
1555+
// NUMERATOR/DENOMINATOR OF THE EVENT LOSS
1556+
registry.fill(HIST("NchMC_WithRecoEvt_HasFT0AndTVX_BestCollIdx"), nChMCTPCAcc);
15581557
}
15591558

15601559
//---------------------------
@@ -1605,28 +1604,28 @@ struct PiKpRAA {
16051604
if (hasBcFT0TVX) {
16061605
registry.fill(HIST("PtPiVsNchMC_HasFT0AndTVX"), particle.pt(), nChMCTPCAcc);
16071606
registry.fill(HIST("PtPiVsNchMCFwd_HasFT0AndTVX"), particle.pt(), nChMCForward);
1608-
if (hasBcFT0TVX && isBestCollIndex) {
1609-
registry.fill(HIST("PtPiVsNchMC_HasFT0AndTVX_BestCollIdx"), particle.pt(), nChMCTPCAcc);
1610-
registry.fill(HIST("PtPiVsNchMCFwd_HasFT0AndTVX_BestCollIdx"), particle.pt(), nChMCForward);
1611-
}
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);
16121611
}
16131612
} else if (particle.pdgCode() == PDG_t::kKPlus || particle.pdgCode() == PDG_t::kKMinus) {
16141613
if (hasBcFT0TVX) {
16151614
registry.fill(HIST("PtKaVsNchMC_HasFT0AndTVX"), particle.pt(), nChMCTPCAcc);
16161615
registry.fill(HIST("PtKaVsNchMCFwd_HasFT0AndTVX"), particle.pt(), nChMCForward);
1617-
if (hasBcFT0TVX && isBestCollIndex) {
1618-
registry.fill(HIST("PtKaVsNchMC_HasFT0AndTVX_BestCollIdx"), particle.pt(), nChMCTPCAcc);
1619-
registry.fill(HIST("PtKaVsNchMCFwd_HasFT0AndTVX_BestCollIdx"), particle.pt(), nChMCForward);
1620-
}
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);
16211620
}
16221621
} else if (particle.pdgCode() == PDG_t::kProton || particle.pdgCode() == PDG_t::kProtonBar) {
16231622
if (hasBcFT0TVX) {
16241623
registry.fill(HIST("PtPrVsNchMC_HasFT0AndTVX"), particle.pt(), nChMCTPCAcc);
16251624
registry.fill(HIST("PtPrVsNchMCFwd_HasFT0AndTVX"), particle.pt(), nChMCForward);
1626-
if (hasBcFT0TVX && isBestCollIndex) {
1627-
registry.fill(HIST("PtPrVsNchMC_HasFT0AndTVX_BestCollIdx"), particle.pt(), nChMCTPCAcc);
1628-
registry.fill(HIST("PtPrVsNchMCFwd_HasFT0AndTVX_BestCollIdx"), particle.pt(), nChMCForward);
1629-
}
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);
16301629
}
16311630
} else {
16321631
continue;

0 commit comments

Comments
 (0)