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 177
    • Merge requests 177
  • 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
  • !29740

FakeBkgTools: speed improvement for saveProgress() function of likelihood matrix method tool

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Julien Maurer requested to merge jmaurer/athena:b21_2-FakeBkgTools-Jan23-speed into 21.2 Jan 23, 2020
  • Overview 6
  • Commits 2
  • Pipelines 1
  • Changes 3

Three proposed improvements to the LhoodMM_tools class of the FakeBkgTools package, without impact on physics results.

  1. @slawlor reported that the saveProgress() function of the LhoodMM_tools tool could be pretty slow (hours) for large number of events (>100 k). This seems to be due mostly to a few places where heavy objects are copied inside a loop, while working with references would avoid the overhead. After changing to the latter, @slawlor indicated that the running time is largely reduced.

  2. a couple small memory leaks were removed in saveProgress() by using smart pointers.

  3. the mergeSubJobs() function seemed to be ignoring the ProgressFileDirectory property, making it impossible to process a ROOT file where the results are not stored at top level. This is now fixed.

Bringing this to the attention of @evarnes, the tool expert...

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: b21_2-FakeBkgTools-Jan23-speed