Skip to content

Commit

Permalink
[PWGDQ] Fixing the calculation of the Psi EP in DQ flow framework (Al…
Browse files Browse the repository at this point in the history
…iceO2Group#4724)

* Fixing the calculation of the Psi EP

* Fixing clang

---------

Co-authored-by: Lucamicheletti93 <luca.mike93@gmail.com>
  • Loading branch information
lucamicheletti93 and lucamicheletti authored Feb 15, 2024
1 parent 5416c80 commit ef61454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PWGDQ/Core/VarManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ class VarManager : public TObject
static auto getEventPlane(int harm, float qnxa, float qnya)
{
// Compute event plane angle from qn vector components for the sub-event A
return (1.0 / harm) * TMath::ATan(qnya / qnxa);
return (1.0 / harm) * TMath::ATan2(qnya, qnxa);
};

template <typename T, typename C>
Expand Down

0 comments on commit ef61454

Please sign in to comment.