Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • M MooreAnalysis
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 14
    • Issues 14
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • LHCb
  • MooreAnalysis
  • Issues
  • #32
Closed
Open
Created Mar 21, 2022 by Daniel Cervenkov@dcervenkDeveloper

HltEfficiencyChecker printing is mangled

HltEfficiencyChecker/hlt_calculate_rates.py tries to be clever about aligning the decimal when printing the final rate table. However, it is not implemented correctly and ends up worse than nothing. See the output:

Line:    Hlt2PID_BToKJpsi_JpsiToPmPpTagged_LineDecision          Incl: 0.13348461589801777 +/- 0.09 kHz, Excl: 0.13348461589801777 +/- 0.09 kHz
Line:    Hlt2PID_BToKJpsi_JpsiToPpPmTagged_LineDecision          Incl: 0.0  +/- 0.0  kHz, Excl: 0.0  +/- 0.0  kHz
Line:    Hlt2PID_DstToD0Pi_D0ToKPiPiPi_LineDecision              Incl: 1.8020423146232396 +/- 0.34 kHz, Excl: 1.7353000066742308 +/- 0.34 kHz

This is due to the fact that the errors are always truncated to 4 characters, while the central values are not.

Perhaps just limiting everything to two or three digits and right aligning would be better?

Assignee
Assign to
Time tracking