11#include <pxd/reconstruction/Pixel.h>
Class representing a possible cluster during clustering of the PXD It supports merging of different c...
size_t size() const
get the cluster size
const Pixel & getSeed() const
get the seed pixel of the cluster, i.e.
ClusterCandidate()
Constructor to create an empty Cluster.
Pixel m_seed
Seed pixel of the cluster, i.e.
ClusterCandidate * m_merged
Pointer to the cluster this cluster was merged into.
float m_charge
Charge of the cluster.
float getCharge() const
get the charge of the cluster
std::vector< Pixel > m_pixels
List of all pixels in the cluster.
ClusterCandidate * merge(ClusterCandidate &cls)
Merge the given cluster with this one.
float getSeedCharge() const
get the seed charge of the cluster
void clear()
Clear the Cluster information (to reuse the same cluster instance)
void add(const Pixel &pixel)
Add a Pixel to the current cluster.
@ c_defaultCapacity
Reserve space for this number of pixels on construction.
@ c_maxCapacity
If the capacity exceeds this value, shrink the vector back to c_defaultCapacity after clearing.
const std::vector< Pixel > & pixels() const
get a reference to all pixels in the cluster
Class to represent one pixel, used in clustering for fast access.
float getCharge() const
Return the Charge of the Pixel.
Abstract base class for different kinds of events.