From 32c808f22f27784f3754585e9b20fca6f43dede6 Mon Sep 17 00:00:00 2001 From: tmadlener Date: Mon, 26 Feb 2024 13:20:51 +0100 Subject: [PATCH] Reverse the direction of PID and reco relations --- converter/src/DelphesEDM4HepConverter.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/converter/src/DelphesEDM4HepConverter.cc b/converter/src/DelphesEDM4HepConverter.cc index 0bdfe27..870a53b 100644 --- a/converter/src/DelphesEDM4HepConverter.cc +++ b/converter/src/DelphesEDM4HepConverter.cc @@ -279,7 +279,7 @@ namespace k4SimDelphes { cand.addToTracks(track); // id.addToParameters(delphesCand->IsolationVar); - cand.addToParticleIDs(id); + id.setParticle(cand); UInt_t genId = delphesCand->Particle.GetUniqueID(); if (const auto genIt = m_genParticleIds.find(genId); genIt != m_genParticleIds.end()) { @@ -370,7 +370,7 @@ namespace k4SimDelphes { // id.addToParameters(delphesCand->IsolationVar); id.addToParameters(delphesCand->BTag); id.addToParameters(delphesCand->TauTag); - jet.addToParticleIDs(id); + id.setParticle(jet); const auto& constituents = delphesCand->Constituents; for (auto iConst = 0; iConst < constituents.GetEntries(); ++iConst) {