CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch12/src/L1Trigger/GlobalTriggerAnalyzer/src/L1PhiConversion.cc

Go to the documentation of this file.
00001 
00015 // this class header
00016 #include "L1Trigger/GlobalTriggerAnalyzer/interface/L1PhiConversion.h"
00017 
00018 // convert phi from rad (-pi, pi] to deg (0, 360)
00019 const double rad2deg(const double& phiRad) {
00020 
00021     if (phiRad < 0.) {
00022         return (phiRad * PiConversion) + 360.;
00023     } else {
00024         return (phiRad * PiConversion);
00025     }
00026 }