Skip to content
Snippets Groups Projects

Modernize MCDecayTreeTuple, TupleToolTrigger and TupleToolEventInfo

Merged Ross John Hunter requested to merge tuple-tool-data-handles into master

FYI @rmatev @sstahl @mvesteri

For the HltEfficiencyChecker tool (prints out/plots some efficiencies for the new HLT, see https://gitlab.cern.ch/lhcb/mooreanalysis/merge_requests/1) I use some tuple tools to write trigger decisions and basic kinematic information to a tuple. To make these work with the new scheduler so they can be added to the control flow following Moore, some modernisation/addition is needed:

  • TupleToolTrigger and TupleToolEventInfo now use data handles to declare their data dependencies. Drop L0 code. They also look for trigger dec reports with strings ending in Line rather than Decision, as they are written these days.
  • MCTupleToolKinematic also adds the eta variable to tuples - this is useful so you can ask for an efficiency if all the children of a decay fall within the eta acceptance of LHCb.
  • MCDecayTreeTuple declares its tools in the initialise method, so their data dependencies are made explicit. Beforehand tools were only instantiated when they are first asked for. This code is pretty much copied from the initializeStufferTools method of Phys/DecayTreeTupleBase/DecayTreeTupleBase/DecayTreeTupleBaseTemplates.icpp and could possibly be improved.

TODO:

  • The fact that the dec reports have the Line suffix rather than the Decision as in Run 2 probably shouldn't happen, and so perhaps this should instead be fixed in Moore, rather than changing what the tuple tool looks for here.
  • Fix formatting?
  • Update the treatment of HLT2 as well as HLT1 in TupleToolTrigger, and remove L0? POSTPONE HLT2 TO EXTENSION OF TOOL TO HLT2
  • Improve the initialisation of the tools in MCDecayTreeTuple?

A dependency of https://gitlab.cern.ch/lhcb/mooreanalysis/merge_requests/1. Depends on LHCb!2319 (merged), LHCb!2373 (merged), Phys!662 (merged)

Edited by Rosen Matev

Merge request reports

Pipeline #1407106 passed

Pipeline passed for 4170d6d3 on tuple-tool-data-handles

Approval is optional

Merged by Rosen MatevRosen Matev 5 years ago (Feb 13, 2020 12:54pm UTC)

Merge details

  • Changes merged into with 138f8d14.
  • Deleted the source branch.

Pipeline #1411810 passed

Pipeline passed for 138f8d14 on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Rosen Matev changed the description

    changed the description

  • Rosen Matev changed title from Some Modernization of MCDecayTreeTuple, TupleToolTrigger and TupleToolEventInfo to Modernize MCDecayTreeTuple, TupleToolTrigger and TupleToolEventInfo

    changed title from Some Modernization of MCDecayTreeTuple, TupleToolTrigger and TupleToolEventInfo to Modernize MCDecayTreeTuple, TupleToolTrigger and TupleToolEventInfo

  • Rosen Matev
  • Rosen Matev changed the description

    changed the description

  • added 1 commit

    • becb1912 - Apply suggestion to Phys/DecayTreeTupleMC/src/MCTupleToolKinematic.cpp

    Compare with previous version

  • Ross John Hunter added 3 commits

    added 3 commits

    • 6ee5a342 - Just call initializeStufferTools rather than duplicate its code
    • 0079d993 - Make some tool lists private again
    • a8787bf6 - Merge branch 'tuple-tool-data-handles' of...

    Compare with previous version

  • Rosen Matev
  • added 1 commit

    • 4170d6d3 - Forgot one tool to make private

    Compare with previous version

  • Edited by Software for LHCb
  • Rosen Matev resolved all threads

    resolved all threads

  • Rosen Matev approved this merge request

    approved this merge request

  • FYI @rangel @amato this solves the same or similar problems you were having when running (MC)DecayTreeTuple in Moore.

  • unassigned @rmatev

  • merged

  • Rosen Matev mentioned in commit 138f8d14

    mentioned in commit 138f8d14

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