5#include "GaudiKernel/EventContext.h"
10#include "AthLinks/ElementLink.h"
14 template <
typename SrcT,
typename DestT>
16 const EventContext& ctx,
23 std::vector<ElementLink<xAOD::CaloClusterContainer>>>
24 caloClusterLinks(
"constituentClusterLinks");
27 ELink(
"ambiguityLink");
30 for (SrcT *src : *srcContainer) {
31 ELink(*src) = dummylink;
38 destIndex < destContainer->
size();
41 DestT *dest = destContainer->
at(destIndex);
46 if (caloClusterLinks(*(dest->caloCluster())).at(0) ==
47 caloClusterLinks(*(src->caloCluster())).at(0)) {
49 *destContainer, destIndex, ctx);
Helper class to provide type-safe access to aux data.
const T * at(size_type n) const
Access an element, as an rvalue.
size_type size() const noexcept
Returns the number of elements in the collection.
ElementLink implementation for ROOT usage.
SG::Accessor< T, ALLOC > Accessor
void doAmbiguityLinks(const EventContext &ctx, DataVector< SrcT > *srcContainer, DataVector< DestT > *destContainer)
const uint16_t AuthorAmbiguous
Object Reconstructed by standard cluster-based algorithm.