Skip to content

Commit 0f0310c

Browse files
ktfvkucera
andauthored
Update trackIndexSkimCreator.cxx
Co-authored-by: Vít Kučera <26327373+vkucera@users.noreply.github.com>
1 parent ac70623 commit 0f0310c

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

PWGHF/TableProducer/trackIndexSkimCreator.cxx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4131,11 +4131,7 @@ struct HfTrackIndexSkimCreatorLfCascades {
41314131
continue;
41324132
}
41334133

4134-
// bachelor1 momentum is invariant across the inner (bachelor2) loop;
4135-
// pVector() is a dynamic column with no caching (it recomputes
4136-
// sin/cos on every call), so evaluate it once here instead of on
4137-
// every bachelor2 iteration.
4138-
const std::array<float, 3> pVecCharmBachelor1 = trackCharmBachelor1.pVector();
4134+
const auto pVecCharmBachelor1 = trackCharmBachelor1.pVector();
41394135

41404136
// second loop over tracks
41414137
for (auto trackIdCharmBachelor2 = trackIdCharmBachelor1 + 1; trackIdCharmBachelor2 != groupedBachTrackIndices.end(); ++trackIdCharmBachelor2) {

0 commit comments

Comments
 (0)