Skip to content

Commit de86ac7

Browse files
committed
Pass const vectors by reference
1 parent 1b8e5e1 commit de86ac7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

PWGJE/Core/JetMatchingUtilities.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,13 @@ std::tuple<std::vector<int>, std::vector<int>> MatchJetsGeometricallyImpl(
123123
const std::vector<T>& jetsBaseEta,
124124
std::vector<T> jetsBasePhiForMatching,
125125
std::vector<T> jetsBaseEtaForMatching,
126-
const std::vector<std::size_t> jetMapBaseToJetIndex,
126+
const std::vector<std::size_t>& jetMapBaseToJetIndex,
127127
const std::vector<T>& jetsTagPhi,
128128
const std::vector<T>& jetsTagEta,
129129
std::vector<T> jetsTagPhiForMatching,
130130
std::vector<T> jetsTagEtaForMatching,
131-
const std::vector<std::size_t> jetMapTagToJetIndex,
132-
double maxMatchingDistance)
131+
const std::vector<std::size_t>& jetMapTagToJetIndex,
132+
const double maxMatchingDistance)
133133
{
134134
// Validation
135135
// If no jets in either collection, then return immediately.

0 commit comments

Comments
 (0)