Skip to content

Commit b8f98d6

Browse files
author
Mattia Faggin
committed
Minor fix.
1 parent e581466 commit b8f98d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PWGHF/TableProducer/treeCreatorLcToPKPi.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -967,10 +967,10 @@ struct HfTreeCreatorLcToPKPi {
967967
rowCollisionId.reserve(candidates.size());
968968
}
969969
for (const auto& candidate : candidates) {
970-
auto trackPos1 = candidate.template prong0_as<TracksWPid>(); // positive daughter (negative for the antiparticles)
970+
float trackPos1Pt = candidate.ptProng0();
971971
auto collision = candidate.template collision_as<Colls>();
972972
auto fillTable = [&](int candFlag) {
973-
double pseudoRndm = trackPos1.pt() * 1000. - static_cast<int64_t>(trackPos1.pt() * 1000);
973+
double pseudoRndm = trackPos1Pt * 1000. - static_cast<int64_t>(trackPos1Pt * 1000);
974974
const int functionSelection = candFlag == 0 ? candidate.isSelLcToPKPi() : candidate.isSelLcToPiKP();
975975
if (functionSelection >= selectionFlagLc && (candidate.pt() > downSampleBkgPtMax || (pseudoRndm < downSampleBkgFactor && candidate.pt() < downSampleBkgPtMax))) {
976976
float functionInvMass, functionInvMassKPi;

0 commit comments

Comments
 (0)