Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
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
if
(phiRad < 0.) {
19
return
(phiRad *
PiConversion
) + 360.;
20
}
else
{
21
return
(phiRad *
PiConversion
);
22
}
23
}
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