Skip to content

Commit

Permalink
[PWGLF] correction on eta of the candidates (AliceO2Group#9122)
Browse files Browse the repository at this point in the history
  • Loading branch information
GiorgioAlbertoLucia authored Dec 24, 2024
1 parent f2168b9 commit 7c8709e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PWGLF/TableProducer/Nuspex/he3HadronFemto.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ struct he3HadCandidate {

float recoPtHe3() const { return signHe3 * std::hypot(momHe3[0], momHe3[1]); }
float recoPhiHe3() const { return std::atan2(momHe3[1], momHe3[0]); }
float recoEtaHe3() const { return std::asinh(momHe3[2] / recoPtHe3()); }
float recoEtaHe3() const { return std::asinh(momHe3[2] / std::abs(recoPtHe3())); }
float recoPtHad() const { return signHad * std::hypot(momHad[0], momHad[1]); }
float recoPhiHad() const { return std::atan2(momHad[1], momHad[0]); }
float recoEtaHad() const { return std::asinh(momHad[2] / recoPtHad()); }
float recoEtaHad() const { return std::asinh(momHad[2] / std::abs(recoPtHad())); }

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

0 comments on commit 7c8709e

Please sign in to comment.