adding HitTruth matching
Follow up of MR 526 closes #40 (closed)
Implemented syntax as standalone. For SCT the 'sihit' information is not existent, therefore set value to -1.
Tried to implement Spyros last comment:
The idea was to add a function that loops over all truth particles in the event and saves B/C hadron barcodes in a sorted vector (let's call it B
). Then have another function that loops over the barcodes of the hadrons that deposited energy to a cluster, keeping track of the sum of energy deposits from hadrons that have barcodes that belong to B
(and return that sum or the ratio sumEnergyFromBC/sumEnergy
).
Tagging @dguest @svanstro @sargyrop
Review checklist:
-
CI Passing -
Comments addressed -
Source branch is up to date with target
Edited by Roman Kusters