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

feat: particleSvc to distribute mass by PDG #1487

Merged
merged 17 commits into from
Jun 25, 2024
Merged

feat: particleSvc to distribute mass by PDG #1487

merged 17 commits into from
Jun 25, 2024

Conversation

wdconinc
Copy link
Contributor

@wdconinc wdconinc commented Jun 4, 2024

Briefly, what does this PR introduce?

Instead of storing the mass of the proton etc in various classes, this PR adds an algorithms::ParticleSvc that distributes the correct masses and charge etc by PDG number.

Note: I was playing around with using the algorithms::ParticleSvc as a thin interface-only, and let a JService read a data file and provide the actual service. But I gave up since it seemed pointless.

What kind of change does this PR introduce?

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

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.

@wdconinc wdconinc linked an issue Jun 4, 2024 that may be closed by this pull request
@wdconinc wdconinc force-pushed the particle-service branch from 5fc9576 to d8af15f Compare June 4, 2024 01:46
@wdconinc wdconinc requested a review from veprbl June 4, 2024 02:08
@github-actions github-actions bot added the topic: tracking Relates to tracking reconstruction label Jun 4, 2024
@wdconinc wdconinc force-pushed the particle-service branch from 727324f to 86cd35d Compare June 5, 2024 00:28
@wdconinc wdconinc mentioned this pull request Jun 5, 2024
4 tasks
@wdconinc wdconinc force-pushed the particle-service branch from 7b33546 to 81ff5f3 Compare June 5, 2024 18:26
@wdconinc wdconinc enabled auto-merge June 5, 2024 18:26
@github-actions github-actions bot added the topic: PID Relates to PID reconstruction label Jun 5, 2024
@veprbl veprbl added this to the 24.07.0 milestone Jun 6, 2024
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 could use some extra static variable declarations, but already LGTM.

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.

I meant like that.

src/algorithms/pid/IrtCherenkovParticleID.cc Show resolved Hide resolved
src/algorithms/reco/InclusiveKinematicsJB.cc Outdated Show resolved Hide resolved
src/algorithms/reco/InclusiveKinematicsSigma.cc Outdated Show resolved Hide resolved
src/algorithms/reco/InclusiveKinematicsTruth.cc Outdated Show resolved Hide resolved
src/algorithms/reco/InclusiveKinematicsTruth.cc Outdated Show resolved Hide resolved
…lues)

Co-authored-by: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
@wdconinc wdconinc added this pull request to the merge queue Jun 25, 2024
Merged via the queue into main with commit 9a032a2 Jun 25, 2024
83 of 85 checks passed
@wdconinc wdconinc deleted the particle-service branch June 25, 2024 13:39
veprbl added a commit that referenced this pull request Jun 27, 2024
### Briefly, what does this PR introduce?
Instead of storing the mass of the proton etc in various classes, this
PR adds an algorithms::ParticleSvc that distributes the correct masses
and charge etc by PDG number.

Note: I was playing around with using the algorithms::ParticleSvc as a
thin interface-only, and let a JService read a data file and provide the
actual service. But I gave up since it seemed pointless.

### What kind of change does this PR introduce?
- [ ] Bug fix (issue #__)
- [x] New feature (issue #__)
- [ ] Documentation update
- [ ] Other: __

### 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.

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: infrastructure topic: PID Relates to PID reconstruction topic: tracking Relates to tracking reconstruction
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TDatabasePDG is not thread safe
2 participants