File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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;
You can’t perform that action at this time.
0 commit comments