Skip to content
GitLab
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 157
    • Merge requests 157
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Repository
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • atlasatlas
  • athenaathena
  • Merge requests
  • !55451

RatesAnalysis: Handle keys change in unprescaling online rates

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Aleksandra Poreba requested to merge aporeba/athena:online-rates-handle-keys into 22.0 Jul 27, 2022
  • Overview 10
  • Commits 2
  • Pipelines 2
  • Changes 1

For given lumiblocks range, the script will read all possible combinations of HLT and L1 prescale sets keys. Then it will iterate through possible ranges, load the prescales sets and query data for the keys ranges based on timestamp.

To implement this case, a new helper class was added RateEntry that for every chain/item/group will store the sum of all rates (new pair of rates can be added to the sum by appendRate function) and the counter to calculate the average value in the end.

Additional validation was added: checking if the rate if > 0 for a disabled item, checking if the retrieved data is really in the requested region , and limiting the keys combination range only to the requested lumiblocks range.

The script will also use the RunLumi objects to read the data from COOL for a given lumiblock and run number.

Also, if the average rate retrieved from TRP is 0, it won't be included in total average (the average rate value won't be the same as in grafana dashboard).

Tagging @tamartin

Edited Jul 28, 2022 by Aleksandra Poreba
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: online-rates-handle-keys