ATLAS Offline Software
Public Types | Public Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
IDTPM::TrackMatchingLookup_truthTrk Class Reference

#include <TrackMatchingLookup.h>

Inheritance diagram for IDTPM::TrackMatchingLookup_truthTrk:
Collaboration diagram for IDTPM::TrackMatchingLookup_truthTrk:

Public Types

typedef std::unordered_map< const xAOD::TruthParticle *, const xAOD::TrackParticle * > mapTtoR_t
 useful typedefs More...
 
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. More...
 
 ~TrackMatchingLookup_truthTrk ()=default
 Destructor. More...
 
virtual unsigned getNmatches () const override
 getNmatches More...
 
virtual const xAOD::TrackParticlegetMatchedRefTrack (const xAOD::TrackParticle &) const override
 getMatchedRefTrack More...
 
virtual const xAOD::TrackParticlegetMatchedRefTrack (const xAOD::TruthParticle &t) const override
 Truth -> Track. More...
 
virtual const xAOD::TruthParticlegetMatchedRefTruth (const xAOD::TrackParticle &) const override
 Track -> Truth. More...
 
virtual const std::vector< const xAOD::TrackParticle * > & getMatchedTestTracks (const xAOD::TrackParticle &) const override
 getMatchedTestTracks More...
 
virtual const std::vector< const xAOD::TrackParticle * > & getMatchedTestTracks (const xAOD::TruthParticle &) const override
 vec Track <- Truth More...
 
virtual const std::vector< const xAOD::TruthParticle * > & getMatchedTestTruths (const xAOD::TrackParticle &r) const override
 vec Truth <- Track More...
 
virtual bool isTestMatched (const xAOD::TrackParticle &) const override
 isTestMatched More...
 
virtual bool isTestMatched (const xAOD::TruthParticle &t) const override
 
virtual bool isRefMatched (const xAOD::TrackParticle &r) const override
 isRefMatched More...
 
virtual bool isRefMatched (const xAOD::TruthParticle &) const override
 
virtual StatusCode update (const xAOD::TrackParticle &, const xAOD::TrackParticle &, float) override
 update More...
 
virtual StatusCode update (const xAOD::TrackParticle &, const xAOD::TruthParticle &, float) override
 Track -> Truth. More...
 
virtual StatusCode update (const xAOD::TruthParticle &t, const xAOD::TrackParticle &r, float dist) override
 Truth -> Track. More...
 
virtual void clear () override
 clear More...
 
virtual std::string printInfo (const std::vector< const xAOD::TrackParticle * > &, const std::vector< const xAOD::TrackParticle * > &) const override
 printInfo More...
 
virtual std::string printInfo (const std::vector< const xAOD::TrackParticle * > &, const std::vector< const xAOD::TruthParticle * > &) const override
 Track -> Truth. More...
 
virtual std::string printInfo (const std::vector< const xAOD::TruthParticle * > &testVec, const std::vector< const xAOD::TrackParticle * > &refVec) const override
 Truth -> Track. More...
 
unsigned getMapsSize () const
 get the overall number of matches More...
 
const xAOD::TrackParticlegetMatchedRef (const xAOD::TruthParticle &t) const
 get matched reference from map More...
 
const std::vector< const xAOD::TruthParticle * > & getMatchedTest (const xAOD::TrackParticle &r) const
 get matched test vector from map More...
 
float getDist (const xAOD::TruthParticle &t) const
 get distance parameter for matched test More...
 
bool isTestInMaps (const xAOD::TruthParticle &t) const
 return true if test is matched More...
 
bool isRefInMaps (const xAOD::TrackParticle &r) const
 return true if reference is matched More...
 
StatusCode updateMaps (const xAOD::TruthParticle &t, const xAOD::TrackParticle &r, float dist=0.)
 update maps with a new entry More...
 
void clearMaps ()
 clear lookup tables More...
 
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 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...
 
const std::string & anaTag () const
 matching properties More...
 
void anaTag (std::string_view anaTag_s)
 
const std::string & chainRoiName () const
 
void chainRoiName (std::string_view chainRoiName_s)
 
const xAOD::TrackParticlegetBestMatchedTestTrack (const xAOD::TrackParticle &r) const
 get best matched test, i.e. More...
 
const xAOD::TrackParticlegetBestMatchedTestTrack (const xAOD::TruthParticle &r) const
 best Track <- Truth More...
 
virtual const xAOD::TruthParticlegetBestMatchedTestTruth (const xAOD::TrackParticle &r) const
 best Truth <- Track More...
 
virtual const xAOD::TruthParticlegetBestMatchedTestTruth (const xAOD::TruthParticle &) const
 best Truth <- Truth // to avoid compilation errors More...
 

Protected Attributes

std::vector< const xAOD::TrackParticle * > m_nullTrackVec {}
 null vectors More...
 
std::vector< const xAOD::TruthParticle * > m_nullTruthVec {}
 

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 xAOD::TruthParticle * > 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...
 
std::string m_chainRoiName
 

Detailed Description


-------— Truth -> Track Lookup -------—

Definition at line 354 of file TrackMatchingLookup.h.

Member Typedef Documentation

◆ mapRtoT_t

Definition at line 38 of file TrackMatchingLookup.h.

◆ mapTtoDist_t

Definition at line 39 of file TrackMatchingLookup.h.

◆ mapTtoR_t

useful typedefs

Definition at line 37 of file TrackMatchingLookup.h.

Constructor & Destructor Documentation

◆ TrackMatchingLookup_truthTrk()

IDTPM::TrackMatchingLookup_truthTrk::TrackMatchingLookup_truthTrk ( const std::string &  anaTag_s)
inline

Constructor.

Definition at line 361 of file TrackMatchingLookup.h.

361  :
363  anaTag( anaTag_s );
364  }

◆ ~TrackMatchingLookup_truthTrk()

IDTPM::TrackMatchingLookup_truthTrk::~TrackMatchingLookup_truthTrk ( )
default

Destructor.

Member Function Documentation

◆ anaTag() [1/2]

const std::string& IDTPM::ITrackMatchingLookup::anaTag ( ) const
inlineinherited

matching properties

Definition at line 41 of file ITrackMatchingLookup.h.

41 { return m_anaTag; }

◆ anaTag() [2/2]

void IDTPM::ITrackMatchingLookup::anaTag ( std::string_view  anaTag_s)
inlineinherited

Definition at line 42 of file ITrackMatchingLookup.h.

42  {
43  m_anaTag = anaTag_s;
44  }

◆ chainRoiName() [1/2]

const std::string& IDTPM::ITrackMatchingLookup::chainRoiName ( ) const
inlineinherited

Definition at line 45 of file ITrackMatchingLookup.h.

45 { return m_chainRoiName; }

◆ chainRoiName() [2/2]

void IDTPM::ITrackMatchingLookup::chainRoiName ( std::string_view  chainRoiName_s)
inlineinherited

Definition at line 46 of file ITrackMatchingLookup.h.

46  {
47  m_chainRoiName = chainRoiName_s;
48  }

◆ clear()

virtual void IDTPM::TrackMatchingLookup_truthTrk::clear ( )
inlineoverridevirtual

clear

Implements IDTPM::ITrackMatchingLookup.

Definition at line 447 of file TrackMatchingLookup.h.

447  {
448  ATH_MSG_DEBUG( "Deleting whole cache..." );
449  chainRoiName("");
450  clearMaps();
451  }

◆ clearMaps()

clear lookup tables

◆ getBestMatchedTestTrack() [1/2]

const xAOD::TrackParticle* IDTPM::ITrackMatchingLookup::getBestMatchedTestTrack ( const xAOD::TrackParticle r) const
inlineinherited

get best matched test, i.e.

the one with the shortest dist parameter from the reference best Track <- Track

Definition at line 75 of file ITrackMatchingLookup.h.

77  {
78  const std::vector< const xAOD::TrackParticle* >& vec =
80  return vec.empty() ? nullptr : vec[0];
81  }

◆ getBestMatchedTestTrack() [2/2]

const xAOD::TrackParticle* IDTPM::ITrackMatchingLookup::getBestMatchedTestTrack ( const xAOD::TruthParticle r) const
inlineinherited

best Track <- Truth

Definition at line 83 of file ITrackMatchingLookup.h.

85  {
86  const std::vector< const xAOD::TrackParticle* >& vec =
88  return vec.empty() ? nullptr : vec[0];
89  }

◆ getBestMatchedTestTruth() [1/2]

virtual const xAOD::TruthParticle* IDTPM::ITrackMatchingLookup::getBestMatchedTestTruth ( const xAOD::TrackParticle r) const
inlinevirtualinherited

best Truth <- Track

Definition at line 91 of file ITrackMatchingLookup.h.

93  {
94  const std::vector< const xAOD::TruthParticle* >& vec =
96  return vec.empty() ? nullptr : vec[0];
97  }

◆ getBestMatchedTestTruth() [2/2]

virtual const xAOD::TruthParticle* IDTPM::ITrackMatchingLookup::getBestMatchedTestTruth ( const xAOD::TruthParticle ) const
inlinevirtualinherited

best Truth <- Truth // to avoid compilation errors

Definition at line 99 of file ITrackMatchingLookup.h.

100  { return nullptr; };

◆ getDist()

get distance parameter for matched test

◆ getMapsSize()

unsigned IDTPM::TrackMatchingLookupBase< xAOD::TruthParticle , xAOD::TrackParticle >::getMapsSize
inlineinherited

get the overall number of matches

Definition at line 51 of file TrackMatchingLookup.h.

51 { return m_mapTestToRef.size(); }

◆ getMatchedRef()

get matched reference from map

◆ getMatchedRefTrack() [1/2]

virtual const xAOD::TrackParticle* IDTPM::TrackMatchingLookup_truthTrk::getMatchedRefTrack ( const xAOD::TrackParticle ) const
inlineoverridevirtual

getMatchedRefTrack

Implements IDTPM::ITrackMatchingLookup.

Definition at line 373 of file TrackMatchingLookup.h.

374  {
375  ATH_MSG_WARNING( "getMatchedRefTrack: Track->Track disabled" );
376  return nullptr;
377  }

◆ getMatchedRefTrack() [2/2]

virtual const xAOD::TrackParticle* IDTPM::TrackMatchingLookup_truthTrk::getMatchedRefTrack ( const xAOD::TruthParticle t) const
inlineoverridevirtual

Truth -> Track.

Implements IDTPM::ITrackMatchingLookup.

Definition at line 379 of file TrackMatchingLookup.h.

380  { return getMatchedRef(t); }

◆ getMatchedRefTruth()

virtual const xAOD::TruthParticle* IDTPM::TrackMatchingLookup_truthTrk::getMatchedRefTruth ( const xAOD::TrackParticle t) const
inlineoverridevirtual

Track -> Truth.

Implements IDTPM::ITrackMatchingLookup.

Definition at line 382 of file TrackMatchingLookup.h.

383  {
384  ATH_MSG_WARNING( "getMatchedRefTruth: Track->Truth disabled" );
385  return nullptr;
386  }

◆ getMatchedTest()

get matched test vector from map

◆ getMatchedTestTracks() [1/2]

virtual const std::vector< const xAOD::TrackParticle* >& IDTPM::TrackMatchingLookup_truthTrk::getMatchedTestTracks ( const xAOD::TrackParticle ) const
inlineoverridevirtual

getMatchedTestTracks

Implements IDTPM::ITrackMatchingLookup.

Definition at line 389 of file TrackMatchingLookup.h.

390  {
391  ATH_MSG_WARNING( "getMatchedTestTruths: Track<-Track disabled" );
392  return m_nullTrackVec;
393  }

◆ getMatchedTestTracks() [2/2]

virtual const std::vector< const xAOD::TrackParticle* >& IDTPM::TrackMatchingLookup_truthTrk::getMatchedTestTracks ( const xAOD::TruthParticle r) const
inlineoverridevirtual

vec Track <- Truth

Implements IDTPM::ITrackMatchingLookup.

Definition at line 395 of file TrackMatchingLookup.h.

396  {
397  ATH_MSG_WARNING( "getMatchedTestTracks: Tracks<-Truth disabled" );
398  return m_nullTrackVec;
399  }

◆ getMatchedTestTruths()

virtual const std::vector< const xAOD::TruthParticle* >& IDTPM::TrackMatchingLookup_truthTrk::getMatchedTestTruths ( const xAOD::TrackParticle r) const
inlineoverridevirtual

vec Truth <- Track

Implements IDTPM::ITrackMatchingLookup.

Definition at line 401 of file TrackMatchingLookup.h.

402  { return getMatchedTest(r); }

◆ getNmatches()

virtual unsigned IDTPM::TrackMatchingLookup_truthTrk::getNmatches ( ) const
inlineoverridevirtual

getNmatches

Implements IDTPM::ITrackMatchingLookup.

Definition at line 370 of file TrackMatchingLookup.h.

370 { return getMapsSize(); }

◆ initMessaging()

void AthMessaging::initMessaging ( ) const
privateinherited

Initialize our message level and MessageSvc.

This method should only be called once.

Definition at line 39 of file AthMessaging.cxx.

40 {
42  m_lvl = m_imsg ?
43  static_cast<MSG::Level>( m_imsg.load()->outputLevel(m_nm) ) :
44  MSG::INFO;
45 }

◆ isRefInMaps()

return true if reference is matched

◆ isRefMatched() [1/2]

virtual bool IDTPM::TrackMatchingLookup_truthTrk::isRefMatched ( const xAOD::TrackParticle r) const
inlineoverridevirtual

isRefMatched

Implements IDTPM::ITrackMatchingLookup.

Definition at line 415 of file TrackMatchingLookup.h.

415  {
416  return isRefInMaps(r);
417  }

◆ isRefMatched() [2/2]

virtual bool IDTPM::TrackMatchingLookup_truthTrk::isRefMatched ( const xAOD::TruthParticle ) const
inlineoverridevirtual

Implements IDTPM::ITrackMatchingLookup.

Definition at line 419 of file TrackMatchingLookup.h.

419  {
420  ATH_MSG_WARNING( "isRefMatched: X<-Truth disabled" );
421  return false;
422  }

◆ isTestInMaps()

return true if test is matched

◆ isTestMatched() [1/2]

virtual bool IDTPM::TrackMatchingLookup_truthTrk::isTestMatched ( const xAOD::TrackParticle ) const
inlineoverridevirtual

isTestMatched

Implements IDTPM::ITrackMatchingLookup.

Definition at line 405 of file TrackMatchingLookup.h.

405  {
406  ATH_MSG_WARNING( "isTestMatched: Track->X disabled" );
407  return false;
408  }

◆ isTestMatched() [2/2]

virtual bool IDTPM::TrackMatchingLookup_truthTrk::isTestMatched ( const xAOD::TruthParticle t) const
inlineoverridevirtual

Implements IDTPM::ITrackMatchingLookup.

Definition at line 410 of file TrackMatchingLookup.h.

410  {
411  return isTestInMaps(t);
412  }

◆ msg() [1/2]

MsgStream & AthMessaging::msg ( ) const
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.

165 {
166  MsgStream* ms = m_msg_tls.get();
167  if (!ms) {
168  if (!m_initialized.test_and_set()) initMessaging();
169  ms = new MsgStream(m_imsg,m_nm);
170  m_msg_tls.reset( ms );
171  }
172 
173  ms->setLevel (m_lvl);
174  return *ms;
175 }

◆ msg() [2/2]

MsgStream & AthMessaging::msg ( const MSG::Level  lvl) const
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.

180 { return msg() << lvl; }

◆ msgLvl()

bool AthMessaging::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Test the output level.

Parameters
lvlThe message level to test against
Returns
boolean Indicating if messages at given level will be printed
Return values
trueMessages at level "lvl" will be printed

Definition at line 151 of file AthMessaging.h.

152 {
153  if (!m_initialized.test_and_set()) initMessaging();
154  if (m_lvl <= lvl) {
155  msg() << lvl;
156  return true;
157  } else {
158  return false;
159  }
160 }

◆ printInfo() [1/3]

virtual std::string IDTPM::TrackMatchingLookup_truthTrk::printInfo ( const std::vector< const xAOD::TrackParticle * > &  ,
const std::vector< const xAOD::TrackParticle * > &   
) const
inlineoverridevirtual

printInfo

Implements IDTPM::ITrackMatchingLookup.

Definition at line 454 of file TrackMatchingLookup.h.

456  {
457  ATH_MSG_WARNING( "printInfo: Track->Track matches disabled" );
458  return std::string("--> No matches found");
459  }

◆ printInfo() [2/3]

virtual std::string IDTPM::TrackMatchingLookup_truthTrk::printInfo ( const std::vector< const xAOD::TrackParticle * > &  testVec,
const std::vector< const xAOD::TruthParticle * > &  refVec 
) const
inlineoverridevirtual

Track -> Truth.

Implements IDTPM::ITrackMatchingLookup.

Definition at line 461 of file TrackMatchingLookup.h.

463  {
464  ATH_MSG_WARNING( "printInfo: Track->Truth matches disabled" );
465  return std::string("--> No matches found");
466  }

◆ printInfo() [3/3]

virtual std::string IDTPM::TrackMatchingLookup_truthTrk::printInfo ( const std::vector< const xAOD::TruthParticle * > &  testVec,
const std::vector< const xAOD::TrackParticle * > &  refVec 
) const
inlineoverridevirtual

Truth -> Track.

Implements IDTPM::ITrackMatchingLookup.

Definition at line 468 of file TrackMatchingLookup.h.

470  {
471  return printMaps( testVec, refVec, chainRoiName() );
472  }

◆ printMaps()

std::string IDTPM::TrackMatchingLookupBase< xAOD::TruthParticle , xAOD::TrackParticle >::printMaps ( const std::vector< const xAOD::TruthParticle * > &  testVec,
const std::vector< const xAOD::TrackParticle * > &  refVec,
std::string_view  chainRoiName_s 
) const
inherited

print info about matching and reverse matchings

◆ setLevel()

void AthMessaging::setLevel ( MSG::Level  lvl)
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.

29 {
30  m_lvl = lvl;
31 }

◆ update() [1/3]

virtual StatusCode IDTPM::TrackMatchingLookup_truthTrk::update ( const xAOD::TrackParticle ,
const xAOD::TrackParticle ,
float   
)
inlineoverridevirtual

update

Implements IDTPM::ITrackMatchingLookup.

Definition at line 425 of file TrackMatchingLookup.h.

427  {
428  return StatusCode::SUCCESS;
429  ATH_MSG_WARNING( "update: Track->Track disabled" );
430  }

◆ update() [2/3]

virtual StatusCode IDTPM::TrackMatchingLookup_truthTrk::update ( const xAOD::TrackParticle t,
const xAOD::TruthParticle r,
float  dist 
)
inlineoverridevirtual

Track -> Truth.

Implements IDTPM::ITrackMatchingLookup.

Definition at line 432 of file TrackMatchingLookup.h.

434  {
435  ATH_MSG_WARNING( "update: Track->Truth disabled" );
436  return StatusCode::SUCCESS;
437  }

◆ update() [3/3]

virtual StatusCode IDTPM::TrackMatchingLookup_truthTrk::update ( const xAOD::TruthParticle t,
const xAOD::TrackParticle r,
float  dist 
)
inlineoverridevirtual

Truth -> Track.

Implements IDTPM::ITrackMatchingLookup.

Definition at line 439 of file TrackMatchingLookup.h.

441  {
442  ATH_CHECK( updateMaps( t, r, dist ) );
443  return StatusCode::SUCCESS;
444  }

◆ updateMaps()

StatusCode IDTPM::TrackMatchingLookupBase< xAOD::TruthParticle , xAOD::TrackParticle >::updateMaps ( const xAOD::TruthParticle t,
const xAOD::TrackParticle r,
float  dist = 0. 
)
inherited

update maps with a new entry

Member Data Documentation

◆ ATLAS_THREAD_SAFE

std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT
mutableprivateinherited

Messaging initialized (initMessaging)

Definition at line 141 of file AthMessaging.h.

◆ m_anaTag

std::string IDTPM::TrackMatchingLookupBase< xAOD::TruthParticle , xAOD::TrackParticle >::m_anaTag
privateinherited

analysis tag

Definition at line 82 of file TrackMatchingLookup.h.

◆ m_chainRoiName

std::string IDTPM::ITrackMatchingLookup::m_chainRoiName
privateinherited

Definition at line 151 of file ITrackMatchingLookup.h.

◆ m_imsg

std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr }
mutableprivateinherited

MessageSvc pointer.

Definition at line 135 of file AthMessaging.h.

◆ m_lvl

std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL }
mutableprivateinherited

Current logging level.

Definition at line 138 of file AthMessaging.h.

◆ m_mapRefToTest

Mapping reference to its (possibly multiple) associated test(s)

Definition at line 88 of file TrackMatchingLookup.h.

◆ m_mapTestToDist

Mapping test to its uniquely associated reference.

Definition at line 91 of file TrackMatchingLookup.h.

◆ m_mapTestToRef

Mapping test to its uniquely associated reference.

Definition at line 85 of file TrackMatchingLookup.h.

◆ m_msg_tls

boost::thread_specific_ptr<MsgStream> AthMessaging::m_msg_tls
mutableprivateinherited

MsgStream instance (a std::cout like with print-out levels)

Definition at line 132 of file AthMessaging.h.

◆ m_nm

std::string AthMessaging::m_nm
privateinherited

Message source name.

Definition at line 129 of file AthMessaging.h.

◆ m_nullTest

null Vectors

Definition at line 94 of file TrackMatchingLookup.h.

◆ m_nullTrackVec

std::vector< const xAOD::TrackParticle* > IDTPM::ITrackMatchingLookup::m_nullTrackVec {}
protectedinherited

null vectors

Definition at line 144 of file ITrackMatchingLookup.h.

◆ m_nullTruthVec

std::vector< const xAOD::TruthParticle* > IDTPM::ITrackMatchingLookup::m_nullTruthVec {}
protectedinherited

Definition at line 145 of file ITrackMatchingLookup.h.


The documentation for this class was generated from the following file:
AthMessaging::m_lvl
std::atomic< MSG::Level > m_lvl
Current logging level.
Definition: AthMessaging.h:138
beamspotman.r
def r
Definition: beamspotman.py:676
IDTPM::TrackMatchingLookupBase< xAOD::TruthParticle, xAOD::TrackParticle >::m_mapTestToRef
mapTtoR_t m_mapTestToRef
Mapping test to its uniquely associated reference.
Definition: TrackMatchingLookup.h:85
IDTPM::TrackMatchingLookupBase< xAOD::TruthParticle, xAOD::TrackParticle >::isRefInMaps
bool isRefInMaps(const xAOD::TrackParticle &r) const
return true if reference is matched
IDTPM::ITrackMatchingLookup::m_nullTrackVec
std::vector< const xAOD::TrackParticle * > m_nullTrackVec
null vectors
Definition: ITrackMatchingLookup.h:144
IDTPM::TrackMatchingLookupBase< xAOD::TruthParticle, xAOD::TrackParticle >::updateMaps
StatusCode updateMaps(const xAOD::TruthParticle &t, const xAOD::TrackParticle &r, float dist=0.)
update maps with a new entry
IDTPM::ITrackMatchingLookup::getMatchedTestTruths
virtual const std::vector< const xAOD::TruthParticle * > & getMatchedTestTruths(const xAOD::TrackParticle &r) const =0
vec Truth <- Track
IDTPM::ITrackMatchingLookup::chainRoiName
const std::string & chainRoiName() const
Definition: ITrackMatchingLookup.h:45
vec
std::vector< size_t > vec
Definition: CombinationsGeneratorTest.cxx:12
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
AthMessaging::m_imsg
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
Definition: AthMessaging.h:135
python.SystemOfUnits.ms
int ms
Definition: SystemOfUnits.py:132
Athena::getMessageSvc
IMessageSvc * getMessageSvc(bool quiet=false)
Definition: getMessageSvc.cxx:20
IDTPM::ITrackMatchingLookup::anaTag
const std::string & anaTag() const
matching properties
Definition: ITrackMatchingLookup.h:41
IDTPM::ITrackMatchingLookup::getMatchedTestTracks
virtual const std::vector< const xAOD::TrackParticle * > & getMatchedTestTracks(const xAOD::TrackParticle &r) const =0
get matched test vector (1 to 1+) vec Track <- Track
IDTPM::ITrackMatchingLookup::m_anaTag
std::string m_anaTag
Lookup table properties.
Definition: ITrackMatchingLookup.h:150
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
IDTPM::TrackMatchingLookupBase< xAOD::TruthParticle, xAOD::TrackParticle >::getMatchedTest
const std::vector< const xAOD::TruthParticle * > & getMatchedTest(const xAOD::TrackParticle &r) const
get matched test vector from map
IDTPM::TrackMatchingLookupBase< xAOD::TruthParticle, xAOD::TrackParticle >::isTestInMaps
bool isTestInMaps(const xAOD::TruthParticle &t) const
return true if test is matched
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
IDTPM::TrackMatchingLookupBase< xAOD::TruthParticle, xAOD::TrackParticle >::getMatchedRef
const xAOD::TrackParticle * getMatchedRef(const xAOD::TruthParticle &t) const
get matched reference from map
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
AthMessaging::msg
MsgStream & msg() const
The standard message stream.
Definition: AthMessaging.h:164
IDTPM::TrackMatchingLookupBase< xAOD::TruthParticle, xAOD::TrackParticle >::printMaps
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
IDTPM::ITrackMatchingLookup::m_chainRoiName
std::string m_chainRoiName
Definition: ITrackMatchingLookup.h:151
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
AthMessaging::m_nm
std::string m_nm
Message source name.
Definition: AthMessaging.h:129
IDTPM::TrackMatchingLookupBase< xAOD::TruthParticle, xAOD::TrackParticle >::clearMaps
void clearMaps()
clear lookup tables
AthMessaging::initMessaging
void initMessaging() const
Initialize our message level and MessageSvc.
Definition: AthMessaging.cxx:39
AthMessaging::m_msg_tls
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
Definition: AthMessaging.h:132
IDTPM::TrackMatchingLookupBase< xAOD::TruthParticle, xAOD::TrackParticle >::getMapsSize
unsigned getMapsSize() const
get the overall number of matches
Definition: TrackMatchingLookup.h:51
IDTPM::TrackMatchingLookupBase< xAOD::TruthParticle, xAOD::TrackParticle >