ATLAS Offline Software
CaloClusterCellLink.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
8 
10 
11 //0-size vector for dummy iterator
13 
14 // Dummy iterator to be returned by begin/end if no cell-links are present
16 
17 
18 
20  m_cellCont(cellCont)
21 {}
22 
23 
25  m_cellCont(cellCont)
26 {}
27 
28 
30  linkAndWeightCollType::iterator toDelete=cellItr.m_it;
31  auto newVecIt=m_indicesAndWeights.erase(toDelete);
32  return {cellItr.m_ccc,newVecIt};
33 
34 }
35 
36 
37 bool CaloClusterCellLink::removeCell(const CaloCell* ptrToDelete) {
38  bool success=false;
41  for(;it!=it_e;++it) {
42  const CaloCell* pCell=(*it);
43  if (pCell==ptrToDelete) { //Pointer comparison!
44  this->removeCell(it);
45  success=true;
46  break;
47  }//end cell found
48  }//end for loop
49  return success;
50 }
51 
52 
56 {
58 }
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
skel.it
it
Definition: skel.GENtoEVGEN.py:423
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
CaloCellContainer
Container class for CaloCell.
Definition: CaloCellContainer.h:55
CaloCell
Data object for each calorimeter readout cell.
Definition: CaloCell.h:57