#include <JetConvergenceDistance.h>
Definition at line 10 of file JetConvergenceDistance.h.
fftjetcms::JetConvergenceDistance::JetConvergenceDistance |
( |
double |
etaToPhiBandwidthRatio, |
|
|
double |
relativePtBandwidth |
|
) |
| |
fftjetcms::JetConvergenceDistance::JetConvergenceDistance |
( |
| ) |
|
|
privatedelete |
double fftjetcms::JetConvergenceDistance::operator() |
( |
const fftjet::RecombinedJet< VectorLike > & |
jet1, |
|
|
const fftjet::RecombinedJet< VectorLike > & |
jet2 |
|
) |
| const |
|
override |
Definition at line 18 of file JetConvergenceDistance.cc.
References etaBw_, M_PI, mag2(), phiBw_, ptBw_, and mathSSE::sqrt().
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 fftjetcms::JetConvergenceDistance::etaBw_ |
|
private |
double fftjetcms::JetConvergenceDistance::phiBw_ |
|
private |
double fftjetcms::JetConvergenceDistance::ptBw_ |
|
private |