Skip to content

Conversation

@mhemmer-cern
Copy link
Collaborator

@mhemmer-cern mhemmer-cern commented May 22, 2025

…params

  • std::optional can create copies, std::optional const& can bind to temporaries and may copy. Instead we now use either directly a gsl::span, or pointers, if not using a span.
  • Save cluster energy in variable inside fillClusterTable as well as clusterType to reduce lookup time
  • Move the reserve call for clustercells inside fillClusterTable outside of the cluster loop to ensure large enough size ONCE before filling.
  • Similar for fillAmbigousClusterTable

@github-actions
Copy link

github-actions bot commented May 22, 2025

O2 linter results: ❌ 11 errors, ⚠️ 0 warnings, 🔕 0 disabled

…params

- std::optional can create copies, std::optional<T> const& can bind to temporaries and may copy. Instead we now use either directly a gsl::span, or pointers, if not using a span.
- Save cluster energy in variable inside `fillClusterTable` as well as `clusterType` to reduce lookup time
- Move the reserve call for `clustercells` inside `fillClusterTable` outside of the cluster loop to ensure large enough size ONCE before filling.
- Similar for `fillAmbigousClusterTable`
@mhemmer-cern
Copy link
Collaborator Author

Local tests look good, this can be merged from my side.

@fjonasALICE fjonasALICE merged commit 5a7653e into AliceO2Group:master May 27, 2025
14 of 15 checks passed
@mhemmer-cern mhemmer-cern deleted the EMCAL-670 branch May 30, 2025 13:55
prottayCMT pushed a commit to prottayCMT/O2Physics2024 that referenced this pull request Jun 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants