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 150
    • Merge requests 150
  • 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
    • Repository
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • atlasatlas
  • athenaathena
  • Merge requests
  • !34002

Constness in eflowRec and other small improvements

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Teng Jian Khoo requested to merge khoo/athena:master-eflowRec-constintegrator into master Jun 22, 2020
  • Overview 3
  • Commits 12
  • Pipelines 1
  • Changes 16

To be MT-safe, the tools in eflowRec need to be const, as do a number of their member variables. These were (still!) caching event data in member variables, which were not even mutables.

I eliminated various sorts of caching and started to get rid of some of the pointer arguments. The EtaPhi classes are lightweight enough that we can return by value w/o serious overhead.

There were even "hidden" constness problems in e.g. PFTrackClusterMatchingTool where the caching happened by way of a pointer, such that the pointer value did not change but the functions being called on the member object were non-const. The compiler didn't seem to be able to catch such issues.

The MatchDistance class had unused data content, so eliminated this in favour of just a simple pair.

There remain some unused (obsolete?) functions e.g. in PFMatcher but I left them in for now.

Partially addresses ATLJETMET-1256.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: master-eflowRec-constintegrator