![]() |
ATLAS Offline Software
|
#include <TrackMatchingLookup.h>
Public Types | |
| typedef std::unordered_map< const xAOD::TruthParticle *, const xAOD::TrackParticle * > | mapTtoR_t |
| useful typedefs | |
| typedef std::unordered_map< const xAOD::TrackParticle *, std::vector< const xAOD::TruthParticle * > > | mapRtoT_t |
| typedef std::unordered_map< const xAOD::TruthParticle *, float > | mapTtoDist_t |
Public Member Functions | |
| TrackMatchingLookup_truthTrk (const std::string &anaTag_s) | |
| Constructor. | |
| ~TrackMatchingLookup_truthTrk ()=default | |
| Destructor. | |
| virtual unsigned | getNmatches (bool getRefN) const override |
| getNmatches | |
| virtual const xAOD::TrackParticle * | getMatchedRefTrack (const xAOD::TrackParticle &) const override |
| getMatchedRefTrack | |
| virtual const xAOD::TrackParticle * | getMatchedRefTrack (const xAOD::TruthParticle &t) const override |
| Truth -> Track. | |
| virtual const xAOD::TruthParticle * | getMatchedRefTruth (const xAOD::TrackParticle &) const override |
| Track -> Truth. | |
| virtual const std::vector< const xAOD::TrackParticle * > & | getMatchedTestTracks (const xAOD::TrackParticle &) const override |
| getMatchedTestTracks | |
| virtual const std::vector< const xAOD::TrackParticle * > & | getMatchedTestTracks (const xAOD::TruthParticle &) const override |
| vec Track <- Truth | |
| virtual const std::vector< const xAOD::TruthParticle * > & | getMatchedTestTruths (const xAOD::TrackParticle &r) const override |
| vec Truth <- Track | |
| virtual bool | isTestMatched (const xAOD::TrackParticle &) const override |
| isTestMatched | |
| virtual bool | isTestMatched (const xAOD::TruthParticle &t) const override |
| virtual bool | isRefMatched (const xAOD::TrackParticle &r) const override |
| isRefMatched | |
| virtual bool | isRefMatched (const xAOD::TruthParticle &) const override |
| virtual StatusCode | update (const xAOD::TrackParticle &, const xAOD::TrackParticle &, float) override |
| update | |
| virtual StatusCode | update (const xAOD::TrackParticle &, const xAOD::TruthParticle &, float) override |
| Track -> Truth. | |
| virtual StatusCode | update (const xAOD::TruthParticle &t, const xAOD::TrackParticle &r, float dist) override |
| Truth -> Track. | |
| virtual void | clear () override |
| clear | |
| virtual std::string | printInfo (const std::vector< const xAOD::TrackParticle * > &, const std::vector< const xAOD::TrackParticle * > &) const override |
| printInfo | |
| virtual std::string | printInfo (const std::vector< const xAOD::TrackParticle * > &, const std::vector< const xAOD::TruthParticle * > &) const override |
| Track -> Truth. | |
| virtual std::string | printInfo (const std::vector< const xAOD::TruthParticle * > &testVec, const std::vector< const xAOD::TrackParticle * > &refVec) const override |
| Truth -> Track. | |
| unsigned | getMapsSize (bool getRefN=false) const |
| get the overall number of matches | |
| const xAOD::TrackParticle * | getMatchedRef (const xAOD::TruthParticle &t) const |
| get matched reference from map | |
| const std::vector< const xAOD::TruthParticle * > & | getMatchedTest (const xAOD::TrackParticle &r) const |
| get matched test vector from map | |
| float | getDist (const xAOD::TruthParticle &t) const |
| get distance parameter for matched test | |
| bool | isTestInMaps (const xAOD::TruthParticle &t) const |
| return true if test is matched | |
| bool | isRefInMaps (const xAOD::TrackParticle &r) const |
| return true if reference is matched | |
| StatusCode | updateMaps (const xAOD::TruthParticle &t, const xAOD::TrackParticle &r, float dist=0.) |
| update maps with a new entry | |
| void | clearMaps () |
| clear lookup tables | |
| std::string | printMaps (const std::vector< const xAOD::TruthParticle * > &testVec, const std::vector< const xAOD::TrackParticle * > &refVec, std::string_view chainRoiName_s) const |
| print info about matching and reverse matchings | |
| bool | msgLvl (const MSG::Level lvl) const |
| Test the output level. | |
| MsgStream & | msg () const |
| The standard message stream. | |
| MsgStream & | msg (const MSG::Level lvl) const |
| The standard message stream. | |
| void | setLevel (MSG::Level lvl) |
| Change the current logging level. | |
| const std::string & | anaTag () const |
| matching properties | |
| void | anaTag (std::string_view anaTag_s) |
| const std::string & | chainRoiName () const |
| void | chainRoiName (std::string_view chainRoiName_s) |
| const xAOD::TruthParticle * | getMatchedRefTruth (const xAOD::TruthParticle &) const |
| Truth -> Truth // to avoid compilation errors. | |
| const std::vector< const xAOD::TruthParticle * > & | getMatchedTestTruths (const xAOD::TruthParticle &) const |
| vec Truth <- Truth // to avoid compilation errors | |
| const xAOD::TrackParticle * | getBestMatchedTestTrack (const xAOD::TrackParticle &r) const |
| get best matched test, i.e. | |
| const xAOD::TrackParticle * | getBestMatchedTestTrack (const xAOD::TruthParticle &r) const |
| best Track <- Truth | |
| virtual const xAOD::TruthParticle * | getBestMatchedTestTruth (const xAOD::TrackParticle &r) const |
| best Truth <- Track | |
| const xAOD::TruthParticle * | getBestMatchedTestTruth (const xAOD::TruthParticle &) const |
| best Truth <- Truth // to avoid compilation errors | |
Protected Attributes | |
| std::vector< const xAOD::TrackParticle * > | m_nullTrackVec {} |
| null vectors | |
| std::vector< const xAOD::TruthParticle * > | m_nullTruthVec {} |
Private Member Functions | |
| void | initMessaging () const |
| Initialize our message level and MessageSvc. | |
Private Attributes | |
| std::string | m_anaTag |
| analysis tag | |
| mapTtoR_t | m_mapTestToRef |
| Mapping test to its uniquely associated reference. | |
| mapRtoT_t | m_mapRefToTest |
| Mapping reference to its (possibly multiple) associated test(s) | |
| mapTtoDist_t | m_mapTestToDist |
| Mapping test to its uniquely associated reference. | |
| std::vector< const xAOD::TruthParticle * > | m_nullTest |
| null Vectors | |
| std::string | m_nm |
| Message source name. | |
| boost::thread_specific_ptr< MsgStream > | m_msg_tls |
| MsgStream instance (a std::cout like with print-out levels) | |
| std::atomic< IMessageSvc * > | m_imsg { nullptr } |
| MessageSvc pointer. | |
| std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
| Current logging level. | |
| std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
| Messaging initialized (initMessaging) | |
| std::string | m_chainRoiName |
|
inherited |
Definition at line 38 of file TrackMatchingLookup.h.
|
inherited |
Definition at line 39 of file TrackMatchingLookup.h.
|
inherited |
useful typedefs
Definition at line 37 of file TrackMatchingLookup.h.
|
inline |
Constructor.
Definition at line 362 of file TrackMatchingLookup.h.
|
default |
Destructor.
|
inlineinherited |
matching properties
Definition at line 41 of file ITrackMatchingLookup.h.
|
inlineinherited |
Definition at line 42 of file ITrackMatchingLookup.h.
|
inlineinherited |
Definition at line 45 of file ITrackMatchingLookup.h.
|
inlineinherited |
Definition at line 46 of file ITrackMatchingLookup.h.
|
inlineoverridevirtual |
clear
Implements IDTPM::ITrackMatchingLookup.
Definition at line 448 of file TrackMatchingLookup.h.
|
inherited |
clear lookup tables
|
inlineinherited |
get best matched test, i.e.
the one with the shortest dist parameter from the reference best Track <- Track
Definition at line 81 of file ITrackMatchingLookup.h.
|
inlineinherited |
Definition at line 89 of file ITrackMatchingLookup.h.
|
inlinevirtualinherited |
Definition at line 97 of file ITrackMatchingLookup.h.
|
inlineinherited |
best Truth <- Truth // to avoid compilation errors
Definition at line 105 of file ITrackMatchingLookup.h.
|
inherited |
get distance parameter for matched test
|
inlineinherited |
|
inherited |
get matched reference from map
|
inlineoverridevirtual |
getMatchedRefTrack
Implements IDTPM::ITrackMatchingLookup.
Definition at line 374 of file TrackMatchingLookup.h.
|
inlineoverridevirtual |
Implements IDTPM::ITrackMatchingLookup.
Definition at line 380 of file TrackMatchingLookup.h.
|
inlineinherited |
Truth -> Truth // to avoid compilation errors.
Definition at line 61 of file ITrackMatchingLookup.h.
|
inlineoverridevirtual |
Implements IDTPM::ITrackMatchingLookup.
Definition at line 383 of file TrackMatchingLookup.h.
|
inherited |
get matched test vector from map
|
inlineoverridevirtual |
getMatchedTestTracks
Implements IDTPM::ITrackMatchingLookup.
Definition at line 390 of file TrackMatchingLookup.h.
|
inlineoverridevirtual |
Implements IDTPM::ITrackMatchingLookup.
Definition at line 396 of file TrackMatchingLookup.h.
|
inlineinherited |
vec Truth <- Truth // to avoid compilation errors
Definition at line 75 of file ITrackMatchingLookup.h.
|
inlineoverridevirtual |
Implements IDTPM::ITrackMatchingLookup.
Definition at line 402 of file TrackMatchingLookup.h.
|
inlineoverridevirtual |
getNmatches
Implements IDTPM::ITrackMatchingLookup.
Definition at line 371 of file TrackMatchingLookup.h.
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
|
inherited |
return true if reference is matched
|
inlineoverridevirtual |
isRefMatched
Implements IDTPM::ITrackMatchingLookup.
Definition at line 416 of file TrackMatchingLookup.h.
|
inlineoverridevirtual |
Implements IDTPM::ITrackMatchingLookup.
Definition at line 420 of file TrackMatchingLookup.h.
|
inherited |
return true if test is matched
|
inlineoverridevirtual |
isTestMatched
Implements IDTPM::ITrackMatchingLookup.
Definition at line 406 of file TrackMatchingLookup.h.
|
inlineoverridevirtual |
Implements IDTPM::ITrackMatchingLookup.
Definition at line 411 of file TrackMatchingLookup.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 163 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 178 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.
|
inlineoverridevirtual |
printInfo
Implements IDTPM::ITrackMatchingLookup.
Definition at line 455 of file TrackMatchingLookup.h.
|
inlineoverridevirtual |
Implements IDTPM::ITrackMatchingLookup.
Definition at line 462 of file TrackMatchingLookup.h.
|
inlineoverridevirtual |
Implements IDTPM::ITrackMatchingLookup.
Definition at line 469 of file TrackMatchingLookup.h.
|
inherited |
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.
|
inlineoverridevirtual |
update
Implements IDTPM::ITrackMatchingLookup.
Definition at line 426 of file TrackMatchingLookup.h.
|
inlineoverridevirtual |
Implements IDTPM::ITrackMatchingLookup.
Definition at line 433 of file TrackMatchingLookup.h.
|
inlineoverridevirtual |
Implements IDTPM::ITrackMatchingLookup.
Definition at line 440 of file TrackMatchingLookup.h.
|
inherited |
update maps with a new entry
|
mutableprivateinherited |
Messaging initialized (initMessaging)
Definition at line 141 of file AthMessaging.h.
|
privateinherited |
analysis tag
Definition at line 83 of file TrackMatchingLookup.h.
|
privateinherited |
Definition at line 157 of file ITrackMatchingLookup.h.
|
mutableprivateinherited |
|
mutableprivateinherited |
|
privateinherited |
Mapping reference to its (possibly multiple) associated test(s)
Definition at line 89 of file TrackMatchingLookup.h.
|
privateinherited |
Mapping test to its uniquely associated reference.
Definition at line 92 of file TrackMatchingLookup.h.
|
privateinherited |
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.
|
privateinherited |
|
protectedinherited |
|
protectedinherited |
Definition at line 151 of file ITrackMatchingLookup.h.