ATLAS Offline Software
|
Interface for extending Particles with calo cells. More...
#include <IParticleCaloCellAssociationTool.h>
Public Types | |
typedef std::unordered_map< size_t, std::unique_ptr< ParticleCellAssociation > > | Cache |
Method to get the ParticleCellAssociation for a given Particle. More... | |
Public Member Functions | |
virtual std::unique_ptr< ParticleCellAssociation > | particleCellAssociation (const xAOD::IParticle &particle, float dr, const CaloCellContainer *container=nullptr, const CaloExtensionCollection *extensionCache=nullptr) const =0 |
Method to get the ParticleCellAssociation for a given Particle. More... | |
virtual ParticleCellAssociation * | particleCellAssociation (const xAOD::IParticle &particle, float dr, Cache &cache, const CaloCellContainer *container=nullptr, const CaloExtensionCollection *extensionCache=nullptr) const =0 |
Static Public Member Functions | |
static const InterfaceID & | interfaceID () |
Interface for extending Particles with calo cells.
Definition at line 24 of file IParticleCaloCellAssociationTool.h.
typedef std::unordered_map<size_t,std::unique_ptr< ParticleCellAssociation > > Rec::IParticleCaloCellAssociationTool::Cache |
Method to get the ParticleCellAssociation for a given Particle.
particle | input particle |
dr | cone size used for the association @ param cache cache for keeping previous results |
container | cell container to be used if provided |
extensionCache | A calo extension cache to be used if provided |
An alg looping over a single collection of IParticles
re-using them multiple times can use a local cache of the form std::unordered_map<size_t,std::unique_ptr<ParticleCellAssociation >>. where the key is the value of IParticle::index()
This method adds the ParticleCellAssociation to the cache look-up table which retains ownership.
Definition at line 56 of file IParticleCaloCellAssociationTool.h.
|
inlinestatic |
Definition at line 65 of file IParticleCaloCellAssociationTool.h.
|
pure virtual |
Implemented in Rec::ParticleCaloCellAssociationTool.
|
pure virtual |
Method to get the ParticleCellAssociation for a given Particle.
particle | input particle |
dr | cone size used for the association |
container | cell container to be used if provided |
extensionCache | A calo extension cache to be used if provided |
Implemented in Rec::ParticleCaloCellAssociationTool.