ATLAS Offline Software
Loading...
Searching...
No Matches
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
22
23
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
37bool 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{
57 m_cellCont.toPersistent();
58}
Container class for CaloCell.
Data object for each calorimeter readout cell.
Definition CaloCell.h:57