ATLAS Offline Software
CaloCellLink.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
7 
8 #include <algorithm>
9 
11 { }
12 
15 {
16  this->copyStore(pLink);
17 }
18 
20  : INavigable (rLink),
22 {
23  this->copyStore(&rLink);
24 }
25 
27 {
28  if (this != &rLink) {
29  this->removeAll();
30  this->copyStore(&rLink);
31  }
32  return *this;
33 }
34 
36 = default;
37 
39 {
40  cell_iterator fCell = pLink->begin();
41  cell_iterator lCell = pLink->end();
42  for ( ; fCell != lCell; fCell++ )
43  {
44  this->insertElement(pLink->getContainer(fCell),*fCell,
45  pLink->getParameter(fCell));
46  }
47 }
Navigable< CaloCellContainer, double >::removeAll
bool removeAll()
Definition: Navigable.h:237
Navigable< CaloCellContainer, double >::insertElement
void insertElement(const CaloCellContainer *objectContainer, const constituent_type *constituentObject, const double &objectParameter=double(), size_t sizeHint=0)
Navigable::begin
virtual object_iter begin() const
Navigable::end
virtual object_iter end() const
INavigable
Definition: INavigable.h:18
xAOD::double
double
Definition: CompositeParticle_v1.cxx:159
Navigable::getContainer
const CONT * getContainer(const constituent_type *aConstituent) const
CaloCellContainer
Container class for CaloCell.
Definition: CaloCellContainer.h:55
Navigable
Navigable template generalization to handle navigation.
Definition: Navigable.h:93
Navigable::getParameter
RPAR getParameter(const constituent_type *aConstituent) const