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 (bool getRefN) 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 (bool getRefN=false) 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::TruthParticlegetMatchedRefTruth (const xAOD::TruthParticle &) const
 Truth -> Truth // to avoid compilation errors. More...
 
const std::vector< const xAOD::TruthParticle * > & getMatchedTestTruths (const xAOD::TruthParticle &) const
 vec Truth <- Truth // to avoid compilation errors More...
 
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...
 
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 355 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 362 of file TrackMatchingLookup.h.

362  :
364  anaTag( anaTag_s );
365  }

◆ ~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 448 of file TrackMatchingLookup.h.

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

◆ 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 81 of file ITrackMatchingLookup.h.

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

◆ getBestMatchedTestTrack() [2/2]

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

best Track <- Truth

Definition at line 89 of file ITrackMatchingLookup.h.

91  {
92  const std::vector< const xAOD::TrackParticle* >& vec =
94  return vec.empty() ? nullptr : vec[0];
95  }

◆ getBestMatchedTestTruth() [1/2]

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

best Truth <- Track

Definition at line 97 of file ITrackMatchingLookup.h.

99  {
100  const std::vector< const xAOD::TruthParticle* >& vec =
102  return vec.empty() ? nullptr : vec[0];
103  }

◆ getBestMatchedTestTruth() [2/2]

const xAOD::TruthParticle* IDTPM::ITrackMatchingLookup::getBestMatchedTestTruth ( const xAOD::TruthParticle ) const
inlineinherited

best Truth <- Truth // to avoid compilation errors

Definition at line 105 of file ITrackMatchingLookup.h.

106  { return nullptr; };

◆ getDist()

get distance parameter for matched test

◆ getMapsSize()

unsigned IDTPM::TrackMatchingLookupBase< xAOD::TruthParticle , xAOD::TrackParticle >::getMapsSize ( bool  getRefN = false) const
inlineinherited

get the overall number of matches

Definition at line 51 of file TrackMatchingLookup.h.

51  {
52  return getRefN ? m_mapRefToTest.size() : 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 374 of file TrackMatchingLookup.h.

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

◆ 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 380 of file TrackMatchingLookup.h.

381  { return getMatchedRef(t); }

◆ getMatchedRefTruth() [1/2]

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

Track -> Truth.

Implements IDTPM::ITrackMatchingLookup.

Definition at line 383 of file TrackMatchingLookup.h.

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

◆ getMatchedRefTruth() [2/2]

const xAOD::TruthParticle* IDTPM::ITrackMatchingLookup::getMatchedRefTruth ( const xAOD::TruthParticle ) const
inlineinherited

Truth -> Truth // to avoid compilation errors.

Definition at line 61 of file ITrackMatchingLookup.h.

62  { return nullptr; };

◆ 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 390 of file TrackMatchingLookup.h.

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

◆ 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 396 of file TrackMatchingLookup.h.

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

◆ getMatchedTestTruths() [1/2]

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 402 of file TrackMatchingLookup.h.

403  { return getMatchedTest(r); }

◆ getMatchedTestTruths() [2/2]

const std::vector< const xAOD::TruthParticle* >& IDTPM::ITrackMatchingLookup::getMatchedTestTruths ( const xAOD::TruthParticle ) const
inlineinherited

vec Truth <- Truth // to avoid compilation errors

Definition at line 75 of file ITrackMatchingLookup.h.

76  { return m_nullTruthVec; }

◆ getNmatches()

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

getNmatches

Implements IDTPM::ITrackMatchingLookup.

Definition at line 371 of file TrackMatchingLookup.h.

371 { return getMapsSize( getRefN ); }

◆ 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 416 of file TrackMatchingLookup.h.

416  {
417  return isRefInMaps(r);
418  }

◆ isRefMatched() [2/2]

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

Implements IDTPM::ITrackMatchingLookup.

Definition at line 420 of file TrackMatchingLookup.h.

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

◆ 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 406 of file TrackMatchingLookup.h.

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

◆ isTestMatched() [2/2]

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

Implements IDTPM::ITrackMatchingLookup.

Definition at line 411 of file TrackMatchingLookup.h.

411  {
412  return isTestInMaps(t);
413  }

◆ 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 455 of file TrackMatchingLookup.h.

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

◆ 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 462 of file TrackMatchingLookup.h.

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

◆ 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 469 of file TrackMatchingLookup.h.

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

◆ 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 426 of file TrackMatchingLookup.h.

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

◆ 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 433 of file TrackMatchingLookup.h.

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

◆ 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 440 of file TrackMatchingLookup.h.

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

◆ 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 83 of file TrackMatchingLookup.h.

◆ m_chainRoiName

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

Definition at line 157 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 89 of file TrackMatchingLookup.h.

◆ m_mapTestToDist

Mapping test to its uniquely associated reference.

Definition at line 92 of file TrackMatchingLookup.h.

◆ m_mapTestToRef

Mapping test to its uniquely associated reference.

Definition at line 86 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 95 of file TrackMatchingLookup.h.

◆ m_nullTrackVec

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

null vectors

Definition at line 150 of file ITrackMatchingLookup.h.

◆ m_nullTruthVec

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

Definition at line 151 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:86
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:150
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:156
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::ITrackMatchingLookup::m_nullTruthVec
std::vector< const xAOD::TruthParticle * > m_nullTruthVec
Definition: ITrackMatchingLookup.h:151
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::TrackMatchingLookupBase< xAOD::TruthParticle, xAOD::TrackParticle >::m_mapRefToTest
mapRtoT_t m_mapRefToTest
Mapping reference to its (possibly multiple) associated test(s)
Definition: TrackMatchingLookup.h:89
IDTPM::ITrackMatchingLookup::m_chainRoiName
std::string m_chainRoiName
Definition: ITrackMatchingLookup.h:157
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 >
IDTPM::TrackMatchingLookupBase< xAOD::TruthParticle, xAOD::TrackParticle >::getMapsSize
unsigned getMapsSize(bool getRefN=false) const
get the overall number of matches
Definition: TrackMatchingLookup.h:51