key4hep / k4SimDelphes

Apache License 2.0
4 stars 14 forks source link

Fix occasional warnings from missing jet constituents #94

Closed tmadlener closed 1 year ago

tmadlener commented 1 year ago

BEGINRELEASENOTES

ENDRELEASENOTES

The underlying reason for this is that delphes sometimes creates candidates without a gen particle, which is used for the matching of Muon, Electron and Photon. By using the UniqueID of the jet constituents directly we don't need to go back to the gen particles, but can directly match on the reconstructed particles.

@selvaggi, can you briefly verify that the logic I implemented here with the additional map, is actually what we discussed some time back?

tmadlener commented 1 year ago

Merging this now, to try and get the nightly builds going again.