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 }