![]() |
ATLAS Offline Software
|
#include <TrackMatchingLookup.h>
Public Types | |
| typedef std::unordered_map< const T *, const R * > | mapTtoR_t |
| useful typedefs More... | |
| typedef std::unordered_map< const R *, std::vector< const T * > > | mapRtoT_t |
| typedef std::unordered_map< const T *, float > | mapTtoDist_t |
Public Member Functions | |
| TrackMatchingLookupBase (const std::string &anaTag_s) | |
| Constructor. More... | |
| ~TrackMatchingLookupBase ()=default | |
| Destructor. More... | |
| TrackMatchingLookupBase & | operator= (const TrackMatchingLookupBase< T, R > &)=delete |
| = operator (disabled) More... | |
| unsigned | getMapsSize (bool getRefN=false) const |
| get the overall number of matches More... | |
| const R * | getMatchedRef (const T &t) const |
| get matched reference from map More... | |
| const std::vector< const T * > & | getMatchedTest (const R &r) const |
| get matched test vector from map More... | |
| float | getDist (const T &t) const |
| get distance parameter for matched test More... | |
| bool | isTestInMaps (const T &t) const |
| return true if test is matched More... | |
| bool | isRefInMaps (const R &r) const |
| return true if reference is matched More... | |
| StatusCode | updateMaps (const T &t, const R &r, float dist=0.) |
| update maps with a new entry More... | |
| void | clearMaps () |
| clear lookup tables More... | |
| std::string | printMaps (const std::vector< const T * > &testVec, const std::vector< const R * > &refVec, std::string_view chainRoiName_s) const |
| print info about matching and reverse matchings More... | |
| bool | msgLvl (const MSG::Level lvl) const |
| Test the output level. More... | |
| MsgStream & | msg () const |
| The standard message stream. More... | |
| MsgStream & | msg (const MSG::Level lvl) const |
| The standard message stream. More... | |
| void | setLevel (MSG::Level lvl) |
| Change the current logging level. More... | |
Private Member Functions | |
| void | initMessaging () const |
| Initialize our message level and MessageSvc. More... | |
Private Attributes | |
| std::string | m_anaTag |
| analysis tag More... | |
| mapTtoR_t | m_mapTestToRef |
| Mapping test to its uniquely associated reference. More... | |
| mapRtoT_t | m_mapRefToTest |
| Mapping reference to its (possibly multiple) associated test(s) More... | |
| mapTtoDist_t | m_mapTestToDist |
| Mapping test to its uniquely associated reference. More... | |
| std::vector< const T * > | m_nullTest {} |
| null Vectors More... | |
| std::string | m_nm |
| Message source name. More... | |
| boost::thread_specific_ptr< MsgStream > | m_msg_tls |
| MsgStream instance (a std::cout like with print-out levels) More... | |
| std::atomic< IMessageSvc * > | m_imsg { nullptr } |
| MessageSvc pointer. More... | |
| std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
| Current logging level. More... | |
| std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
| Messaging initialized (initMessaging) More... | |
Definition at line 32 of file TrackMatchingLookup.h.
| typedef std::unordered_map< const R*, std::vector<const T*> > IDTPM::TrackMatchingLookupBase< T, R >::mapRtoT_t |
Definition at line 38 of file TrackMatchingLookup.h.
| typedef std::unordered_map< const T*, float > IDTPM::TrackMatchingLookupBase< T, R >::mapTtoDist_t |
Definition at line 39 of file TrackMatchingLookup.h.
| typedef std::unordered_map< const T*, const R* > IDTPM::TrackMatchingLookupBase< T, R >::mapTtoR_t |
useful typedefs
Definition at line 37 of file TrackMatchingLookup.h.
| IDTPM::TrackMatchingLookupBase< T, R >::TrackMatchingLookupBase | ( | const std::string & | anaTag_s | ) |
Constructor.
|
default |
Destructor.
| void IDTPM::TrackMatchingLookupBase< T, R >::clearMaps | ( | ) |
clear lookup tables
| float IDTPM::TrackMatchingLookupBase< T, R >::getDist | ( | const T & | t | ) | const |
get distance parameter for matched test
|
inline |
| const R* IDTPM::TrackMatchingLookupBase< T, R >::getMatchedRef | ( | const T & | t | ) | const |
get matched reference from map
| const std::vector<const T*>& IDTPM::TrackMatchingLookupBase< T, R >::getMatchedTest | ( | const R & | r | ) | const |
get matched test vector from map
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
| bool IDTPM::TrackMatchingLookupBase< T, R >::isRefInMaps | ( | const R & | r | ) | const |
return true if reference is matched
| bool IDTPM::TrackMatchingLookupBase< T, R >::isTestInMaps | ( | const T & | t | ) | const |
return true if test is matched
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 164 of file AthMessaging.h.
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 179 of file AthMessaging.h.
|
inlineinherited |
Test the output level.
| lvl | The message level to test against |
| true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
|
delete |
= operator (disabled)
| std::string IDTPM::TrackMatchingLookupBase< T, R >::printMaps | ( | const std::vector< const T * > & | testVec, |
| const std::vector< const R * > & | refVec, | ||
| std::string_view | chainRoiName_s | ||
| ) | const |
print info about matching and reverse matchings
|
inherited |
Change the current logging level.
Use this rather than msg().setLevel() for proper operation with MT.
Definition at line 28 of file AthMessaging.cxx.
| StatusCode IDTPM::TrackMatchingLookupBase< T, R >::updateMaps | ( | const T & | t, |
| const R & | r, | ||
| float | dist = 0. |
||
| ) |
update maps with a new entry
|
mutableprivateinherited |
Messaging initialized (initMessaging)
Definition at line 141 of file AthMessaging.h.
|
private |
analysis tag
Definition at line 83 of file TrackMatchingLookup.h.
|
mutableprivateinherited |
MessageSvc pointer.
Definition at line 135 of file AthMessaging.h.
|
mutableprivateinherited |
Current logging level.
Definition at line 138 of file AthMessaging.h.
|
private |
Mapping reference to its (possibly multiple) associated test(s)
Definition at line 89 of file TrackMatchingLookup.h.
|
private |
Mapping test to its uniquely associated reference.
Definition at line 92 of file TrackMatchingLookup.h.
|
private |
Mapping test to its uniquely associated reference.
Definition at line 86 of file TrackMatchingLookup.h.
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
|
privateinherited |
Message source name.
Definition at line 129 of file AthMessaging.h.
|
private |
null Vectors
Definition at line 95 of file TrackMatchingLookup.h.
1.8.18