#include <TrackMatchDeltaR.h>
Definition at line 25 of file TrackMatchDeltaR.h.
◆ map_type
◆ rmap_type
◆ TrackMatchDeltaR()
| TrackMatchDeltaR::TrackMatchDeltaR |
( |
const std::string & | name, |
|
|
double | R ) |
|
inline |
Definition at line 29 of file TrackMatchDeltaR.h.
29 :
31 { }
TIDA::Associator< TIDA::Track > TrackAssociator
◆ ~TrackMatchDeltaR()
| TrackMatchDeltaR::~TrackMatchDeltaR |
( |
| ) |
|
|
inline |
◆ clear()
◆ clone()
◆ deltaR2()
Definition at line 78 of file TrackMatchDeltaR.h.
78 {
79 double deta = reftrack->
eta()-testtrack->
eta();
80 double dphi = reftrack->
phi()-testtrack->
phi();
83 return deta*deta+dphi*dphi;
84 }
◆ match()
| virtual void TrackMatchDeltaR::match |
( |
const std::vector< TIDA::Track * > & | s1, |
|
|
const std::vector< TIDA::Track * > & | s2 ) |
|
inlinevirtual |
Implements TIDA::Associator< TIDA::Track >.
Definition at line 36 of file TrackMatchDeltaR.h.
38 {
40
41 const std::vector<TIDA::Track*>&
ref =
s1;
42 const std::vector<TIDA::Track*>&
test =
s2;
43
44
45 for (
int i=
ref.size() ; i-- ; ) {
46
47 TIDA::Track* reftrack =
ref[
i];
48
49
50 TIDA::Track* tmptrack = NULL;
51 double R2min = 0;
52
53
54 for (
int j=
test.size() ; j-- ; ) {
55
56 TIDA::Track* testtrack =
test[j];
57
58 double R2tmp =
deltaR2( reftrack, testtrack );
59
60
61 if ( tmptrack==NULL || R2tmp<R2min ) {
62 R2min = R2tmp;
63 tmptrack = testtrack;
64 }
65 }
66
67
68 if ( tmptrack && R2min<
m_R2 ) {
69 mmatched.insert( map_type::value_type(reftrack,tmptrack) );
70 mrevmatched.insert( map_type::value_type(tmptrack,reftrack) );
71
72 std::cout << "\t\tSUTT matched " << *reftrack << "\t -> \t" << *tmptrack << "\tDr=" << R2min << std::endl;
73 }
74 }
75 }
const boost::regex ref(r_ef)
virtual double deltaR2(const TIDA::Track *reftrack, const TIDA::Track *testtrack)
◆ matched() [1/2]
◆ matched() [2/2]
◆ revmatched() [1/2]
◆ revmatched() [2/2]
◆ size()
◆ m_R2
| double TrackMatchDeltaR::m_R2 |
|
private |
◆ mmatched
◆ mname
◆ mrevmatched
The documentation for this class was generated from the following file: