CaloCalibrationHit barcode -> id migration
This merge request is part of the continuing migration of unique identifiers used to link EDM objects to truth particles from the obsolete GenParticle barcodes to the HepMC3-supported GenParticle::id()
values.
It extends CaloCalibrationHit
to be able to return both barcodes (via ParticleID()
as before) and id values (via ParticleUID()
). It also adds some logic to be able to convert from barcode to id for older persistent formats in the case that the McEventCollection
is also available in the job.
It adds a new persistent version which only saves id values rather than barcodes, although this one is not used by default yet.
Sensitive Detector classes are updated to save both barcode and id values to the transient CaloCalibrationHits.
Finally the logic in client classes is updated to prefer to use id values rather than barcodes.