#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()
◆ clone()
◆ match()
| virtual void Associator_DeltaRCosmics::match |
( |
const std::vector< TIDA::Track * > & | referenceTracks, |
|
|
const std::vector< TIDA::Track * > & | testTracks ) |
|
inlinevirtual |
Implements TIDA::Associator< TIDA::Track >.
Definition at line 35 of file Associator_DeltaRCosmics.h.
36 {
37
38
40
41
42 std::vector<TIDA::Track*>::const_iterator
reference, referenceEnd=referenceTracks.end();
43 for(reference=referenceTracks.begin(); reference!=referenceEnd; reference++) {
44
45
46 TIDA::Track* bestMatch = NULL;
47 double bestDeltaR=1000;
48
49 std::vector<TIDA::Track*>::const_iterator
test, testEnd=testTracks.end();
50 for(test=testTracks.begin(); test!=testEnd; test++) {
51
52
53 double deta = (*reference)->eta() + (*test)->eta();
54 double dphi = (*reference)->phi() - (*test)->phi() -
M_PI;
57 double deltaR = deta*deta+dphi*dphi;
58
59
60 if(bestMatch==NULL ||
deltaR<bestDeltaR) {
62 bestMatch = (*test);
63 }
64 }
65
66
68
69 mmatched.insert(map_type::value_type(*reference, bestMatch));
70 mrevmatched.insert( map_type::value_type(bestMatch, *reference));
71 }
72 }
73 }
◆ matched() [1/2]
◆ matched() [2/2]
◆ revmatched() [1/2]
◆ revmatched() [2/2]
◆ size()
◆ m_deltaR2
| double Associator_DeltaRCosmics::m_deltaR2 |
|
private |
◆ mmatched
◆ mname
◆ mrevmatched
The documentation for this class was generated from the following file: