test
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 
13 // this class header
15 
16 // convert phi from rad (-pi, pi] to deg (0, 360)
17 const double rad2deg(const double& phiRad) {
18 
19  if (phiRad < 0.) {
20  return (phiRad * PiConversion) + 360.;
21  } else {
22  return (phiRad * PiConversion);
23  }
24 }
static const double PiConversion
const double rad2deg(const double &)
convert phi from rad (-pi, pi] to deg (0, 360)