![]() |
ATLAS Offline Software
|
#include <CachedGetAssocTruth.h>
Public Member Functions | |
| CachedGetAssocTruth ()=default | |
| CachedGetAssocTruth & | operator= (CachedGetAssocTruth &&)=default |
| CachedGetAssocTruth (CachedGetAssocTruth &&)=default | |
| ~CachedGetAssocTruth ()=default | |
| CachedGetAssocTruth & | operator= (const CachedGetAssocTruth &)=delete |
| copy and assignment are not possible | |
| CachedGetAssocTruth (const CachedGetAssocTruth &)=delete | |
| void | clear () |
| clear the cache | |
| const xAOD::TruthParticle * | operator() (const xAOD::TrackParticle *trackParticle) |
| Get the associated truth particle, given a track particle. | |
| const xAOD::TruthParticle * | getTruth (const xAOD::TrackParticle *const trackParticle) |
Static Public Member Functions | |
| static void | neededTrackParticleDecorations (std::vector< std::string > &decorations) |
Private Attributes | |
| std::unordered_map< const xAOD::TrackParticle *, const xAOD::TruthParticle * > | m_cache |
| private cache container; map or unordered_map could be used | |
Static Private Attributes | |
| static const std::string | s_trackParticleLinkDecorationName |
Definition at line 21 of file CachedGetAssocTruth.h.
|
default |
|
default |
|
default |
|
delete |
| void IDPVM::CachedGetAssocTruth::clear | ( | ) |
clear the cache
Definition at line 17 of file CachedGetAssocTruth.cxx.
| const xAOD::TruthParticle * IDPVM::CachedGetAssocTruth::getTruth | ( | const xAOD::TrackParticle *const | trackParticle | ) |
Definition at line 29 of file CachedGetAssocTruth.cxx.
|
static |
Definition at line 23 of file CachedGetAssocTruth.cxx.
| const xAOD::TruthParticle * IDPVM::CachedGetAssocTruth::operator() | ( | const xAOD::TrackParticle * | trackParticle | ) |
Get the associated truth particle, given a track particle.
Definition at line 53 of file CachedGetAssocTruth.cxx.
|
default |
|
delete |
copy and assignment are not possible
|
private |
private cache container; map or unordered_map could be used
Definition at line 39 of file CachedGetAssocTruth.h.
|
staticprivate |
Definition at line 40 of file CachedGetAssocTruth.h.