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 (bool getRefN) 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 (bool getRefN=false) 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::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::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 229 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 236 of file TrackMatchingLookup.h.

236  :
238  anaTag( anaTag_s );
239  }

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

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

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

getMatchedRefTrack

Implements IDTPM::ITrackMatchingLookup.

Definition at line 248 of file TrackMatchingLookup.h.

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

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

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

◆ getMatchedRefTruth() [1/2]

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

Track -> Truth.

Implements IDTPM::ITrackMatchingLookup.

Definition at line 260 of file TrackMatchingLookup.h.

261  { return getMatchedRef(t); }

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

getMatchedTestTracks

Implements IDTPM::ITrackMatchingLookup.

Definition at line 264 of file TrackMatchingLookup.h.

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

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

271  { return getMatchedTest(r); }

◆ getMatchedTestTruths() [1/2]

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

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

◆ 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_trkTruth::getNmatches ( bool  getRefN) const
inlineoverridevirtual

getNmatches

Implements IDTPM::ITrackMatchingLookup.

Definition at line 245 of file TrackMatchingLookup.h.

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

isRefMatched

Implements IDTPM::ITrackMatchingLookup.

Definition at line 290 of file TrackMatchingLookup.h.

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

◆ isRefMatched() [2/2]

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

Implements IDTPM::ITrackMatchingLookup.

Definition at line 295 of file TrackMatchingLookup.h.

295  {
296  return isRefInMaps(r);
297  }

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

280  {
281  return isTestInMaps(t);
282  }

◆ isTestMatched() [2/2]

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

Implements IDTPM::ITrackMatchingLookup.

Definition at line 284 of file TrackMatchingLookup.h.

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

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

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

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

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

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

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

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

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

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

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

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

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

◆ 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 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::TrackParticle, xAOD::TruthParticle >::m_mapTestToRef
mapTtoR_t m_mapTestToRef
Mapping test to its uniquely associated reference.
Definition: TrackMatchingLookup.h:86
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:150
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:156
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:151
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::TrackMatchingLookupBase< xAOD::TrackParticle, xAOD::TruthParticle >::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::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 >
IDTPM::TrackMatchingLookupBase< xAOD::TrackParticle, xAOD::TruthParticle >::getMapsSize
unsigned getMapsSize(bool getRefN=false) const
get the overall number of matches
Definition: TrackMatchingLookup.h:51