Skip to content

[PWGDQ] Fix includes and using statements #26354

[PWGDQ] Fix includes and using statements

[PWGDQ] Fix includes and using statements #26354

Triggered via pull request April 10, 2026 16:03
@vkuceravkucera
opened #15719
Status Failure
Total duration 18s
Artifacts

o2-linter.yml

on: pull_request_target
O2 linter
14s
O2 linter
Fit to window
Zoom out
Zoom in

Annotations

10 errors, 1 warning, and 2 notices
[magic-number]: PWGDQ/TableProducer/tableMakerMuonMchTrkEfficiency.cxx#L472
Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
[magic-number]: PWGDQ/TableProducer/tableMakerMuonMchTrkEfficiency.cxx#L230
Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
[magic-number]: PWGDQ/TableProducer/tableMakerMuonMchTrkEfficiency.cxx#L185
Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
[const-ref-in-for-loop]: PWGDQ/TableProducer/tableMakerMuonMchTrkEfficiency.cxx#L491
Use constant references for non-modified iterators in range-based for loops.
[const-ref-in-for-loop]: PWGDQ/TableProducer/tableMakerMuonMchTrkEfficiency.cxx#L424
Use constant references for non-modified iterators in range-based for loops.
[pdg/explicit-mass]: PWGDQ/TableProducer/tableMakerMuonMchTrkEfficiency.cxx#L101
Avoid hard-coded particle masses. Use o2::constants::physics::Mass... instead.
[pdg/explicit-code]: PWGDQ/TableProducer/tableMakerMuonMchTrkEfficiency.cxx#L102
Avoid hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.
[root/lorentz-vector]: PWGDQ/TableProducer/tableMakerMuonMchTrkEfficiency.cxx#L287
Do not use the TLorentzVector legacy class. Use std::array with RecoDecay methods or the ROOT::Math::LorentzVector template instead.
[root/lorentz-vector]: PWGDQ/TableProducer/tableMakerMuonMchTrkEfficiency.cxx#L249
Do not use the TLorentzVector legacy class. Use std::array with RecoDecay methods or the ROOT::Math::LorentzVector template instead.
[root/lorentz-vector]: PWGDQ/TableProducer/tableMakerMuonMchTrkEfficiency.cxx#L23
Do not use the TLorentzVector legacy class. Use std::array with RecoDecay methods or the ROOT::Math::LorentzVector template instead.
O2 linter
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: thollander/actions-comment-pull-request@v3. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
O2 linter
To tolerate certain issues in a directory, add a line with the test name in "o2linter_config".
O2 linter
Exceptionally, you can disable a test for a line by adding a comment with "o2-linter: disable=" followed by the name of the test and parentheses with a reason for the exception.