Skip to content

Commit 7c8709e

Browse files
[PWGLF] correction on eta of the candidates (#9122)
1 parent f2168b9 commit 7c8709e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PWGLF/TableProducer/Nuspex/he3HadronFemto.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ struct he3HadCandidate {
104104

105105
float recoPtHe3() const { return signHe3 * std::hypot(momHe3[0], momHe3[1]); }
106106
float recoPhiHe3() const { return std::atan2(momHe3[1], momHe3[0]); }
107-
float recoEtaHe3() const { return std::asinh(momHe3[2] / recoPtHe3()); }
107+
float recoEtaHe3() const { return std::asinh(momHe3[2] / std::abs(recoPtHe3())); }
108108
float recoPtHad() const { return signHad * std::hypot(momHad[0], momHad[1]); }
109109
float recoPhiHad() const { return std::atan2(momHad[1], momHad[0]); }
110-
float recoEtaHad() const { return std::asinh(momHad[2] / recoPtHad()); }
110+
float recoEtaHad() const { return std::asinh(momHad[2] / std::abs(recoPtHad())); }
111111

112112
std::array<float, 3> momHe3 = {99.f, 99.f, 99.f};
113113
std::array<float, 3> momHad = {99.f, 99.f, 99.f};

0 commit comments

Comments
 (0)