Update tagging array qmtest including mctruth infos
Compare changes
Files
3@@ -20,53 +20,107 @@ Then the MAP_INPUT_ARRAY functor takes in input this relation map and for each
@@ -82,5 +136,4 @@ def main(options: Options):
Update the test_davinci_tupling_array_taggers
qmtest adding a few lines showing how to store the mctruth information related to the extra particles in the event, beside the ones in the decay chain.
In order to retrieve correctly the mctruth information, the input file has changed and the reference has been updated accordingly.
Two default values has to be defined in order to ensure a valid result if the functor's output is empty:
TRUEID
or TagTr_TRUEID[nTags]
;MAP_INPUT_ARRAY
when the inner functor is defined via lambda function, as MCTRUTH_pions
. "TagTr_TRUEID[nTags]":
F.VALUE_OR([0]) @ F.MAP_INPUT_ARRAY(
Functor=F.VALUE_OR(0) @ MCTRUTH_pions(F.PARTICLE_ID),
Relations=tagAlg_rels),
Needs Rec!3139 (merged).