![]() |
ATLAS Offline Software
|
#include <TBestMatch.h>
Public Types | |
| typedef std::map< const T *, const T * > | map_type |
| typedef std::map< const T *, const T * > | rmap_type |
Public Member Functions | |
| TDeltaRZMatcher (const std::string &name, double deta=0.05, double dphi=0.05, double dzed=5) | |
| virtual | ~TDeltaRZMatcher () |
| virtual std::unique_ptr< TIDA::Associator< T, R > > | uclone () const override |
| virtual double | distance (const T *t0, const R *t1) const override |
| virtual void | match (const std::vector< T * > &ref, const std::vector< T * > &test) |
| virtual void | match (const std::vector< T * > &s1, const std::vector< T * > &s2)=0 |
| virtual double | distance (const T *t0, const T *t1) const=0 |
| virtual const T * | matched (T *t) const |
| virtual const T * | revmatched (T *t) 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_deta2 |
| double | m_dphi2 |
| double | m_dzed2 |
| double | m_d |
| std::string | mname |
| map_type | mmatched |
| rmap_type | mrevmatched |
Definition at line 80 of file TBestMatch.h.
|
inherited |
Definition at line 30 of file TIDAAssociator.h.
|
inherited |
Definition at line 31 of file TIDAAssociator.h.
|
inline |
Definition at line 84 of file TBestMatch.h.
|
inlinevirtual |
Definition at line 91 of file TBestMatch.h.
|
inlineinherited |
Definition at line 65 of file TIDAAssociator.h.
|
pure virtualinherited |
|
inlineoverridevirtual |
Definition at line 95 of file TBestMatch.h.
|
inlinevirtualinherited |
Implements TIDA::Associator< T, T >.
Definition at line 68 of file BestMatcher.h.
|
pure virtualinherited |
|
inlinevirtualinherited |
|
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.
|
inlinevirtualinherited |
Definition at line 54 of file TIDAAssociator.h.
|
inlineinherited |
Definition at line 68 of file TIDAAssociator.h.
|
inlineoverridevirtual |
|
protectedinherited |
Definition at line 166 of file BestMatcher.h.
|
protected |
Definition at line 107 of file TBestMatch.h.
|
protected |
Definition at line 108 of file TBestMatch.h.
|
protected |
Definition at line 109 of file TBestMatch.h.
|
protectedinherited |
Definition at line 75 of file TIDAAssociator.h.
|
protectedinherited |
Definition at line 73 of file TIDAAssociator.h.
|
protectedinherited |
Definition at line 76 of file TIDAAssociator.h.