Update tagging array qmtest including mctruth infos
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:
- in case of functors returning an integer/bool or an array of integers/bools, as
TRUEID
orTagTr_TRUEID[nTags]
; - inside the
MAP_INPUT_ARRAY
when the inner functor is defined via lambda function, asMCTRUTH_pions
.
For example:
"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).
Edited by Davide Fazzini