Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Eventplaneinfov1.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Eventplaneinfov1.cc
1 #include "Eventplaneinfov1.h"
2 
3 #include <cmath>
4 
5 void Eventplaneinfov1::identify(std::ostream& os) const
6 {
7  os << "---------Eventplaneinfov1------------------" << std::endl;
8  os << "\t second order event plane angle is " << get_psi(2) << std::endl;
9  return;
10 }
11 
12 double Eventplaneinfov1::GetPsi(double Qx, double Qy, unsigned int order) const
13 {
14  double temp;
15  if ((Qx == 0.0) && (Qy == 0.0))
16  {
17  temp = NAN;
18  }
19  else
20  {
21  temp = atan2(Qy, Qx) / ((double) order);
22  }
23  return temp;
24 }