Change the truth event filtering/copying algorithm
Change the truth event filtering/copying algorithm. There are multiple issues:
- The old algorithm was checking for the existing barcodes in the event and copied the new objects if the barcodes were not present. This is expensive and makes no sense. An easier way is to track the id (HepMC3) or barcodes(HepmC2) of the copied objects.
- There is a bugfix: for both HepMC2 and HepMC3 in some cases the old barcode was not propagated to the new event.