[PWGLF] Add a workflow for (anti)triton analysis#17151
Open
AnalitikGnid wants to merge 4 commits into
Open
Conversation
AnalitikGnid
requested review from
HorstMa,
alibuild,
fmazzasc,
maciacco,
mpuccio,
omvazque and
skundu692
as code owners
July 21, 2026 12:47
|
O2 linter results: ❌ 2 errors, |
Collaborator
|
Error while checking build/O2Physics/staging for 3da74bd at 2026-07-21 14:55: Full log here. |
Collaborator
|
Error while checking build/O2Physics/code-check for bc69f0c at 2026-07-21 16:49: Full log here. |
vkucera
requested changes
Jul 21, 2026
vkucera
left a comment
Collaborator
There was a problem hiding this comment.
Since you are adding a new file, make sure it's clean from errors and warnings.
| Configurable<float> maxTpcFractionSharedCls{"maxTpcFractionSharedCls", 0.4, "maximum fraction of TPC shared clasters"}; | ||
| Configurable<int> minItsNCls{"minItsNCls", 0, "minimum allowed number of ITS clasters for a track"}; | ||
| Configurable<float> itsChi2NCl{"itsChi2NCl", 100.0, "upper limit for chi2 value of a fit over ITS clasters for a track"}; | ||
| Configurable<int> particlePDG{"particlePDG", 1000010030, "PDG code of a particle to perform PID for (only pion, kaon, proton and deurton are supported now)"}; |
| Configurable<std::vector<float>> tofNSigma{"tofNSigma", std::vector<float>{-4.0f, 4.0f}, "Nsigma range in TOF"}; | ||
| Configurable<std::vector<float>> tpcNSigmaResidual{"tpcNSigmaResidual", std::vector<float>{-5.0f, 5.0f}, "residual TPC Nsigma cut to use with the TOF"}; | ||
|
|
||
| Configurable<std::vector<int>> particlePDGtoReject{"particlePDGtoReject", std::vector<int>{2212}, "PDG codes of perticles that will be rejected with TPC"}; |
| std::pair<int, std::vector<float>> TPCcuts; | ||
| std::pair<int, std::vector<float>> TOFcuts; | ||
|
|
||
| static constexpr float kMassTriton = 2.808921f; // GeV/c^2 |
Comment on lines
+211
to
+218
| template <typename TrackType> | ||
| static float getY(const TrackType& track, float mass) | ||
| { | ||
| const float pTr = track.p(); | ||
| const float pzTr = track.pz(); | ||
| const float ETr = std::sqrt(pTr * pTr + mass * mass); | ||
| return 0.5f * std::log((ETr + pzTr) / (ETr - pzTr)); | ||
| } |
Collaborator
There was a problem hiding this comment.
Don't reinvent the wheel. There are RecoDecay methods for this.
Collaborator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new workflow for measuring (anti)triton production in Run 3 data
Dependencies
Uses output of the o2-analysis-cf-single-track-selector (https://aliceo2group.github.io/analysis-framework/docs/datamodel/pwgTables.html)
Links
Presented at the Nuclei and Exotica PAG meeting on Thursday, 16th July, 2026 (https://indico.cern.ch/event/1688019/)