We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cff8511 commit bea1e90Copy full SHA for bea1e90
1 file changed
Framework/Core/include/Framework/AnalysisDataModel.h
@@ -93,8 +93,7 @@ DECLARE_SOA_DYNAMIC_COLUMN(NormalizedPhi, phi, [](float phi) -> float {
93
phi -= twopi;
94
return phi;
95
});
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))));
+DECLARE_SOA_EXPRESSION_COLUMN(Eta, eta, float, -1.f * nlog(ntan(0.25f * static_cast<float>(M_PI) - 0.5f * natan(aod::track::tgl))));
98
DECLARE_SOA_EXPRESSION_COLUMN(Pt, pt, float, nabs(1.f / aod::track::signed1Pt));
99
100
DECLARE_SOA_DYNAMIC_COLUMN(Charge, charge, [](float signed1Pt) -> short { return (signed1Pt > 0) ? 1 : -1; });
0 commit comments