2 #define JET_JETUTIL_H 1 10 return (i.pt() > j.pt());
17 return (i.et() > j.et());
26 while (x < 0.) x += 2*
M_PI;
36 static double dPhi(
double phi1,
double phi2){
39 return Phi_mpi_pi(phi1-phi2);
42 static double radius(
double eta1,
double phi1,
double eta2,
double phi2){
49 double dphi=Phi_0_2pi(phi1-phi2);
51 double deta = eta1-eta2;
53 return sqrt(deta*deta+dphi*dphi);
56 template <
typename T1,
typename T2>
static double radius(
const T1& t1,
const T2& t2){
57 return radius(t1->eta(),t1->phi(),t2->eta(),t2->phi());
static double radius(double eta1, double phi1, double eta2, double phi2)
static double Phi_mpi_pi(double x)
static double radius(const T1 &t1, const T2 &t2)
static double dPhi(double phi1, double phi2)
bool operator()(const T &i, const T &j)
static double Phi_0_2pi(double x)