Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions PWGMM/Mult/Tasks/dndeta-mft-pbpb.cxx
Original file line number Diff line number Diff line change
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 Expand Up @@ -1337,8 +1337,7 @@
/// on BestCollisionsFwd in FT0C bins
template <typename C, typename MC>
void processTrkEffBest(
typename
soa::Join<C, aod::McCollisionLabels>::iterator const& collision,
typename soa::Join<C, aod::McCollisionLabels>::iterator const& collision,
MC const& /*mccollisions*/, filtParticles const& particles,
filtMcMftTracks const& /*tracks*/,
soa::SmallGroups<aod::BestCollisionsFwd> const& besttracks)
Expand Down
Loading