|
ATLAS Offline Software
|
Go to the documentation of this file.
6 #ifndef CALOEVENT_CALOCLUSTERCELLLINK_H
7 #define CALOEVENT_CALOCLUSTERCELLLINK_H
9 #include "AthLinks/DataLink.h"
97 linkAndWeightCollType::const_iterator
m_it;
JetConstituentVector::iterator iterator
static const linkAndWeightCollType m_dummyIndicesAndWeights
linkAndWeightCollType::iterator m_it
linkAndWeightCollType m_indicesAndWeights
iterator end()
const end method
std::bidirectional_iterator_tag iterator_category
~CaloClusterCellLink()
standard destructor
weight_t weight() const
Accessor for weight associated to this cell.
const_iterator operator--()
const_iterator begin() const
const begin method
const_iterator operator++()
unsigned index() const
Accessor for the index of the cell in the CaloCellContainer.
iterator begin()
non-const begin method
bool operator==(const iterator &b) const
const_iterator(const CaloCellContainer *cellCont, linkAndWeightCollType::const_iterator it)
constructor *
unsigned index() const
Accessor for the index of the cell in the CaloCellContainer.
linkAndWeightCollType::const_iterator m_it
const_iterator operator++(int)
std::ptrdiff_t difference_type
weight_t weight() const
Accessor for weight associated to this cell.
const DataLink< CaloCellContainer > & getCellContainerLink() const
const CaloCell * operator->() const
Bookkeeping of cells that make up a cluster Simplified replacement for CaloCellLink,...
const CaloCell * operator*() const
static const CaloClusterCellLink::const_iterator dummyIt
Dummy iterator to be used as begin/end if no cell-links are present.
const CaloCellContainer * getCellContainer() const
Method to access underlying cell container.
void reserve(const size_t s)
Method to reserve space the underlying vector<pair>
iterator(const CaloCellContainer *ccc, linkAndWeightCollType::iterator it)
constructor *
const_iterator operator--(int)
bool addCell(const unsigned cellIdx, const weight_t weight=1.0)
Method to add a cell to the cluster.
CaloClusterCellLink::iterator removeCell(iterator cellItr)
Method to remove a cell.
const CaloCell * operator->() const
void toPersistent()
Prepare for writing.
void clear()
Method to remove all cells;.
std::ptrdiff_t difference_type
std::vector< std::pair< unsigned, weight_t > > linkAndWeightCollType
DataLink< CaloCellContainer > m_cellCont
void reindex(const unsigned newIndex)
Update the index.
size_t size() const
size method
const_pointer cptr() const
Dereference the link.
Container class for CaloCell.
const_iterator end() const
const end method
Data object for each calorimeter readout cell.
std::bidirectional_iterator_tag iterator_category
const CaloCellContainer * m_ccc
CaloClusterCellLink()
default constructor (for persistency only)
bool operator!=(const iterator &b) const
bool operator!=(const const_iterator &b) const
const CaloCell * operator*() const
dereferencing operator
bool operator==(const const_iterator &b) const
void reweight(const weight_t newWeight)
Update the weight.
const_iterator to loop over cells belonging to a cluster
const CaloCellContainer * m_ccc