Skip to content

Commit bea1e90

Browse files
authored
aligning sign of eta with AliRoot (#4401)
1 parent cff8511 commit bea1e90

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Framework/Core/include/Framework/AnalysisDataModel.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,7 @@ DECLARE_SOA_DYNAMIC_COLUMN(NormalizedPhi, phi, [](float phi) -> float {
9393
phi -= twopi;
9494
return phi;
9595
});
96-
// FIXME: have float constants like pi defined somewhere
97-
DECLARE_SOA_EXPRESSION_COLUMN(Eta, eta, float, nlog(ntan(0.25f * static_cast<float>(M_PI) - 0.5f * natan(aod::track::tgl))));
96+
DECLARE_SOA_EXPRESSION_COLUMN(Eta, eta, float, -1.f * nlog(ntan(0.25f * static_cast<float>(M_PI) - 0.5f * natan(aod::track::tgl))));
9897
DECLARE_SOA_EXPRESSION_COLUMN(Pt, pt, float, nabs(1.f / aod::track::signed1Pt));
9998

10099
DECLARE_SOA_DYNAMIC_COLUMN(Charge, charge, [](float signed1Pt) -> short { return (signed1Pt > 0) ? 1 : -1; });

0 commit comments

Comments
 (0)