CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_5_2_9/src/L1Trigger/GlobalTriggerAnalyzer/src/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)

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().

                                           {

    if (phiRad < 0.) {
        return (phiRad * PiConversion) + 360.;
    } else {
        return (phiRad * PiConversion);
    }
}