![]() |
ATLAS Offline Software
|
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. More... | |
| virtual bool | objectsMatch (const xAOD::IParticle &p1, const xAOD::IParticle &p2) const override |
| Check if particles match in dR. More... | |
Private Attributes | |
| double | m_c1 |
| Sliding dR constant c1. More... | |
| double | m_c2 |
| Sliding dR constant c2. More... | |
| double | m_maxCone |
| Maximum sliding cone size. More... | |
| bool | m_useRapidity |
| Toggle rapidity usage. More... | |
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).
Definition at line 54 of file DeltaRMatcher.h.
| 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. |
Definition at line 34 of file DeltaRMatcher.cxx.
|
overridevirtual |
Check if particles match in dR.
The dR cone is calculated as dR = c1 + (c2/p1.pt())
Implements ORUtils::IParticleAssociator.
Definition at line 42 of file DeltaRMatcher.cxx.
|
private |
Sliding dR constant c1.
Definition at line 75 of file DeltaRMatcher.h.
|
private |
Sliding dR constant c2.
Definition at line 77 of file DeltaRMatcher.h.
|
private |
Maximum sliding cone size.
Definition at line 79 of file DeltaRMatcher.h.
|
private |
Toggle rapidity usage.
Definition at line 82 of file DeltaRMatcher.h.
1.8.18