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