Fixme: needs to be replaced by something inheriting from BestMatcher.
More...
#include <Associator_DeltaEtaPhi.h>
Fixme: needs to be replaced by something inheriting from BestMatcher.
Definition at line 28 of file Associator_DeltaEtaPhi.h.
◆ map_type
◆ rmap_type
◆ Associator_DeltaEtaPhi()
| Associator_DeltaEtaPhi::Associator_DeltaEtaPhi |
( |
const std::string & | name, |
|
|
double | deltaEta, |
|
|
double | deltaPhi ) |
|
inline |
Definition at line 32 of file Associator_DeltaEtaPhi.h.
Scalar deltaPhi(const MatrixBase< Derived > &vec) const
TIDA::Associator< TIDA::Track > TrackAssociator
◆ ~Associator_DeltaEtaPhi()
| Associator_DeltaEtaPhi::~Associator_DeltaEtaPhi |
( |
| ) |
|
|
inline |
◆ clear()
◆ clone()
◆ match()
| virtual void Associator_DeltaEtaPhi::match |
( |
const std::vector< TIDA::Track * > & | referenceTracks, |
|
|
const std::vector< TIDA::Track * > & | testTracks ) |
|
inlinevirtual |
Implements TIDA::Associator< TIDA::Track >.
Definition at line 38 of file Associator_DeltaEtaPhi.h.
39 {
40
41
43
44
45
46 std::vector<TIDA::Track*>::const_iterator
reference, referenceEnd=referenceTracks.end();
47 for(reference=referenceTracks.begin(); reference!=referenceEnd; reference++) {
48
49
50
51
52 TIDA::Track* bestMatch = NULL;
53 double bestDeltaR=1000;
54
55 std::vector<TIDA::Track*>::const_iterator
test, testEnd=testTracks.end();
56 for(test=testTracks.begin(); test!=testEnd; test++) {
57
58
59 double deta = (*reference)->eta() - (*test)->eta();
60 double dphi = (*reference)->phi() - (*test)->phi();
63
65
67
68
69 if(bestMatch==NULL ||
deltaR<bestDeltaR) {
71 bestMatch = (*test);
72 }
73 }
74
75
76 if(bestMatch) {
77
78 mmatched.insert(map_type::value_type(*reference, bestMatch));
79 mrevmatched.insert(map_type::value_type(bestMatch, *reference));
80
81 }
82 }
83 }
Scalar deltaR(const MatrixBase< Derived > &vec) const
◆ matched() [1/2]
◆ matched() [2/2]
◆ revmatched() [1/2]
◆ revmatched() [2/2]
◆ size()
◆ m_deltaEta
| double Associator_DeltaEtaPhi::m_deltaEta |
|
private |
◆ m_deltaPhi
| double Associator_DeltaEtaPhi::m_deltaPhi |
|
private |
◆ mmatched
◆ mname
◆ mrevmatched
The documentation for this class was generated from the following file: