11 return (i.pt() > j.pt());
15 inline double Phi_0_2pi(
double x) {
23 inline double Phi_mpi_pi(
double x) {
31 inline double dPhi(
double phi1,
double phi2) {
32 phi1 = Phi_0_2pi(phi1);
33 phi2 = Phi_0_2pi(phi2);
34 return Phi_mpi_pi(phi1 - phi2);
37 inline double radius(
double eta1,
double phi1,
double eta2,
double phi2) {
40 phi1 = Phi_0_2pi(phi1);
41 phi2 = Phi_0_2pi(phi2);
43 double dphi = Phi_0_2pi(phi1 - phi2);
45 double deta = eta1 -
eta2;
47 return sqrt(deta * deta + dphi * dphi);
50 template <
typename T1,
typename T2>
51 double radius(
const T1& t1,
const T2& t2) {
52 return radius(t1->eta(), t1->phi(), t2->eta(), t2->phi());
uint16_t const *__restrict__ x
bool operator()(const T &i, const T &j)