Skip to content

Migrating Cluster truth-matching code from barcodes to unique IDs

This is part of the migration of Athena away from using GenParticle barcodes (removed in HepMC3) as a unique identifier for truth particles to GenParticle::id() instead. This change should not affect the truth matching output.

While making these changes I found a weakness in TruthClusterizationFactory::estimateNumberOfParticles(...) where it could potentially misidentify pile-up truth particles as being in the hard-scatter truth event. I've fixed this in the case that matching to pile-up truth is requested.

Merge request reports