Bookkeeping of cells that make up a cluster Simplified replacement for CaloCellLink, CaloClusterNavigable and Navigable classes used during run 1.
More...
#include <CaloClusterCellLink.h>
Bookkeeping of cells that make up a cluster Simplified replacement for CaloCellLink, CaloClusterNavigable and Navigable classes used during run 1.
- Author
- Walter Lampl
Definition at line 24 of file CaloClusterCellLink.h.
◆ linkAndWeightCollType
◆ weight_t
◆ CaloClusterCellLink() [1/3]
| CaloClusterCellLink::CaloClusterCellLink |
( |
| ) |
|
|
default |
default constructor (for persistency only)
◆ CaloClusterCellLink() [2/3]
useful constructor
- Parameters
-
Definition at line 19 of file CaloClusterCellLink.cxx.
19 :
21{}
DataLink< CaloCellContainer > m_cellCont
◆ CaloClusterCellLink() [3/3]
◆ ~CaloClusterCellLink()
| CaloClusterCellLink::~CaloClusterCellLink |
( |
| ) |
|
|
default |
◆ addCell()
| bool CaloClusterCellLink::addCell |
( |
const unsigned | cellIdx, |
|
|
const weight_t | weight = 1.0 ) |
|
inline |
Method to add a cell to the cluster.
- Parameters
-
- Returns
- true if this cell was added (always in this implementation)
Definition at line 234 of file CaloClusterCellLink.h.
234 {
235
236
237
238
239
240
241
242
243
244
246 return true;
247
248}
linkAndWeightCollType m_indicesAndWeights
◆ begin() [1/2]
◆ begin() [2/2]
const begin method
- Returns
- const_iterator to the first cell belonging to this cluster
Definition at line 107 of file CaloClusterCellLink.h.
const_iterator to loop over cells belonging to a cluster
◆ clear()
| void CaloClusterCellLink::clear |
( |
| ) |
|
|
inline |
◆ end() [1/2]
◆ end() [2/2]
◆ getCellContainer()
◆ getCellContainerLink()
◆ removeCell() [1/2]
| bool CaloClusterCellLink::removeCell |
( |
const CaloCell * | ptr | ) |
|
Method to remove a cell by pointer (slow!)
- Parameters
-
| pointer | to the cell in teh cell container |
- Returns
- True if the cell was removed, False if it was not found.
Definition at line 37 of file CaloClusterCellLink.cxx.
37 {
38 bool success=false;
39 CaloClusterCellLink::iterator
it=this->
begin();
40 CaloClusterCellLink::iterator it_e=this->
end();
42 const CaloCell* pCell=(*it);
43 if (pCell==ptrToDelete) {
45 success=true;
46 break;
47 }
48 }
49 return success;
50}
const_iterator end() const
const end method
CaloClusterCellLink::iterator removeCell(iterator cellItr)
Method to remove a cell.
const_iterator begin() const
const begin method
◆ removeCell() [2/2]
Method to remove a cell.
- Parameters
-
| cellItr | Iterator pointing to the cell to be removed |
- Returns
- iterator to the cell following the removed one
Definition at line 29 of file CaloClusterCellLink.cxx.
29 {
30 linkAndWeightCollType::iterator toDelete=cellItr.
m_it;
32 return {cellItr.
m_ccc,newVecIt};
33
34}
const CaloCellContainer * m_ccc
linkAndWeightCollType::iterator m_it
◆ reserve()
| void CaloClusterCellLink::reserve |
( |
const size_t | s | ) |
|
|
inline |
◆ size()
| size_t CaloClusterCellLink::size |
( |
| ) |
const |
|
inline |
◆ toPersistent()
| void CaloClusterCellLink::toPersistent |
( |
| ) |
|
◆ dummyIt
Dummy iterator to be used as begin/end if no cell-links are present.
Definition at line 102 of file CaloClusterCellLink.h.
◆ m_cellCont
◆ m_dummyIndicesAndWeights
◆ m_indicesAndWeights
The documentation for this class was generated from the following files: