DR matching strategy where cone decreases with pt. More...
#include <DeltaRMatcher.h>
Public Member Functions | |
SlidingDeltaRMatcher (double c1, double c2, double maxCone=std::numeric_limits< double >::max(), bool useRapidity=true) | |
Constructor. | |
virtual bool | objectsMatch (const xAOD::IParticle &p1, const xAOD::IParticle &p2) const override |
Check if particles match in dR. The dR cone is calculated as dR = c1 + (c2/p1.pt()). |
DR matching strategy where cone decreases with pt.
Calculates the dR cone w.r.t. the pt of the first argument as: dR = c1 + (c2/pt) Assumes that you're only using rapidity (for now).
ORUtils::SlidingDeltaRMatcher::SlidingDeltaRMatcher | ( | double | c1, | |
double | c2, | |||
double | maxCone = std::numeric_limits<double>::max() , |
|||
bool | useRapidity = true | |||
) |
Constructor.
[in] | c1 | The offset constant (dimensionless). |
[in] | c2 | The pt factor constant (MeV). |
[in] | maxCone | Cone size upper limit. |