1919#include < cmath>
2020#include < cstdint>
2121#include < cstdlib>
22- #include < iostream>
2322#include < unordered_set>
2423#include < vector>
2524
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;
5149AxisSpec PtAxis = {1001 , -0.005 , 10.005 };
5250AxisSpec DeltaZAxis = {61 , -6.1 , 6.1 };
5351AxisSpec 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.};
5654AxisSpec DCAxyAxis = {100 , -1 , 10 };
5755AxisSpec 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