CMS 3D CMS Logo

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 }
PiConversion
static const double PiConversion
Definition: L1PhiConversion.h:19
rad2deg
const double rad2deg(const double &phiRad)
convert phi from rad (-pi, pi] to deg (0, 360)
Definition: L1PhiConversion.cc:17
L1PhiConversion.h