File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
PWGLF/TableProducer/Nuspex Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 };
You can’t perform that action at this time.
0 commit comments