Skip to content

Commit ddcbe3e

Browse files
ktfvkucera
andauthored
[PWGHF] trackIndexSkimCreator: Avoid computing the pVector of bachelor1 in the inner loop (#16569)
Co-authored-by: Vít Kučera <26327373+vkucera@users.noreply.github.com>
1 parent 27519b9 commit ddcbe3e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

PWGHF/TableProducer/trackIndexSkimCreator.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4131,6 +4131,8 @@ struct HfTrackIndexSkimCreatorLfCascades {
41314131
continue;
41324132
}
41334133

4134+
const auto pVecCharmBachelor1 = trackCharmBachelor1.pVector();
4135+
41344136
// second loop over tracks
41354137
for (auto trackIdCharmBachelor2 = trackIdCharmBachelor1 + 1; trackIdCharmBachelor2 != groupedBachTrackIndices.end(); ++trackIdCharmBachelor2) {
41364138

@@ -4154,7 +4156,7 @@ struct HfTrackIndexSkimCreatorLfCascades {
41544156
continue;
41554157
}
41564158

4157-
if (!isPreselectedCandidateXic(pVecCasc, trackCharmBachelor1.pVector(), trackCharmBachelor2.pVector())) {
4159+
if (!isPreselectedCandidateXic(pVecCasc, pVecCharmBachelor1, trackCharmBachelor2.pVector())) {
41584160
continue;
41594161
}
41604162

0 commit comments

Comments
 (0)