Skip to content

Conversation

@gmantzar
Copy link
Contributor

  • Fixing selection bug in the Cascades
  • Adding "BeforeCuts" and "AfterCuts" in the selection class of femtodream (for tracks and cascades only for now)
  • chaning std::abs() to std::fabs() in the track and cascade selection
  • adding the Omega selection flag in the producer task to select Omegas as Cascades
  • Charge of the Cascade Candidates is determined by the cascade builder

- Adding "BeforeCuts" and "AfterCuts" in the selection class of femtodream (for tracks and cascades only for now)
- chaning std::abs() to std::fabs() in the track and cascade selection
- adding the Omega selection flag in the producer task to select Omegas as Cascades
@github-actions github-actions bot added the pwgcf label Jan 27, 2025
@github-actions github-actions bot changed the title Fixes and improvements for FemtoDream Cascades [PWGCF] Fixes and improvements for FemtoDream Cascades Jan 27, 2025
@ariedel-cern ariedel-cern enabled auto-merge (squash) January 27, 2025 15:03
return false;
}
if (nEtaSel > 0 && std::abs(eta) > etaMax) {
if (nEtaSel > 0 && std::fabs(eta) > etaMax) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

std::abs is safe in case you wanted to keep it

Copy link
Collaborator

@victor-gonzalez victor-gonzalez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I approve it for the time being but the following linter recommendations need to be addressed in the next iteration

  • the inclusion of <iostream>, impact compilation time and should not be used in O2Physics
  • the use of <TDatabasePDG.h> is quite inefficient regarding memory usage
  • use constant references for non-modified iterators in loops, that prevent inefficient memory management and access and also accidental inter-task common data modification which is really hard to catch

The rest of the linker recommendations needs to be addressed in a timely manner
And, please, remove all commented code, they reduce readability

@ariedel-cern ariedel-cern merged commit db83606 into AliceO2Group:master Jan 27, 2025
13 of 15 checks passed
smaff92 pushed a commit to smaff92/O2Physics that referenced this pull request Feb 17, 2025
@gmantzar gmantzar deleted the casc_fix branch February 26, 2025 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

3 participants