Skip to content

Commit f4e7161

Browse files
committed
update math constant
1 parent 697356a commit f4e7161

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

PWGLF/Tasks/Nuspex/neutronSkin.cxx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include "Common/DataModel/PIDResponseTPC.h"
2828
#include "Common/DataModel/TrackSelectionTables.h"
2929

30+
#include "CommonConstants/MathConstants.h"
3031
#include "CommonConstants/PhysicsConstants.h"
3132
#include "Framework/AnalysisTask.h"
3233
#include "Framework/HistogramRegistry.h"
@@ -69,7 +70,7 @@ struct NeutronSkinTask {
6970
170.0, 180.0, 190.0, 200.0, 210.0, 220.0, 230.0, 240.0, 250.0, 260.0,
7071
270.0, 280.0, 290.0, 300.0};
7172

72-
static constexpr double kChargeThreshold = 3.0; // PDG charge units: 3 = |e|
73+
static constexpr double ChargeThreshold = 3.0; // PDG charge units: 3 = |e|
7374

7475
// ==========================================================================
7576
// THNSPARSE AXIS ENUMERATION
@@ -107,7 +108,7 @@ struct NeutronSkinTask {
107108
// ==========================================================================
108109
ConfigurableAxis axisPt{"axisPt", std::vector<double>(PttJacek.begin(), PttJacek.end()), "pT axis"};
109110
ConfigurableAxis axisMultiplicity{"axisMultiplicity", {VARIABLE_WIDTH, 0, 5, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100}, "multiplicity / centrality axis"};
110-
ConfigurableAxis axisPhi{"axisPhi", {40, 0, 2 * M_PI}, "phi axis (rad)"};
111+
ConfigurableAxis axisPhi{"axisPhi", {40, 0, o2::constants::math::TwoPI}, "phi axis (rad)"};
111112

112113
// Event cuts
113114
Configurable<int> cfgAcceptSplitCollisions{"cfgAcceptSplitCollisions", 0, "0: only look at mcCollisions that are not split; 1: accept split mcCollisions, 2: accept split mcCollisions but only look at the first reco collision associated with it"};
@@ -330,7 +331,7 @@ struct NeutronSkinTask {
330331
if (p != nullptr) {
331332
charge = p->Charge();
332333
}
333-
return std::abs(charge) >= kChargeThreshold;
334+
return std::abs(charge) >= ChargeThreshold;
334335
}
335336

336337
// ==========================================================================

0 commit comments

Comments
 (0)