9#include <pxd/reconstruction/ClusterCandidate.h>
27 if (pcls ==
this)
return this;
31 if (tmp ==
this)
return this;
67 if (
m_seed.getCharge() < charge) {
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.
@ 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.
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.
Class to represent one pixel, used in clustering for fast access.
float getCharge() const
Return the Charge of the Pixel.
Namespace to encapsulate code needed for simulation and reconstrucion of the PXD.
Abstract base class for different kinds of events.