Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:21:00

0001 #ifndef L1Trigger_L1TMuonEndCapPhase2_TPUtils_h
0002 #define L1Trigger_L1TMuonEndCapPhase2_TPUtils_h
0003 
0004 namespace emtf::phase2::tp {
0005 
0006   // _______________________________________________________________________
0007   // radians <-> degrees
0008   float degToRad(float deg);
0009 
0010   float radToDeg(float rad);
0011 
0012   // _______________________________________________________________________
0013   // phi range: [-180..180] or [-pi..pi]
0014   float wrapPhiDeg(float);
0015 
0016   float wrapPhiRad(float);
0017 
0018   // _______________________________________________________________________
0019   // theta
0020   float calcThetaRadFromEta(float);
0021 
0022   float calcThetaDegFromEta(float);
0023 
0024   float calcThetaRadFromInt(int);
0025 
0026   float calcThetaDegFromInt(int);
0027 
0028   int calcThetaInt(int, float);
0029 
0030   // _______________________________________________________________________
0031   // phi
0032   float calcPhiGlobDegFromLoc(int, float);
0033 
0034   float calcPhiGlobRadFromLoc(int, float);
0035 
0036   float calcPhiLocDegFromInt(int);
0037 
0038   float calcPhiLocRadFromInt(int);
0039 
0040   float calcPhiLocDegFromGlob(int, float);
0041 
0042   int calcPhiInt(int, float);
0043 
0044 }  // namespace emtf::phase2::tp
0045 
0046 #endif  // namespace L1Trigger_L1TMuonEndCapPhase2_TPUtils_h