CMS 3D CMS Logo

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