Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move PID look up tables into global pid file #1745

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

simonge
Copy link
Contributor

@simonge simonge commented Feb 27, 2025

Briefly, what does this PR introduce?

Moves all of the PID LUT factories out of their detector plugin into the global pid plugin. Also moves PID factory files into the factories directory.

Maybe a matter of personal taste but this would make the data flow through the PID algorithms more transparent.

What kind of change does this PR introduce?

  • Bug fix (issue #__)
  • New feature (issue #__)
  • Documentation update
  • Other: Refactoring

Please check if this PR fulfills the following:

  • Tests for the changes have been added
  • Documentation has been added / updated
  • Changes have been communicated to collaborators

Does this PR introduce breaking changes? What changes might users need to make to their code?

No

Does this PR change default behavior?

No

@simonge simonge requested review from a team and wdconinc and removed request for a team February 27, 2025 17:28
Copy link
Member

@veprbl veprbl left a comment

Choose a reason for hiding this comment

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

This should be fine to do.

@@ -3,5 +3,4 @@ cmake_minimum_required(VERSION 3.16)
add_subdirectory(tracking)
add_subdirectory(reco)
add_subdirectory(pid)
add_subdirectory(pid_lut)
Copy link
Member

Choose a reason for hiding this comment

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

Having pid_lut allows to indicate that the codes in there are not supposed to do any actual PID. If you still prefer to merge those into PID, please do so for src/algorithms/pid_lut as well.

@@ -7,8 +7,11 @@

Copy link
Member

Choose a reason for hiding this comment

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

Moving everything to the same file clarifies data flow for LUT PID. Actual implementations for detectors can not be as uniform and probably not going to co-exist as well. That was my original reasoning.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is there ever going to be a situation where the PID from the LUT from some detectors are mixed with real PID from others?
I don't know if it's always possible but it certainly feels nicer not to jump back and forth between plugins.

Copy link
Member

Choose a reason for hiding this comment

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

I'd say, yes, as soon as any PID reconstruction is production ready (works on full DIS events), we then don't keep its LUT around.

Copy link
Contributor

Choose a reason for hiding this comment

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

What decade do you estimate that happening in? ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants