Skip to content

Commit ea56811

Browse files
abmodakalibuild
andauthored
[PWGCF] Fix variable initialization (#13057)
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent 50bd8fe commit ea56811

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

PWGCF/TwoParticleCorrelations/Tasks/longrangeCorrelation.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ enum KindOfCorrType {
8888
kFT0AFT0C
8989
};
9090

91-
static constexpr std::string_view kCorrType[] = {"Ft0aGlobal/", "Ft0cGlobal/", "MftGlobal/", "Ft0aMft/", "Ft0aFt0c"};
91+
static constexpr std::string_view kCorrType[] = {"Ft0aGlobal/", "Ft0cGlobal/", "MftGlobal/", "Ft0aMft/", "Ft0aFt0c/"};
9292
static constexpr std::string_view kEvntType[] = {"SE/", "ME/"};
93-
93+
auto static constexpr kMinFt0cCell = 96;
9494
AxisSpec axisEvent{10, 0.5, 9.5, "#Event", "EventAxis"};
9595

9696
struct LongrangeCorrelation {
@@ -274,6 +274,8 @@ struct LongrangeCorrelation {
274274
auto x = chPos.X() + (*offsetFT0)[i].getX();
275275
auto y = chPos.Y() + (*offsetFT0)[i].getY();
276276
auto z = chPos.Z() + (*offsetFT0)[i].getZ();
277+
if (chno >= kMinFt0cCell)
278+
z = -z;
277279
auto r = std::sqrt(x * x + y * y);
278280
auto theta = std::atan2(r, z);
279281
return -std::log(std::tan(0.5 * theta));

0 commit comments

Comments
 (0)