Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
L1Trigger
GlobalTriggerAnalyzer
src
L1PhiConversion.cc
Go to the documentation of this file.
1
15
// this class header
16
#include "
L1Trigger/GlobalTriggerAnalyzer/interface/L1PhiConversion.h
"
17
18
// convert phi from rad (-pi, pi] to deg (0, 360)
19
const
double
rad2deg
(
const
double
& phiRad) {
20
21
if
(phiRad < 0.) {
22
return
(phiRad *
PiConversion
) + 360.;
23
}
else
{
24
return
(phiRad *
PiConversion
);
25
}
26
}
L1PhiConversion.h
PiConversion
static const double PiConversion
Definition:
L1PhiConversion.h:21
rad2deg
const double rad2deg(const double &)
convert phi from rad (-pi, pi] to deg (0, 360)
Definition:
L1PhiConversion.cc:19
Generated for CMSSW Reference Manual by
1.8.5