![]() |
ATLAS Offline Software
|
Helper class for setting links between overlapping objects. More...
#include <OverlapLinkHelper.h>
Public Member Functions | |
OverlapLinkHelper (const std::string &linkLabel) | |
Constructor. More... | |
StatusCode | addObjectLink (const xAOD::IParticle &p1, const xAOD::IParticle &p2) const |
Decorate p1 with an overlap object link to p2. More... | |
const xAOD::IParticle * | getObjectLink (const xAOD::IParticle &p) const |
Retrieve an overlap-linked particle. More... | |
Private Attributes | |
ort::objLinkDecorator_t | m_linkDecorator |
Object link decorator. More... | |
ort::objLinkAccessor_t | m_linkAccessor |
Corresponding object link accessor (for reading only) More... | |
Helper class for setting links between overlapping objects.
This utility class is used by the OverlapTools, though it could probably be used by a user as well. It can do two things at the moment:
For this simple implementation, use a single object link. I might later allow for an array of links to include all possible object overlaps.
Definition at line 34 of file OverlapLinkHelper.h.
ORUtils::OverlapLinkHelper::OverlapLinkHelper | ( | const std::string & | linkLabel | ) |
Constructor.
Definition at line 14 of file OverlapLinkHelper.cxx.
StatusCode ORUtils::OverlapLinkHelper::addObjectLink | ( | const xAOD::IParticle & | p1, |
const xAOD::IParticle & | p2 | ||
) | const |
const xAOD::IParticle * ORUtils::OverlapLinkHelper::getObjectLink | ( | const xAOD::IParticle & | p | ) | const |
Retrieve an overlap-linked particle.
Returns null if no ElementLink decoration exists.
Definition at line 34 of file OverlapLinkHelper.cxx.
|
private |
Corresponding object link accessor (for reading only)
Definition at line 55 of file OverlapLinkHelper.h.
|
private |
Object link decorator.
Definition at line 53 of file OverlapLinkHelper.h.