From 525ac644f29b22f646a20fde557704e9d4ab0c75 Mon Sep 17 00:00:00 2001 From: tmadlener Date: Tue, 30 Jul 2024 12:56:17 +0200 Subject: [PATCH] Remove need for explicit type --- RecCalorimeter/src/components/CreateTruthJet.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/RecCalorimeter/src/components/CreateTruthJet.cpp b/RecCalorimeter/src/components/CreateTruthJet.cpp index 88c591fc..0e48e87a 100644 --- a/RecCalorimeter/src/components/CreateTruthJet.cpp +++ b/RecCalorimeter/src/components/CreateTruthJet.cpp @@ -92,10 +92,9 @@ struct CreateTruthJet final for (auto constit : constits) { int index = constit.user_info().index(); - edm4hep::MutableMCRecoParticleAssociation association; + auto association = assoc.create(); association.setRec(jet); association.setSim((input)[index]); - assoc.push_back(association); } edmJets.push_back(jet);