8 const double etaToPhiBandwidthRatio,
9 const double relativePtBandwidth)
10 : etaBw_(
sqrt(etaToPhiBandwidthRatio)),
12 ptBw_(relativePtBandwidth)
14 assert(etaToPhiBandwidthRatio > 0.0);
15 assert(relativePtBandwidth > 0.0);
19 const fftjet::RecombinedJet<VectorLike>& j1,
20 const fftjet::RecombinedJet<VectorLike>& j2)
const
22 const double deta = (j1.vec().Eta() - j2.vec().Eta())/
etaBw_;
23 double dphi = j1.vec().Phi() - j2.vec().Phi();
26 else if (dphi < -
M_PI)
29 const double mag1 = j1.magnitude();
30 const double mag2 = j2.magnitude();
32 if (mag1 > 0.0 || mag2 > 0.0)
33 dmag = 2.0*(mag1 -
mag2)/(mag1 + mag2)/
ptBw_;
34 return sqrt(deta*deta + dphi*dphi + dmag*dmag);
T mag2() const
The vector magnitude squared. Equivalent to vec.dot(vec)
double operator()(const fftjet::RecombinedJet< VectorLike > &jet1, const fftjet::RecombinedJet< VectorLike > &jet2) const