Skip to content

Commit c4265c6

Browse files
authored
Changed BinningPolicy to ColumnBinningPolicy + searching for mistake in the FemtoWorld (#1064)
1 parent 95e2f2f commit c4265c6

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

PWGCF/FemtoWorld/Core/FemtoWorldContainer.h

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
#include "TMath.h"
2525
#include "TDatabasePDG.h"
2626

27+
#include "CommonConstants/MathConstants.h"
28+
using namespace o2::constants::math;
29+
2730
using namespace o2::framework;
2831

2932
namespace o2::analysis::femtoWorld
@@ -77,8 +80,8 @@ class FemtoWorldContainer
7780
framework::AxisSpec kTAxis = {kTBins, "#it{k}_{T} (GeV/#it{c})"};
7881
framework::AxisSpec mTAxis = {mTBins, "#it{m}_{T} (GeV/#it{c}^{2})"};
7982

80-
mPhiLow = (-(int)(phiBins / 4) + 0.5) * 2. * TMath::Pi() / phiBins;
81-
mPhiHigh = 2 * TMath::Pi() + (-(int)(phiBins / 4) + 0.5) * 2. * TMath::Pi() / phiBins;
83+
mPhiLow = (-(int)(phiBins / 4) + 0.5) * 2. * PI / phiBins;
84+
mPhiHigh = 2 * PI + (-(int)(phiBins / 4) + 0.5) * 2. * PI / phiBins;
8285

8386
framework::AxisSpec phiAxis = {phiBins, mPhiLow, mPhiHigh};
8487
framework::AxisSpec etaAxis = {etaBins, -2.0, 2.0};
@@ -125,10 +128,10 @@ class FemtoWorldContainer
125128

126129
double delta_phi = part1.phi() - part2.phi();
127130
while (delta_phi < mPhiLow) {
128-
delta_phi += PIT;
131+
delta_phi += TwoPI;
129132
}
130133
while (delta_phi > mPhiHigh) {
131-
delta_phi -= PIT;
134+
delta_phi -= TwoPI;
132135
}
133136

134137
if (mHistogramRegistry) {
@@ -155,7 +158,6 @@ class FemtoWorldContainer
155158
float mMassTwo = 0.f; ///< PDG mass of particle 2
156159
double mPhiLow;
157160
double mPhiHigh;
158-
static constexpr double PIT = 6.28318530717958623;
159161
};
160162

161163
} // namespace o2::analysis::femtoWorld

PWGCF/FemtoWorld/Tasks/femtoWorldPairTaskTrackTrack.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ struct femtoWorldPairTaskTrackTrack {
208208
o2::aod::FemtoDreamParticles& parts)
209209
{
210210

211-
BinningPolicy<aod::collision::PosZ, aod::femtodreamcollision::MultV0M> colBinning{{CfgVtxBins, CfgMultBins}, true};
211+
ColumnBinningPolicy<aod::collision::PosZ, aod::femtodreamcollision::MultV0M> colBinning{{CfgVtxBins, CfgMultBins}, true};
212212

213213
for (auto& [collision1, collision2] : soa::selfCombinations(colBinning, 5, -1, cols, cols)) {
214214

0 commit comments

Comments
 (0)