![]() |
ATLAS Offline Software
|
Helper class for setting links between overlapping objects. More...
#include <OverlapLinkHelper.h>
Public Member Functions | |
| OverlapLinkHelper (const std::string &linkLabel) | |
| Constructor. | |
| template<columnar::ContainerIdConcept LT> | |
| StatusCode | addObjectLink (columnar::ObjectId< CI > p1, columnar::ObjectId< LT > p2) const |
| Decorate p1 with an overlap object link to p2. | |
| template<columnar::ContainerIdConcept LT> | |
| columnar::OptObjectId< LT > | getObjectLink (columnar::ObjectId< CI > p, columnar::ObjectRange< LT > container) const |
| Retrieve an overlap-linked particle. | |
Private Types | |
| using | LTDef = columnar::VariantContainerId<columnar::ContainerId::particle1,columnar::ContainerId::particle1,columnar::ContainerId::particle2> |
Private Attributes | |
| columnar::ColumnDecorator< CI, columnar::ObjectLink< LTDef > > | m_linkDecorator |
| Object link decorator. | |
| columnar::ColumnAccessor< CI, columnar::ObjectLink< LTDef > > | m_linkAccessor |
| Corresponding object link accessor (for reading only) | |
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 41 of file OverlapLinkHelper.h.
|
private |
Definition at line 66 of file OverlapLinkHelper.h.
| ORUtils::OverlapLinkHelper< CI >::OverlapLinkHelper | ( | const std::string & | linkLabel | ) |
Constructor.
Definition at line 79 of file OverlapLinkHelper.h.
| StatusCode ORUtils::OverlapLinkHelper< CI >::addObjectLink | ( | columnar::ObjectId< CI > | p1, |
| columnar::ObjectId< LT > | p2 ) const |
Decorate p1 with an overlap object link to p2.
Definition at line 88 of file OverlapLinkHelper.h.
| columnar::OptObjectId< LT > ORUtils::OverlapLinkHelper< CI >::getObjectLink | ( | columnar::ObjectId< CI > | p, |
| columnar::ObjectRange< LT > | container ) const |
Retrieve an overlap-linked particle.
Returns null if no ElementLink decoration exists.
Definition at line 99 of file OverlapLinkHelper.h.
|
private |
Corresponding object link accessor (for reading only)
Definition at line 71 of file OverlapLinkHelper.h.
|
private |
Object link decorator.
Definition at line 69 of file OverlapLinkHelper.h.