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