Skip to content

Commit d452e8a

Browse files
committed
Pass float by value
1 parent 54315ed commit d452e8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PWGHF/TableProducer/trackIndexSkimCreator.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ struct HfTrackIndexSkimCreatorTagSelTracks {
511511
/// \param dca is a 2-element array with dca in transverse and longitudinal directions
512512
/// \param statusProng is the selection flag
513513
template <typename T>
514-
void isSelectedTrack(const T& hfTrack, const float& trackPt, const float& trackEta, const std::array<float, 2>& dca, int& statusProng)
514+
void isSelectedTrack(const T& hfTrack, const float trackPt, const float trackEta, const std::array<float, 2>& dca, int& statusProng)
515515
{
516516
if (config.fillHistograms) {
517517
registry.fill(HIST("hPtNoCuts"), trackPt);
@@ -3449,7 +3449,7 @@ struct HfTrackIndexSkimCreatorLfCascades {
34493449

34503450
/// Single-cascade cuts
34513451
template <typename TCascade>
3452-
bool isPreselectedCascade(const TCascade& casc, const float& pvx, const float& pvy, const float& pvz)
3452+
bool isPreselectedCascade(const TCascade& casc, const float pvx, const float pvy, const float pvz)
34533453
{
34543454
registry.fill(HIST("hCandidateCounter"), 2.5);
34553455

0 commit comments

Comments
 (0)