Skip to content
Merged
Prev Previous commit
Update dndeta-mft-pbpb.cxx
fix copyright header
  • Loading branch information
gbencedi authored Dec 11, 2024
commit 3d33c149dedfb136378dc46e95df2a391a6e56fa
4 changes: 2 additions & 2 deletions PWGMM/Mult/Tasks/dndeta-mft-pbpb.cxx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2020-2022 CERN and copyright holders of ALICE O2.
// See https://alice-o2.web.cern.ch/copyright for details of the copyright
// holders. All rights not expressly granted are reserved.
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
// This software is distributed under the terms of the GNU General Public
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
Expand Down Expand Up @@ -550,14 +550,14 @@
if (usePhiCut) {
float phi = track.phi();
o2::math_utils::bringTo02Pi(phi);
if (phi < 0.f || 2.f * M_PI < phi) {

Check warning on line 553 in PWGMM/Mult/Tasks/dndeta-mft-pbpb.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[external-pi]

Consider using the PI constant (and its multiples and fractions) defined in o2::constants::math.

Check warning on line 553 in PWGMM/Mult/Tasks/dndeta-mft-pbpb.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pi-multiple-fraction]

Consider using multiples/fractions of PI defined in o2::constants::math.
return false;
}
if ((phi < cfgPhiCut) ||
((phi > M_PI - cfgPhiCut) && (phi < M_PI + cfgPhiCut)) ||

Check warning on line 557 in PWGMM/Mult/Tasks/dndeta-mft-pbpb.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[external-pi]

Consider using the PI constant (and its multiples and fractions) defined in o2::constants::math.
(phi > 2. * M_PI - cfgPhiCut) ||

Check warning on line 558 in PWGMM/Mult/Tasks/dndeta-mft-pbpb.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[external-pi]

Consider using the PI constant (and its multiples and fractions) defined in o2::constants::math.
((phi > ((M_PI / 2. - 0.1) * M_PI) - cfgPhiCut) &&

Check warning on line 559 in PWGMM/Mult/Tasks/dndeta-mft-pbpb.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[external-pi]

Consider using the PI constant (and its multiples and fractions) defined in o2::constants::math.
(phi < ((M_PI / 2. - 0.1) * M_PI) + cfgPhiCut)))

Check warning on line 560 in PWGMM/Mult/Tasks/dndeta-mft-pbpb.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[external-pi]

Consider using the PI constant (and its multiples and fractions) defined in o2::constants::math.
return false;
}
return true;
Expand Down Expand Up @@ -589,7 +589,7 @@
if (fillHis) {
float phi = track.phi();
o2::math_utils::bringTo02Pi(phi);
if (phi < 0.f || 2.f * M_PI < phi) {

Check warning on line 592 in PWGMM/Mult/Tasks/dndeta-mft-pbpb.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[external-pi]

Consider using the PI constant (and its multiples and fractions) defined in o2::constants::math.
continue;
}
if constexpr (C::template contains<aod::CentFT0Cs>()) {
Expand Down Expand Up @@ -623,7 +623,7 @@
if (fillHis) {
float phi = itrack.phi();
o2::math_utils::bringTo02Pi(phi);
if (phi < 0.f || 2.f * M_PI < phi) {

Check warning on line 626 in PWGMM/Mult/Tasks/dndeta-mft-pbpb.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[external-pi]

Consider using the PI constant (and its multiples and fractions) defined in o2::constants::math.
continue;
}
if constexpr (C::template contains<aod::CentFT0Cs>()) {
Expand Down Expand Up @@ -765,7 +765,7 @@

float phi = particle.phi();
o2::math_utils::bringTo02Pi(phi);
if (phi < 0.f || 2.f * M_PI < phi) {

Check warning on line 768 in PWGMM/Mult/Tasks/dndeta-mft-pbpb.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[external-pi]

Consider using the PI constant (and its multiples and fractions) defined in o2::constants::math.
continue;
}
if constexpr (isCent) {
Expand All @@ -781,7 +781,7 @@
if (atLeastOne) {
float phi = particle.phi();
o2::math_utils::bringTo02Pi(phi);
if (phi < 0.f || 2.f * M_PI < phi) {

Check warning on line 784 in PWGMM/Mult/Tasks/dndeta-mft-pbpb.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[external-pi]

Consider using the PI constant (and its multiples and fractions) defined in o2::constants::math.
continue;
}
if constexpr (isCent) {
Expand Down
Loading