Commit fa6c9ea5 authored by Samuel Van Stroud's avatar Samuel Van Stroud
Browse files

pass by reference

parent 6c844ebb
Pipeline #3922531 passed with stages
in 5 minutes and 51 seconds
......@@ -12,7 +12,7 @@ JetTruthSummaryDecorator::JetTruthSummaryDecorator(const std::string& link_name,
// return min deltaR(jet,particles), or infinity if no particles exist
float JetTruthSummaryDecorator::getMinimumDeltaR(
const xAOD::Jet& jet,
const PartLinks part_links) const {
const PartLinks& part_links) const {
std::vector<float> delta_r = {INFINITY};
for (const PartLink& tl : part_links) {
......
......@@ -16,7 +16,7 @@ class JetTruthSummaryDecorator {
JetTruthSummaryDecorator(const std::string& link_name, const std::string& out_name);
float getMinimumDeltaR(const xAOD::Jet& jet, const PartLinks part_links) const;
float getMinimumDeltaR(const xAOD::Jet& jet, const PartLinks& part_links) const;
void decorate(const xAOD::Jet& jet) const;
private:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment