12#include <pxd/reconstruction/ClusterCandidate.h>
80 typedef std::deque<ClusterCandidate>::iterator
iterator;
Class to remember recently assigned clusters This class will remember the current and the last pixel ...
ClusterCache & operator=(const ClusterCache &)=delete
No operator=.
ClusterCandidate & findCluster(unsigned int u, unsigned int v)
Find a cluster adjacent to the given coordinates.
~ClusterCache()
Delete the cache and free the memory.
@ c_defaultNumberColumns
Default maximum number of PIXEL columns the cache can handle.
std::deque< ClusterCandidate >::iterator end()
Return iterator to the end of created clusters.
const unsigned int m_maxU
number of columns of the cache.
std::deque< ClusterCandidate > m_clusters
list of all the clusters created so far
ClusterCandidate * mergeCluster(ClusterCandidate *cls1, ClusterCandidate *cls2)
Merge two cluster and update the list of cached clusters.
bool empty() const
Check if there are any clusters.
ClusterCandidate ** m_clsCur
cache of the current row
ClusterCandidate ** m_clsTop
cache of the top row
ClusterCache(const ClusterCache &)=delete
No copy construction.
std::deque< ClusterCandidate >::iterator m_currCluster
iterator to the next free cluster to be used if a new cluster is needed.
std::deque< ClusterCandidate >::const_iterator const_iterator
Define const iterator type.
std::deque< ClusterCandidate >::iterator iterator
Define iterator type.
void switchRow(unsigned int v)
Switch the internal rows.
void clear()
Clear the cache structure.
unsigned int m_curV
current v coordinate, needed to switch top row
std::deque< ClusterCandidate >::iterator begin()
Return iterator to the begin of of created clusters.
Class representing a possible cluster during clustering of the PXD It supports merging of different c...
Abstract base class for different kinds of events.