9 return (i.pt() > j.pt());
15 while (x < 0.) x += 2*
M_PI;
25 inline double dPhi(
double phi1,
double phi2){
31 double radius(
double eta1,
double phi1,
double eta2,
double phi2){
40 double deta = eta1-eta2;
42 return sqrt(deta*deta+dphi*dphi);
45 template <
typename T1,
typename T2>
double radius(
const T1& t1,
const T2& t2){
46 return radius(t1->eta(),t1->phi(),t2->eta(),t2->phi());
double Phi_mpi_pi(double x)
double Phi_0_2pi(double x)
T x() const
Cartesian x coordinate.
double dPhi(double phi1, double phi2)
#define TWOPI
EgammaCoreTools.
bool operator()(const T &i, const T &j)