Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2026-04-02 08:12:45

0001 #include "Eventplaneinfov2.h"
0002 
0003 #include <cmath>
0004 #include <limits>
0005 
0006 void Eventplaneinfov2::identify(std::ostream& os) const
0007 {
0008   os << "---------Eventplaneinfov2------------------" << std::endl;
0009   return;
0010 }
0011 
0012 double Eventplaneinfov2::GetPsi(const double Qx, const double Qy, const unsigned int order) const
0013 {
0014   if (order == 0)
0015   {
0016     return std::numeric_limits<double>::quiet_NaN();
0017   }
0018   if ((Qx == 0.0) && (Qy == 0.0))
0019   {
0020     return std::numeric_limits<double>::quiet_NaN();
0021   }
0022   return std::atan2(Qy, Qx) / order;
0023 }