Skip to content

Conversation

@arvindkhuntia
Copy link
Contributor

Dear @nzardosh,
I have removed TMath dependency and tried to solve some of the issues related to the O2 linter in this PR (Thanks to @vkucera for suggestions). Please approve the PR once tests are passed.

Have a nice afternoon.

@github-actions
Copy link

github-actions bot commented Jul 31, 2025

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

Copy link
Collaborator

@vkucera vkucera left a comment

Choose a reason for hiding this comment

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

Hi @arvindkhuntia , thanks for the improvements.
Do you plan to fix the PDG codes in the rest of the code in this PR as well?
Please see my comments below.

Comment on lines 178 to 180
static constexpr int PDGDeuteron = o2::constants::physics::Pdg::kDeuteron;
static constexpr int PDGTriton = o2::constants::physics::Pdg::kTriton;
static constexpr int PDGHelium = o2::constants::physics::Pdg::kHelium3;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use the existing PDG code names directly. Also for kProton.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @vkucera,
These constants are not used in the task. Removed them from the task. Thank you.

Copy link
Collaborator

Choose a reason for hiding this comment

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

But they should be used in mapPDGToValue.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Indeed. I will fix this in my next PR.

Copy link
Collaborator

Choose a reason for hiding this comment

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

OK

@vkucera vkucera changed the title [PWGJE] Remove TMath functioanlity to O2 one [PWGJE] Replace TMath methods with O2 ones Jul 31, 2025
Comment on lines -824 to +816
jetHist.fill(HIST("tracks/proton/h2TOFmass2ProtonVsPt_jet"), massTOF * massTOF - gMassProton * gMassProton, trk.pt());
jetHist.fill(HIST("tracks/proton/h2TOFmass2ProtonVsPt_jet"), massTOF * massTOF - o2::constants::physics::MassProton * o2::constants::physics::MassProton, trk.pt());
Copy link
Collaborator

Choose a reason for hiding this comment

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

You can put

using namespace o2::constants::physics;

in your task to avoid spelling the prefix every time.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the suggestion. I will fix this in the next PR.

Copy link
Collaborator

Choose a reason for hiding this comment

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

OK

@nzardosh nzardosh enabled auto-merge (squash) July 31, 2025 13:52
@vkucera vkucera disabled auto-merge July 31, 2025 13:54
@vkucera vkucera enabled auto-merge (squash) July 31, 2025 13:56
@vkucera vkucera merged commit 33c43b1 into AliceO2Group:master Aug 1, 2025
21 of 23 checks passed
jpxrk pushed a commit to jpxrk/O2Physics that referenced this pull request Aug 12, 2025
Co-authored-by: Arvind Khuntia <arvind.khuntia@cern.ch>
jloemker pushed a commit to jloemker/O2Physics that referenced this pull request Nov 11, 2025
Co-authored-by: Arvind Khuntia <arvind.khuntia@cern.ch>
alibuild pushed a commit to alibuild/O2Physics that referenced this pull request Dec 5, 2025
Co-authored-by: Arvind Khuntia <arvind.khuntia@cern.ch>
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.

4 participants