Skip to content

Commit

Permalink
Update script with the Type -> PDG rename
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Feb 22, 2024
1 parent ee55462 commit 344e7f6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/createEDM4hepFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 344e7f6

Please sign in to comment.