![]() |
ATLAS Offline Software
|
Interface for extending Particles with calo cells. More...
#include <IParticleCaloClusterAssociationTool.h>
Public Member Functions | |
| virtual bool | particleClusterAssociation (const xAOD::IParticle &particle, const ParticleClusterAssociation *&association, float dr, const xAOD::CaloClusterContainer *container, bool useCaching=true) const =0 |
| Method to get the ParticleClusterAssociation of a given TrackParticle. | |
Static Public Member Functions | |
| static const InterfaceID & | interfaceID () |
Interface for extending Particles with calo cells.
Definition at line 24 of file IParticleCaloClusterAssociationTool.h.
|
inlinestatic |
Definition at line 48 of file IParticleCaloClusterAssociationTool.h.
|
pure virtual |
Method to get the ParticleClusterAssociation of a given TrackParticle.
| particle | input particle |
| extension | reference to a pointer to a ParticleClusterAssociation, will be updated if call is successfull NEVER delete the pointer, you will cause a crash! |
| dr | cone size used for the association If caching is enabled, the cells associated to the association contain at least all cells in dr but could contain more. Users ALWAYS have to recalculate the associated cells in their cone. |
| container | cluster container to be used if provided |
| useCaching | configure whether the tool caches the result on the track particle The default behavior is 'true' to ensure optimal performance If caching is enabled, the code will perform a consistency check on the container pointer If the function is called twice on the same particle with different containers, the call will fail. The same is true if the function is called once without container and once with on the same particle. |