MC truth start/end positions are now saved with position variables instead of start/end points (issue #64)
True momentum is saved in MLreco files, so have added that to ValidateorCopy
Propagate the correct true interaction_id for true particles and ancestors
Propagate genid for secondaries and determine if a particle is true primary in truth matching by looking for genid in the primary particle collection (issue #66)
Parents and ancestors need to have their genidpropagated instead of trackid for matching (issue #67). MLreco assigns the unique trackid as parent_trackid and id (unique within an event) as the ancestor_trackid. So this is done by looping over the particles to retrieve the genid by matching the other two variables.
interaction_id
for true particles and ancestorsgenid
for secondaries and determine if a particle is true primary in truth matching by looking forgenid
in the primary particle collection (issue #66)genid
propagated instead oftrackid
for matching (issue #67). MLreco assigns the uniquetrackid
asparent_trackid
andid
(unique within an event) as theancestor_trackid
. So this is done by looping over the particles to retrieve thegenid
by matching the other two variables.