Skip to content

[PWGLF] Optimised both codes #13314

[PWGLF] Optimised both codes

[PWGLF] Optimised both codes #13314

Triggered via pull request July 10, 2025 14:33
Status Failure
Total duration 14s
Artifacts

o2-linter.yml

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

Annotations

10 errors and 2 notices
[pdg/explicit-mass]: PWGLF/Tasks/Resonances/higherMassResonances.cxx#L391
Avoid hard-coded particle masses. Use o2::constants::physics::Mass... instead.
[pdg/explicit-mass]: PWGLF/Tasks/Resonances/higherMassResonances.cxx#L187
Avoid hard-coded particle masses. Use o2::constants::physics::Mass... instead.
[pdg/explicit-code]: PWGLF/Tasks/Resonances/higherMassResonances.cxx#L1216
Avoid hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.
[pdg/explicit-code]: PWGLF/Tasks/Resonances/higherMassResonances.cxx#L1079
Avoid hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.
[pi-multiple-fraction]: PWGLF/Tasks/Resonances/higherMassResonances.cxx#L651
Use multiples/fractions of PI defined in o2::constants::math.
[two-pi-add-subtract]: PWGLF/Tasks/Resonances/higherMassResonances.cxx#L651
Use RecoDecay::constrainAngle to restrict angle to a given range.
[external-pi]: PWGLF/Tasks/Resonances/higherMassResonances.cxx#L651
Use the PI constant (and its multiples and fractions) defined in o2::constants::math.
[root/lorentz-vector]: PWGLF/Tasks/Resonances/higherMassResonances.cxx#L45
Do not use the TLorentzVector legacy class. Use std::array with RecoDecay methods or the ROOT::Math::LorentzVector template instead.
[root/entity]: PWGLF/Tasks/Resonances/higherMassResonances.cxx#L649
Replace ROOT entities with equivalents from standard C++ or from O2.
[root/entity]: PWGLF/Tasks/Resonances/higherMassResonances.cxx#L187
Replace ROOT entities with equivalents from standard C++ or from O2.
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.