CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1PhiConversion.cc
Go to the documentation of this file.
1 
15 // this class header
17 
18 // convert phi from rad (-pi, pi] to deg (0, 360)
19 const double rad2deg(const double& phiRad) {
20 
21  if (phiRad < 0.) {
22  return (phiRad * PiConversion) + 360.;
23  } else {
24  return (phiRad * PiConversion);
25  }
26 }
static const double PiConversion
const double rad2deg(const double &)
convert phi from rad (-pi, pi] to deg (0, 360)