Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
CommonTools
Utils
src
normalizedPhi.cc
Go to the documentation of this file.
1
#include "
CommonTools/Utils/interface/normalizedPhi.h
"
2
#include <cmath>
3
4
namespace
reco
{
5
double
normalizedPhi
(
double
phi
) {
6
static
double
const
TWO_PI =
M_PI
* 2;
7
while
( phi < -
M_PI
) phi += TWO_PI;
8
while
( phi >
M_PI
) phi -= TWO_PI;
9
return
phi
;
10
}
11
}
dt_dqm_sourceclient_common_cff.reco
tuple reco
Definition:
dt_dqm_sourceclient_common_cff.py:105
reco::normalizedPhi
double normalizedPhi(double phi)
Definition:
normalizedPhi.cc:5
M_PI
#define M_PI
Definition:
BFit3D.cc:3
normalizedPhi.h
phi
Definition:
DDAxes.h:10
Generated for CMSSW Reference Manual by
1.8.5