#include <Associator_DeltaRCosmics.h>
Definition at line 25 of file Associator_DeltaRCosmics.h.
◆ map_type
◆ rmap_type
◆ Associator_DeltaRCosmics()
| Associator_DeltaRCosmics::Associator_DeltaRCosmics |
( |
const std::string & | name, |
|
|
double | deltaR ) |
|
inline |
Definition at line 29 of file Associator_DeltaRCosmics.h.
Scalar deltaR(const MatrixBase< Derived > &vec) const
TIDA::Associator< TIDA::Track > TrackAssociator
◆ ~Associator_DeltaRCosmics()
| Associator_DeltaRCosmics::~Associator_DeltaRCosmics |
( |
| ) |
|
|
inline |
◆ clear()
◆ match()
Implements TIDA::Associator< TIDA::Track >.
Definition at line 34 of file Associator_DeltaRCosmics.h.
35 {
36
37
39
40
41 std::vector<TIDA::Track*>::const_iterator
reference, referenceEnd=referenceTracks.end();
42 for(reference=referenceTracks.begin(); reference!=referenceEnd; reference++) {
43
44
45 TIDA::Track* bestMatch = NULL;
46 double bestDeltaR=1000;
47
48 std::vector<TIDA::Track*>::const_iterator
test, testEnd=testTracks.end();
49 for(test=testTracks.begin(); test!=testEnd; test++) {
50
51
52 double deta = (*reference)->eta() + (*test)->eta();
53 double dphi = (*reference)->phi() - (*test)->phi() -
M_PI;
56 double deltaR = deta*deta+dphi*dphi;
57
58
59 if(bestMatch==NULL ||
deltaR<bestDeltaR) {
61 bestMatch = (*test);
62 }
63 }
64
65
67
68 mmatched.insert(map_type::value_type(*reference, bestMatch));
69 mrevmatched.insert( map_type::value_type(bestMatch, *reference));
70 }
71 }
72 }
◆ matched() [1/2]
◆ matched() [2/2]
◆ revmatched() [1/2]
◆ revmatched() [2/2]
◆ size()
◆ uclone()
◆ m_deltaR2
| double Associator_DeltaRCosmics::m_deltaR2 |
|
private |
◆ mmatched
◆ mname
◆ mrevmatched
The documentation for this class was generated from the following file: