From f2381821355cc0f3296aaee55f01c2addc580123 Mon Sep 17 00:00:00 2001 From: Thomas Madlener Date: Mon, 11 Mar 2024 11:26:28 +0100 Subject: [PATCH] Switch to non-deprecated function (#118) --- converter/src/DelphesEDM4HepConverter.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/converter/src/DelphesEDM4HepConverter.cc b/converter/src/DelphesEDM4HepConverter.cc index 0bdfe27..e27991e 100644 --- a/converter/src/DelphesEDM4HepConverter.cc +++ b/converter/src/DelphesEDM4HepConverter.cc @@ -327,7 +327,7 @@ namespace k4SimDelphes { cand.setMass(delphesCand->P4().M()); // NOTE: Particle-Flow Neutral are either photons or K_L in Delphes auto pid = (delphesCand->Ehad > 0.) ? 130 : 22; - cand.setType(pid); // NOTE: set PID of cluster consistent with mass + cand.setPDG(pid); // NOTE: set PID of cluster consistent with mass // store position and time of neutral candidate in a CalorimeterHit auto calorimeterHit = calorimeterHitColl->create();