Skip to content
Snippets Groups Projects

Update tagging array qmtest including mctruth infos

Merged Davide Fazzini requested to merge dfazzini_update_tagging_test into master

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 or TagTr_TRUEID[nTags];
  • inside the MAP_INPUT_ARRAY when the inner functor is defined via lambda function, as MCTRUTH_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

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Morning @dfazzini. Very nice and useful update this is. I posted a couple of trivial suggestions. I am already approving as I'm asking for doc. Feel free to trigger the CI when ready since Patrick is rather unavailable today.

  • Eduardo Rodrigues approved this merge request

    approved this merge request

  • added 1 commit

    • 0e0a48b1 - Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • mentioned in issue Rec#385 (closed)

  • @dfazzini : I hope this MR Rec!3139 (merged) fixes the issue. Can you please introduce a dependency on that and check if it works?

    Edited by Abhijit Mathad
  • Abhijit Mathad mentioned in merge request Rec!3139 (merged)

    mentioned in merge request Rec!3139 (merged)

  • Davide Fazzini changed the description

    changed the description

  • Davide Fazzini added 1 commit

    added 1 commit

    Compare with previous version

  • Davide Fazzini added 1 commit

    added 1 commit

    • 03924ec9 - add comment about definition of default values

    Compare with previous version

  • Davide Fazzini added 1 commit

    added 1 commit

    Compare with previous version

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading