Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Functions
egAmbLinkHelper Namespace Reference

Functions

template<typename SrcT , typename DestT >
void doAmbiguityLinks (const EventContext &ctx, DataVector< SrcT > *srcContainer, DataVector< DestT > *destContainer)
 

Function Documentation

◆ doAmbiguityLinks()

template<typename SrcT , typename DestT >
void egAmbLinkHelper::doAmbiguityLinks ( const EventContext &  ctx,
DataVector< SrcT > *  srcContainer,
DataVector< DestT > *  destContainer 
)

Needs the same logic as the ambiguity after building the objects (make sure they are all valid)

Definition at line 15 of file egAmbLinkHelper.h.

19  {
22  static const SG::AuxElement::Accessor<
23  std::vector<ElementLink<xAOD::CaloClusterContainer>>>
24  caloClusterLinks("constituentClusterLinks");
25 
27  ELink("ambiguityLink");
28 
30  for (SrcT *src : *srcContainer) {
31  ELink(*src) = dummylink;
33  continue;
34  }
35 
36  for (
37  size_t destIndex = 0;
38  destIndex < destContainer->size();
39  ++destIndex
40  ) {
41  DestT *dest = destContainer->at(destIndex);
43  continue;
44  }
45 
46  if (caloClusterLinks(*(dest->caloCluster())).at(0) ==
47  caloClusterLinks(*(src->caloCluster())).at(0)) {
49  *destContainer, destIndex, ctx);
50  ELink(*src) = link;
51  break;
52  }
53  }
54  }
55  }
SG::Accessor
Helper class to provide type-safe access to aux data.
Definition: Control/AthContainers/AthContainers/Accessor.h:68
WriteCellNoiseToCool.src
src
Definition: WriteCellNoiseToCool.py:513
perfmonmt-printer.dest
dest
Definition: perfmonmt-printer.py:189
xAOD::EgammaParameters::AuthorAmbiguous
const uint16_t AuthorAmbiguous
Object Reconstructed by standard cluster-based algorithm.
Definition: EgammaDefs.h:32
DataVector::at
const T * at(size_type n) const
Access an element, as an rvalue.
DataVector::size
size_type size() const noexcept
Returns the number of elements in the collection.