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