9#include <pxd/reconstruction/ClusterCandidate.h>
27 if (pcls ==
this)
return this;
31 if (tmp ==
this)
return this;
Class representing a possible cluster during clustering of the PXD It supports merging of different c...
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.
std::vector< Pixel > m_pixels
List of all pixels in the cluster.
ClusterCandidate * merge(ClusterCandidate &cls)
Merge the given cluster with this one.
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.
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.