CMS 3D CMS Logo

Functions
L1PhiConversion.cc File Reference
#include "L1Trigger/GlobalTriggerAnalyzer/interface/L1PhiConversion.h"

Go to the source code of this file.

Functions

const double rad2deg (const double &phiRad)
 convert phi from rad (-pi, pi] to deg (0, 360) More...
 

Function Documentation

◆ rad2deg()

const double rad2deg ( const double &  phiRad)

convert phi from rad (-pi, pi] to deg (0, 360)

Description: math utilities.

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

Definition at line 17 of file L1PhiConversion.cc.

17  {
18  if (phiRad < 0.) {
19  return (phiRad * PiConversion) + 360.;
20  } else {
21  return (phiRad * PiConversion);
22  }
23 }

References PiConversion.

Referenced by L1ExtraDQM::L1ExtraMonElement< CollectionType >::fillEtPhiEta(), L1ExtraDQM::L1ExtraMonElement< CollectionType >::fillPtPhiEta(), and L1GetHistLimits::getHistLimits().

PiConversion
static const double PiConversion
Definition: L1PhiConversion.h:19