Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • athena athena
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Jira
    • Jira
  • Merge requests 143
    • Merge requests 143
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Issue
    • Repository
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • atlas
  • athenaathena
  • Merge requests
  • !50911

Open
Created Mar 03, 2022 by Jon Burr@jburrDeveloper
  • Report abuse
Report abuse

Guard TrigEDMConfig import unless looking at bytestream files

  • Overview 10
  • Commits 1
  • Pipelines 1
  • Changes 2

In order to use the TrigDecisionToolCfg function in AthAnalysis we need to include the TriggerJobOpts package in the release to access the TriggerJobOpts.TriggerConfigFlags module. This module then has a dependency on TrigEDMConfig which then results in a dependency cascade.

This dependency is only used when looking at bytestream files which I doubt is possible in AthAnalysis anyway so I've guarded that import statement inside the relevant if block.

In adding the TriggerJobOpts package to AthAnalysis we do get a few modules which cannot be imported as they depend on other imports which we cannot include without a dependency cascade - I'm not sure if this is acceptable or not.

@cjmeyer - can you check if you can run your code in AthAnalysis with this fix?

Closes ATR-25066

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: ATR-25066