Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:54:37

0001 /**
0002  *
0003  * Description: math utilities.
0004  *
0005  * Implementation:
0006  *    <TODO: enter implementation details>
0007  *
0008  * \author: Vasile Mihai Ghete   - HEPHY Vienna
0009  *
0010  *
0011  */
0012 
0013 // this class header
0014 #include "L1Trigger/GlobalTriggerAnalyzer/interface/L1PhiConversion.h"
0015 
0016 // convert phi from rad (-pi, pi] to deg (0, 360)
0017 const double rad2deg(const double& phiRad) {
0018   if (phiRad < 0.) {
0019     return (phiRad * PiConversion) + 360.;
0020   } else {
0021     return (phiRad * PiConversion);
0022   }
0023 }