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

#include <TrackMatchingLookup.h>

Inheritance diagram for IDTPM::TrackMatchingLookup_trkTruth:
Collaboration diagram for IDTPM::TrackMatchingLookup_trkTruth:

Public Types

typedef std::unordered_map< const xAOD::TrackParticle *, const xAOD::TruthParticle * > mapTtoR_t
 useful typedefs More...
 
typedef std::unordered_map< const xAOD::TruthParticle *, std::vector< const xAOD::TrackParticle * > > mapRtoT_t
 
typedef std::unordered_map< const xAOD::TrackParticle *, float > mapTtoDist_t
 

Public Member Functions

 TrackMatchingLookup_trkTruth (const std::string &anaTag_s)
 Constructor. More...
 
 ~TrackMatchingLookup_trkTruth ()=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 &) const override
 Truth -> Track. More...
 
virtual const xAOD::TruthParticlegetMatchedRefTruth (const xAOD::TrackParticle &t) 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 &r) const override
 vec Track <- Truth More...
 
virtual const std::vector< const xAOD::TruthParticle * > & getMatchedTestTruths (const xAOD::TrackParticle &) const override
 vec Truth <- Track More...
 
virtual bool isTestMatched (const xAOD::TrackParticle &t) const override
 isTestMatched More...
 
virtual bool isTestMatched (const xAOD::TruthParticle &) const override
 
virtual bool isRefMatched (const xAOD::TrackParticle &) const override
 isRefMatched More...
 
virtual bool isRefMatched (const xAOD::TruthParticle &r) const override
 
virtual StatusCode update (const xAOD::TrackParticle &, const xAOD::TrackParticle &, float) override
 update More...
 
virtual StatusCode update (const xAOD::TrackParticle &t, const xAOD::TruthParticle &r, float dist) override
 Track -> Truth. More...
 
virtual StatusCode update (const xAOD::TruthParticle &, const xAOD::TrackParticle &, float) 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 * > &testVec, const std::vector< const xAOD::TruthParticle * > &refVec) const override
 Track -> Truth. More...
 
virtual std::string printInfo (const std::vector< const xAOD::TruthParticle * > &, const std::vector< const xAOD::TrackParticle * > &) const override
 Truth -> Track. More...
 
unsigned getMapsSize () const
 get the overall number of matches More...
 
const xAOD::TruthParticlegetMatchedRef (const xAOD::TrackParticle &t) const
 get matched reference from map More...
 
const std::vector< const xAOD::TrackParticle * > & getMatchedTest (const xAOD::TruthParticle &r) const
 get matched test vector from map More...
 
float getDist (const xAOD::TrackParticle &t) const
 get distance parameter for matched test More...
 
bool isTestInMaps (const xAOD::TrackParticle &t) const
 return true if test is matched More...
 
bool isRefInMaps (const xAOD::TruthParticle &r) const
 return true if reference is matched More...
 
StatusCode updateMaps (const xAOD::TrackParticle &t, const xAOD::TruthParticle &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::TrackParticle * > &testVec, const std::vector< const xAOD::TruthParticle * > &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::TrackParticle * > 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


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

Definition at line 228 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_trkTruth()

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

Constructor.

Definition at line 235 of file TrackMatchingLookup.h.

235  :
237  anaTag( anaTag_s );
238  }

◆ ~TrackMatchingLookup_trkTruth()

IDTPM::TrackMatchingLookup_trkTruth::~TrackMatchingLookup_trkTruth ( )
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_trkTruth::clear ( )
inlineoverridevirtual

clear

Implements IDTPM::ITrackMatchingLookup.

Definition at line 321 of file TrackMatchingLookup.h.

321  {
322  ATH_MSG_DEBUG( "Deleting whole cache..." );
323  chainRoiName("");
324  clearMaps();
325  }

◆ 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::TrackParticle , xAOD::TruthParticle >::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_trkTruth::getMatchedRefTrack ( const xAOD::TrackParticle ) const
inlineoverridevirtual

getMatchedRefTrack

Implements IDTPM::ITrackMatchingLookup.

Definition at line 247 of file TrackMatchingLookup.h.

248  {
249  ATH_MSG_WARNING( "getMatchedRefTrack: Track->Track disabled" );
250  return nullptr;
251  }

◆ getMatchedRefTrack() [2/2]

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

Truth -> Track.

Implements IDTPM::ITrackMatchingLookup.

Definition at line 253 of file TrackMatchingLookup.h.

254  {
255  ATH_MSG_WARNING( "getMatchedRefTrack: Truth->Track disabled" );
256  return nullptr;
257  }

◆ getMatchedRefTruth()

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

Track -> Truth.

Implements IDTPM::ITrackMatchingLookup.

Definition at line 259 of file TrackMatchingLookup.h.

260  { return getMatchedRef(t); }

◆ getMatchedTest()

get matched test vector from map

◆ getMatchedTestTracks() [1/2]

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

getMatchedTestTracks

Implements IDTPM::ITrackMatchingLookup.

Definition at line 263 of file TrackMatchingLookup.h.

264  {
265  ATH_MSG_WARNING( "getMatchedTestTracks: Track<-Track disabled" );
266  return m_nullTrackVec;
267  }

◆ getMatchedTestTracks() [2/2]

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

vec Track <- Truth

Implements IDTPM::ITrackMatchingLookup.

Definition at line 269 of file TrackMatchingLookup.h.

270  { return getMatchedTest(r); }

◆ getMatchedTestTruths()

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

vec Truth <- Track

Implements IDTPM::ITrackMatchingLookup.

Definition at line 272 of file TrackMatchingLookup.h.

273  {
274  ATH_MSG_WARNING( "getMatchedTestTruths: Truths<-Track disabled" );
275  return m_nullTruthVec;
276  }

◆ getNmatches()

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

getNmatches

Implements IDTPM::ITrackMatchingLookup.

Definition at line 244 of file TrackMatchingLookup.h.

244 { 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_trkTruth::isRefMatched ( const xAOD::TrackParticle ) const
inlineoverridevirtual

isRefMatched

Implements IDTPM::ITrackMatchingLookup.

Definition at line 289 of file TrackMatchingLookup.h.

289  {
290  ATH_MSG_WARNING( "isRefMatched: X<-Track disabled" );
291  return false;
292  }

◆ isRefMatched() [2/2]

virtual bool IDTPM::TrackMatchingLookup_trkTruth::isRefMatched ( const xAOD::TruthParticle r) const
inlineoverridevirtual

Implements IDTPM::ITrackMatchingLookup.

Definition at line 294 of file TrackMatchingLookup.h.

294  {
295  return isRefInMaps(r);
296  }

◆ isTestInMaps()

return true if test is matched

◆ isTestMatched() [1/2]

virtual bool IDTPM::TrackMatchingLookup_trkTruth::isTestMatched ( const xAOD::TrackParticle t) const
inlineoverridevirtual

isTestMatched

Implements IDTPM::ITrackMatchingLookup.

Definition at line 279 of file TrackMatchingLookup.h.

279  {
280  return isTestInMaps(t);
281  }

◆ isTestMatched() [2/2]

virtual bool IDTPM::TrackMatchingLookup_trkTruth::isTestMatched ( const xAOD::TruthParticle ) const
inlineoverridevirtual

Implements IDTPM::ITrackMatchingLookup.

Definition at line 283 of file TrackMatchingLookup.h.

283  {
284  ATH_MSG_WARNING( "isTestMatched: Truth->X disabled" );
285  return false;
286  }

◆ 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_trkTruth::printInfo ( const std::vector< const xAOD::TrackParticle * > &  ,
const std::vector< const xAOD::TrackParticle * > &   
) const
inlineoverridevirtual

printInfo

Implements IDTPM::ITrackMatchingLookup.

Definition at line 328 of file TrackMatchingLookup.h.

330  {
331  ATH_MSG_WARNING( "printInfo: Track->Track matches disabled" );
332  return std::string("--> No matches found");
333  }

◆ printInfo() [2/3]

virtual std::string IDTPM::TrackMatchingLookup_trkTruth::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 335 of file TrackMatchingLookup.h.

337  {
338  return printMaps( testVec, refVec, chainRoiName() );
339  }

◆ printInfo() [3/3]

virtual std::string IDTPM::TrackMatchingLookup_trkTruth::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 341 of file TrackMatchingLookup.h.

343  {
344  ATH_MSG_WARNING( "printInfo: Truth->Track matches disabled" );
345  return std::string("--> No matches found");
346  }

◆ printMaps()

std::string IDTPM::TrackMatchingLookupBase< xAOD::TrackParticle , xAOD::TruthParticle >::printMaps ( const std::vector< const xAOD::TrackParticle * > &  testVec,
const std::vector< const xAOD::TruthParticle * > &  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_trkTruth::update ( const xAOD::TrackParticle ,
const xAOD::TrackParticle ,
float   
)
inlineoverridevirtual

update

Implements IDTPM::ITrackMatchingLookup.

Definition at line 299 of file TrackMatchingLookup.h.

301  {
302  ATH_MSG_WARNING( "update: Track->Track disabled" );
303  return StatusCode::SUCCESS;
304  }

◆ update() [2/3]

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

Track -> Truth.

Implements IDTPM::ITrackMatchingLookup.

Definition at line 306 of file TrackMatchingLookup.h.

308  {
309  ATH_CHECK( updateMaps( t, r, dist ) );
310  return StatusCode::SUCCESS;
311  }

◆ update() [3/3]

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

Truth -> Track.

Implements IDTPM::ITrackMatchingLookup.

Definition at line 313 of file TrackMatchingLookup.h.

315  {
316  return StatusCode::SUCCESS;
317  ATH_MSG_WARNING( "update: Truth->Track disabled" );
318  }

◆ updateMaps()

StatusCode IDTPM::TrackMatchingLookupBase< xAOD::TrackParticle , xAOD::TruthParticle >::updateMaps ( const xAOD::TrackParticle t,
const xAOD::TruthParticle 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::TrackParticle , xAOD::TruthParticle >::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::TrackParticle, xAOD::TruthParticle >::m_mapTestToRef
mapTtoR_t m_mapTestToRef
Mapping test to its uniquely associated reference.
Definition: TrackMatchingLookup.h:85
IDTPM::TrackMatchingLookupBase< xAOD::TrackParticle, xAOD::TruthParticle >::isRefInMaps
bool isRefInMaps(const xAOD::TruthParticle &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::TrackParticle, xAOD::TruthParticle >::updateMaps
StatusCode updateMaps(const xAOD::TrackParticle &t, const xAOD::TruthParticle &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::TrackParticle, xAOD::TruthParticle >::getMatchedTest
const std::vector< const xAOD::TrackParticle * > & getMatchedTest(const xAOD::TruthParticle &r) const
get matched test vector from map
IDTPM::ITrackMatchingLookup::m_nullTruthVec
std::vector< const xAOD::TruthParticle * > m_nullTruthVec
Definition: ITrackMatchingLookup.h:145
IDTPM::TrackMatchingLookupBase< xAOD::TrackParticle, xAOD::TruthParticle >::isTestInMaps
bool isTestInMaps(const xAOD::TrackParticle &t) const
return true if test is matched
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
IDTPM::TrackMatchingLookupBase< xAOD::TrackParticle, xAOD::TruthParticle >::getMatchedRef
const xAOD::TruthParticle * getMatchedRef(const xAOD::TrackParticle &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::TrackParticle, xAOD::TruthParticle >::printMaps
std::string printMaps(const std::vector< const xAOD::TrackParticle * > &testVec, const std::vector< const xAOD::TruthParticle * > &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::TrackParticle, xAOD::TruthParticle >::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::TrackParticle, xAOD::TruthParticle >::getMapsSize
unsigned getMapsSize() const
get the overall number of matches
Definition: TrackMatchingLookup.h:51
IDTPM::TrackMatchingLookupBase< xAOD::TrackParticle, xAOD::TruthParticle >