ATLAS Offline Software
|
#include <VertexMatcher.h>
Public Types | |
typedef std::map< TIDA::Vertex *, TIDA::Vertex * > | map_type |
typedef std::map< TIDA::Vertex *, TIDA::Vertex * > | rmap_type |
Public Member Functions | |
VertexMatcher (const std::string &s, double d=3) | |
~VertexMatcher () | |
virtual BestMatcher< TIDA::Vertex > * | clone () override |
virtual double | distance (const TIDA::Vertex *v0, const TIDA::Vertex *v1) const override |
virtual void | match (const std::vector< TIDA::Vertex * > &ref, const std::vector< TIDA::Vertex * > &test) |
virtual const TIDA::Vertex * | matched (TIDA::Vertex *t) |
const map_type & | matched () const |
virtual const TIDA::Vertex * | revmatched (TIDA::Vertex *t) |
const rmap_type & | revmatched () const |
void | clear () |
unsigned | size () const |
Protected Member Functions | |
std::map< int, int > | matcher (const std::vector< Tp * > &ref, const std::vector< Tq * > &test) |
Protected Attributes | |
double | m_d |
std::string | mname |
map_type | mmatched |
rmap_type | mrevmatched |
Definition at line 22 of file VertexMatcher.h.
|
inherited |
Definition at line 28 of file TIDAAssociator.h.
|
inherited |
Definition at line 29 of file TIDAAssociator.h.
|
inline |
Definition at line 26 of file VertexMatcher.h.
|
inline |
Definition at line 28 of file VertexMatcher.h.
|
inlineinherited |
Definition at line 63 of file TIDAAssociator.h.
|
inlineoverridevirtual |
Implements TIDA::Associator< TIDA::Vertex, TIDA::Vertex >.
Definition at line 30 of file VertexMatcher.h.
|
inlineoverridevirtual |
ha ha ha, divide by the "expected uncertainty" you must be MAD
Implements BestMatcher< TIDA::Vertex >.
Definition at line 32 of file VertexMatcher.h.
|
inlinevirtualinherited |
Implements TIDA::Associator< TIDA::Vertex, TIDA::Vertex >.
Definition at line 68 of file BestMatcher.h.
|
inlineinherited |
Definition at line 59 of file TIDAAssociator.h.
|
inlinevirtualinherited |
Definition at line 45 of file TIDAAssociator.h.
|
inlineprotectedinherited |
inserting into a multimatch sorts them into order as they are added so you get the list of best matches imediately NB: probably quicker to add them to a vector and then sort them afterward
now go through from best to worst, adding to another sorted set only the matches that do not use tracks already used by a better matching pair already found
set of unique track pairings NB: for some reason, using the multiset is faster than using a vector, even though we are only iterating through it later
hooray!! now print out the answer, make a map etc this isn't technically needed, could just use the set of "matched" objects, but hey ho
Definition at line 91 of file BestMatcher.h.
|
inlineinherited |
Definition at line 60 of file TIDAAssociator.h.
|
inlinevirtualinherited |
Definition at line 52 of file TIDAAssociator.h.
|
inlineinherited |
Definition at line 66 of file TIDAAssociator.h.
|
protectedinherited |
Definition at line 171 of file BestMatcher.h.
|
protectedinherited |
Definition at line 73 of file TIDAAssociator.h.
|
protectedinherited |
Definition at line 71 of file TIDAAssociator.h.
|
protectedinherited |
Definition at line 74 of file TIDAAssociator.h.