 |
Belle II Software
release-05-01-25
|
11 #include <pxd/reconstruction/ClusterCandidate.h>
26 if (m_merged)
return m_merged->merge(cls);
29 if (pcls ==
this)
return this;
33 if (tmp ==
this)
return this;
44 if (pcls->
m_pixels.size() > m_pixels.size()) std::swap(m_pixels, pcls->
m_pixels);
45 m_pixels.insert(m_pixels.end(), pcls->
m_pixels.begin(), pcls->
m_pixels.end());
47 if (pcls->
m_pixels.capacity() > c_maxCapacity) {
48 pcls->
m_pixels.resize(c_defaultCapacity);
59 void ClusterCandidate::add(
const Pixel& pixel)
69 if (m_seed.getCharge() < charge) {
73 m_pixels.push_back(pixel);
ClusterCandidate * m_merged
Pointer to the cluster this cluster was merged into.
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...
Class to represent one pixel, used in clustering for fast access.
std::vector< std::vector< double > > merge(std::vector< std::vector< std::vector< double >>> toMerge)
merge { vector<double> a, vector<double> b} into {a, b}
std::vector< Pixel > m_pixels
List of all pixels in the cluster.
Abstract base class for different kinds of events.
Pixel m_seed
Seed pixel of the cluster, i.e.
float m_charge
Charge of the cluster.
void add(const Pixel &pixel)
Add a Pixel to the current cluster.