From 2945663e469e6957d28655497c09237661b7b41c Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Thu, 22 Feb 2024 21:38:52 +0100 Subject: [PATCH] Update script with the Type -> PDG rename --- scripts/createEDM4hepFile.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/createEDM4hepFile.py b/scripts/createEDM4hepFile.py index dccd3f636..e43cad436 100644 --- a/scripts/createEDM4hepFile.py +++ b/scripts/createEDM4hepFile.py @@ -307,7 +307,10 @@ particles = edm4hep.ReconstructedParticleCollection() particle = particles.create() - particle.setType(next(counter)) + if args.use_pre1: + particle.setType(next(counter)) + else: + particle.setPDG(next(counter)) particle.setEnergy(next(counter)) particle.setMomentum(edm4hep.Vector3f(next(counter), next(counter), next(counter))) particle.setReferencePoint(