Skip to content

Commit

Permalink
Rename variables to match types better
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Oct 2, 2024
1 parent ddcaa6b commit b6c3753
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions RecCalorimeter/src/components/CreateTruthJet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ struct CreateTruthJet final
m_clusterer->cluster(clustersPJ);

auto edmJets = edm4hep::ReconstructedParticleCollection();
auto assoc = edm4hep::RecoMCParticleLinkCollection();
auto links = edm4hep::RecoMCParticleLinkCollection();

for (auto cjet : inclusiveJets) {
edm4hep::MutableReconstructedParticle jet;
Expand All @@ -92,15 +92,15 @@ struct CreateTruthJet final
for (auto constit : constits) {
int index = constit.user_info<k4::recCalo::ClusterInfo>().index();

auto association = assoc.create();
association.setFrom(jet);
association.setTo((input)[index]);
auto link = links.create();
link.setFrom(jet);
link.setTo((input)[index]);
}

edmJets.push_back(jet);
}

return std::make_tuple(std::move(edmJets), std::move(assoc));
return std::make_tuple(std::move(edmJets), std::move(links));
}

StatusCode finalize() override {
Expand Down

0 comments on commit b6c3753

Please sign in to comment.