![]() |
ATLAS Offline Software
|
#include <BestMatcher.h>
Classes | |
| class | matched_ |
| internal class to store the matching paramter for a pair, and in the indices of the pair More... | |
Public Types | |
| typedef std::map< T *, T * > | map_type |
| typedef std::map< T *, T * > | rmap_type |
Public Member Functions | |
| BestMatcher (const std::string &name, double d) | |
| virtual | ~BestMatcher () |
| virtual void | match (const std::vector< T * > &ref, const std::vector< S * > &test) |
| virtual double | distance (const T *t0, const S *t1) const =0 |
| virtual Associator * | clone ()=0 |
| virtual void | match (const std::vector< T * > &s1, const std::vector< T * > &s2)=0 |
| virtual const T * | matched (T *t) |
| virtual const T * | revmatched (T *t) |
| void | clear () |
| unsigned | size () const |
Protected Member Functions | |
| template<typename Tp, typename Tq> | |
| 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 29 of file BestMatcher.h.
|
inherited |
Definition at line 28 of file TIDAAssociator.h.
|
inherited |
Definition at line 29 of file TIDAAssociator.h.
|
inline |
Definition at line 61 of file BestMatcher.h.
|
inlinevirtual |
Definition at line 65 of file BestMatcher.h.
|
inlineinherited |
Definition at line 63 of file TIDAAssociator.h.
|
pure virtualinherited |
|
pure virtual |
|
inlinevirtual |
Definition at line 68 of file BestMatcher.h.
|
pure virtualinherited |
|
inlinevirtualinherited |
Definition at line 45 of file TIDAAssociator.h.
|
inlineprotected |
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.
|
inlinevirtualinherited |
Definition at line 52 of file TIDAAssociator.h.
|
inlineinherited |
Definition at line 66 of file TIDAAssociator.h.
|
protected |
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.