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);