Skip to content
Snippets Groups Projects

Small fix in TEvent to avoid reading objects that would be called "MetaData" but that would not be trees (related previous MR !65967))

All threads resolved!

I found out a small issue in the recently merged MR !65967 (merged). The previous MR (among many other things) implemented the reading of extra-metadata trees in order to retrieve event format information. This case can happen for augmented derivation file for instance were there is a metadata tree per stream decision.

The issue is in case an object is called "*MetaData*" e.g. in our analysis we have an hist (TH1D object) that is called MetaData_EventCount then the code was crashing by trying to read that object as a tree. I added a bit more protections against such cases and this solved the issue.

Tagging @akraszna, @ssnyder, @ekourlit and @gwatts.

Please let me know if you have comments about the robustness of the fix,
Thanks in advance,
Best,
Romain

Edited by Romain Bouquet

Merge request reports

Approval is optional

Merged by Walter LamplWalter Lampl 1 year ago (Dec 14, 2023 1:47pm UTC)

Merge details

  • Changes merged into main with b3ab5839 (commits were squashed).
  • Deleted the source branch.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • I left analysis-review-approved active, since I'm only asking for technical changes. The development is absolutely justified from an "analysis perspective". :wink:

  • Romain Bouquet added 1 commit

    added 1 commit

    Compare with previous version

  • This merge request affects 1 package:

    • Control/xAODRootAccess

    This merge request affects 1 file:

    • Control/xAODRootAccess/Root/TEvent.cxx

    Adding @ssnyder ,@akraszna as watchers

  • :warning: WARNING: big files (>100K) are found in the changeset

    :pencil: 148K in file Control/xAODRootAccess/Root/TEvent.cxx

  • Romain Bouquet resolved all threads

    resolved all threads

  • :white_check_mark: CI Result SUCCESS (hash e54759f0)

    Athena AthSimulation AthGeneration AnalysisBase AthAnalysis
    externals :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    cmake :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    make :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:
    tests :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark: :white_check_mark:

    Full details available on this CI monitor view. Check the JIRA CI status board for known problems
    :white_check_mark: Athena: number of compilation errors 0, warnings 0
    :white_check_mark: AthSimulation: number of compilation errors 0, warnings 0
    :white_check_mark: AthGeneration: number of compilation errors 0, warnings 0
    :white_check_mark: AnalysisBase: number of compilation errors 0, warnings 0
    :white_check_mark: AthAnalysis: number of compilation errors 0, warnings 0
    :pencil: For experts only: Jenkins output [CI-MERGE-REQUEST-EL9 2662]

  • Developer

    Looks good from my perspective.

    Cheers, Anne (L1)

  • added review-approved label and removed review-pending-level-1 label

  • merged

  • Walter Lampl mentioned in commit b3ab5839

    mentioned in commit b3ab5839

  • Please register or sign in to reply
    Loading