ATLAS Offline Software
|
Bookkeeping of cells that make up a cluster Simplified replacement for CaloCellLink, CaloClusterNavigable and Navigable classes used during run 1. More...
#include <CaloClusterCellLink.h>
Classes | |
class | const_iterator |
const_iterator to loop over cells belonging to a cluster More... | |
class | iterator |
Public Types | |
typedef double | weight_t |
Public Member Functions | |
CaloClusterCellLink () | |
default constructor (for persistency only) More... | |
CaloClusterCellLink (const CaloCellContainer *cellCont) | |
useful constructor More... | |
CaloClusterCellLink (const DataLink< CaloCellContainer > &cellCont) | |
Constructor from DataLink . More... | |
~CaloClusterCellLink () | |
standard destructor More... | |
const_iterator | begin () const |
const begin method More... | |
const_iterator | end () const |
const end method More... | |
size_t | size () const |
size method More... | |
iterator | begin () |
non-const begin method More... | |
iterator | end () |
const end method More... | |
bool | addCell (const unsigned cellIdx, const weight_t weight=1.0) |
Method to add a cell to the cluster. More... | |
CaloClusterCellLink::iterator | removeCell (iterator cellItr) |
Method to remove a cell. More... | |
bool | removeCell (const CaloCell *ptr) |
Method to remove a cell by pointer (slow!) More... | |
const CaloCellContainer * | getCellContainer () const |
Method to access underlying cell container. More... | |
const DataLink< CaloCellContainer > & | getCellContainerLink () const |
void | reserve (const size_t s) |
Method to reserve space the underlying vector<pair> More... | |
void | clear () |
Method to remove all cells;. More... | |
void | toPersistent () |
Prepare for writing. More... | |
Static Public Attributes | |
static const CaloClusterCellLink::const_iterator | dummyIt |
Dummy iterator to be used as begin/end if no cell-links are present. More... | |
Private Types | |
typedef std::vector< std::pair< unsigned, weight_t > > | linkAndWeightCollType |
Private Attributes | |
DataLink< CaloCellContainer > | m_cellCont |
linkAndWeightCollType | m_indicesAndWeights |
Static Private Attributes | |
static const linkAndWeightCollType | m_dummyIndicesAndWeights |
Bookkeeping of cells that make up a cluster Simplified replacement for CaloCellLink, CaloClusterNavigable and Navigable classes used during run 1.
Definition at line 24 of file CaloClusterCellLink.h.
|
private |
Definition at line 31 of file CaloClusterCellLink.h.
typedef double CaloClusterCellLink::weight_t |
Definition at line 27 of file CaloClusterCellLink.h.
|
default |
default constructor (for persistency only)
CaloClusterCellLink::CaloClusterCellLink | ( | const CaloCellContainer * | cellCont | ) |
useful constructor
[in] | cellCont | Pointer to the CaloCellContainer from which this cluster is built |
Definition at line 19 of file CaloClusterCellLink.cxx.
CaloClusterCellLink::CaloClusterCellLink | ( | const DataLink< CaloCellContainer > & | cellCont | ) |
Constructor from DataLink
.
[in] | cellCont | Link to the CaloCellContainer from which this cluster is built |
Definition at line 24 of file CaloClusterCellLink.cxx.
|
default |
standard destructor
Method to add a cell to the cluster.
cellIdx | Index of the cell in the CaloCellContainer |
weight | cell weight |
Definition at line 234 of file CaloClusterCellLink.h.
|
inline |
|
inline |
const begin method
Definition at line 107 of file CaloClusterCellLink.h.
|
inline |
|
inline |
|
inline |
const end method
Definition at line 112 of file CaloClusterCellLink.h.
|
inline |
Method to access underlying cell container.
Definition at line 212 of file CaloClusterCellLink.h.
|
inline |
Definition at line 213 of file CaloClusterCellLink.h.
Method to remove a cell by pointer (slow!)
pointer | to the cell in teh cell container |
Definition at line 37 of file CaloClusterCellLink.cxx.
CaloClusterCellLink::iterator CaloClusterCellLink::removeCell | ( | CaloClusterCellLink::iterator | cellItr | ) |
Method to remove a cell.
cellItr | Iterator pointing to the cell to be removed |
Definition at line 29 of file CaloClusterCellLink.cxx.
|
inline |
Method to reserve space the underlying vector<pair>
Definition at line 216 of file CaloClusterCellLink.h.
|
inline |
void CaloClusterCellLink::toPersistent | ( | ) |
Prepare for writing.
Definition at line 55 of file CaloClusterCellLink.cxx.
|
static |
Dummy iterator to be used as begin/end if no cell-links are present.
Definition at line 102 of file CaloClusterCellLink.h.
|
private |
Definition at line 227 of file CaloClusterCellLink.h.
|
staticprivate |
Definition at line 230 of file CaloClusterCellLink.h.
|
private |
Definition at line 228 of file CaloClusterCellLink.h.