![]() |
ATLAS Offline Software
|
#include <Associator_BestMatch.h>
Public Types | |
| typedef std::map< const T *, const S * > | map_type |
| typedef std::map< const S *, const T * > | rmap_type |
Public Member Functions | |
| Associator_BestSigmaMatcher (const std::string &name, double dsigma=1) | |
| virtual | ~Associator_BestSigmaMatcher () |
| virtual std::unique_ptr< TrackAssociator > | uclone () const override |
| virtual double | distance (const TIDA::Track *t0, const TIDA::Track *t1) const override |
| virtual void | match (const std::vector< TIDA::Track * > &ref, const std::vector< TIDA::Track * > &test) |
| virtual void | match (const std::vector< T * > &s1, const std::vector< S * > &s2)=0 |
| virtual const S * | matched (T *t) const |
| const map_type & | matched () const |
| virtual const T * | revmatched (S *t) const |
| 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 202 of file Associator_BestMatch.h.
|
inherited |
Definition at line 30 of file TIDAAssociator.h.
|
inherited |
Definition at line 31 of file TIDAAssociator.h.
|
inline |
Definition at line 207 of file Associator_BestMatch.h.
|
inlinevirtual |
Definition at line 211 of file Associator_BestMatch.h.
|
inlineinherited |
Definition at line 65 of file TIDAAssociator.h.
|
inlineoverridevirtual |
Implements BestMatcher< TIDA::Track >.
Definition at line 216 of file Associator_BestMatch.h.
|
inlinevirtualinherited |
Definition at line 68 of file BestMatcher.h.
|
pure virtualinherited |
Implemented in Associator_DeltaRCosmics, Associator_TruthMatcher, BestMatcher< TIDA::Vertex >, TrackMatchDeltaR, and TrackMatchDeltaRCosmic.
|
inlineinherited |
Definition at line 61 of file TIDAAssociator.h.
|
inlinevirtualinherited |
Definition at line 47 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 62 of file TIDAAssociator.h.
|
inlinevirtualinherited |
Definition at line 54 of file TIDAAssociator.h.
|
inlineinherited |
Definition at line 68 of file TIDAAssociator.h.
|
inlineoverridevirtual |
Implements TIDA::Associator< T, S >.
Definition at line 214 of file Associator_BestMatch.h.
|
protectedinherited |
Definition at line 166 of file BestMatcher.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.