Skip to content

Commit 8f03c83

Browse files
authored
Update in formating
1 parent a085068 commit 8f03c83

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

PWGLF/Tasks/GlobalEventProperties/dndeta-mft-pp.cxx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include <cmath>
2020
#include <cstdint>
2121
#include <cstdlib>
22-
#include <iostream>
2322
#include <unordered_set>
2423
#include <vector>
2524

@@ -38,7 +37,6 @@
3837
#include "CommonConstants/MathConstants.h"
3938
#include "MathUtils/Utils.h"
4039
#include "ReconstructionDataFormats/GlobalTrackID.h"
41-
#include "TDatabasePDG.h"
4240

4341
#include "PWGMM/Mult/DataModel/bestCollisionTable.h"
4442
#include "TFile.h"
@@ -51,7 +49,7 @@ using namespace o2::aod::track;
5149
AxisSpec PtAxis = {1001, -0.005, 10.005};
5250
AxisSpec DeltaZAxis = {61, -6.1, 6.1};
5351
AxisSpec ZAxis = {301, -30.1, 30.1};
54-
AxisSpec PhiAxis = {629, 0, 2 * o2::constants::math::PI, "Rad", "phi axis"};
52+
AxisSpec PhiAxis = {629, 0, o2::constants::math::TwoPI, "Rad", "phi axis"};
5553
// AxisSpec EtaAxis = {18, -4.6, -1.};
5654
AxisSpec DCAxyAxis = {100, -1, 10};
5755
AxisSpec CentAxis = {{0, 10, 20, 30, 40, 50, 60, 70, 80, 100}};
@@ -531,9 +529,9 @@ struct PseudorapidityDensityMFT {
531529
if (usePhiCut) {
532530
if ((phi < cfgPhiCut) ||
533531
((phi > o2::constants::math::PI - cfgPhiCut) && (phi < o2::constants::math::PI + cfgPhiCut)) ||
534-
(phi > 2. * o2::constants::math::PI - cfgPhiCut) ||
535-
((phi > ((o2::constants::math::PI / 2. - 0.1) * o2::constants::math::PI) - cfgPhiCut) &&
536-
(phi < ((o2::constants::math::PI / 2. - 0.1) * o2::constants::math::PI) + cfgPhiCut)))
532+
(phi > o2::constants::math::TwoPI - cfgPhiCut) ||
533+
((phi > ((o2::constants::math::PIHalf - 0.1) * o2::constants::math::PI) - cfgPhiCut) &&
534+
(phi < ((o2::constants::math::PIHalf - 0.1) * o2::constants::math::PI) + cfgPhiCut)))
537535
continue;
538536
}
539537

@@ -771,9 +769,9 @@ struct PseudorapidityDensityMFT {
771769
if (usePhiCut) {
772770
if ((phi < cfgPhiCut) ||
773771
((phi > o2::constants::math::PI - cfgPhiCut) && (phi < o2::constants::math::PI + cfgPhiCut)) ||
774-
(phi > 2. * o2::constants::math::PI - cfgPhiCut) ||
775-
((phi > ((o2::constants::math::PI / 2. - 0.1) * o2::constants::math::PI) - cfgPhiCut) &&
776-
(phi < ((o2::constants::math::PI / 2. - 0.1) * o2::constants::math::PI) + cfgPhiCut)))
772+
(phi > o2::constants::math::TwoPI - cfgPhiCut) ||
773+
((phi > ((o2::constants::math::PIHalf - 0.1) * o2::constants::math::PI) - cfgPhiCut) &&
774+
(phi < ((o2::constants::math::PIHalf - 0.1) * o2::constants::math::PI) + cfgPhiCut)))
777775
continue;
778776
}
779777

0 commit comments

Comments
 (0)