CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
L1PhiConversion.h File Reference
#include <cmath>

Go to the source code of this file.

Functions

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

Variables

static const double PiConversion = 180. / acos(-1.)
 

Function Documentation

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

$Date$ $Revision$

Definition at line 19 of file L1PhiConversion.cc.

References PiConversion.

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

19  {
20 
21  if (phiRad < 0.) {
22  return (phiRad * PiConversion) + 360.;
23  } else {
24  return (phiRad * PiConversion);
25  }
26 }
static const double PiConversion

Variable Documentation

const double PiConversion = 180. / acos(-1.)
static

Description: math utilities.

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

$Date$ $Revision$

Definition at line 21 of file L1PhiConversion.h.

Referenced by rad2deg().