Belle II Software development
SimpleCluster Class Reference

Type for found clusters. More...

#include <Clusterizend.h>

Public Member Functions

void appendCell (const cell_index &newClusterCell)
 Add a track-space cell to the cluster.
 
void addHitToCluster (unsigned short hit)
 Relate a hit to the cluster.
 
void setPeakCell (const cell_index &peakCell)
 Set the peak index (found as the section peak) of the cluster.
 
void setPeakWeight (const unsigned int peakWeight)
 Set the weight of the peak cluster cell.
 
std::vector< cell_indexgetCells () const
 Get member cells in the cluster.
 
std::vector< unsigned short > getClusterHits () const
 Get the TS hits added to this cluster.
 
cell_index getPeakCell () const
 Get the peak index (found as the section peak) from the cluster.
 
unsigned int getPeakWeight () const
 Get the weight of the peak cluster cell.
 

Private Attributes

std::vector< cell_indexm_clusterCells
 Cluster member cells.
 
std::vector< unsigned short > m_clusterHits
 Cluster related hits ids.
 
cell_index m_clusterPeakCell {{0, 0, 0}}
 Peak index (found as the section maximum)
 
unsigned int m_clusterPeakWeight {0}
 Weight of the peak index.
 

Detailed Description

Type for found clusters.

Definition at line 35 of file Clusterizend.h.

Member Function Documentation

◆ addHitToCluster()

void addHitToCluster ( unsigned short hit)
inline

Relate a hit to the cluster.

Definition at line 43 of file Clusterizend.h.

43{ m_clusterHits.push_back(hit); }

◆ appendCell()

void appendCell ( const cell_index & newClusterCell)
inline

Add a track-space cell to the cluster.

Definition at line 41 of file Clusterizend.h.

41{ m_clusterCells.push_back(newClusterCell); }

◆ getCells()

std::vector< cell_index > getCells ( ) const
inline

Get member cells in the cluster.

Definition at line 51 of file Clusterizend.h.

51{ return m_clusterCells; }

◆ getClusterHits()

std::vector< unsigned short > getClusterHits ( ) const
inline

Get the TS hits added to this cluster.

Definition at line 53 of file Clusterizend.h.

53{ return m_clusterHits; }

◆ getPeakCell()

cell_index getPeakCell ( ) const
inline

Get the peak index (found as the section peak) from the cluster.

Definition at line 55 of file Clusterizend.h.

55{ return m_clusterPeakCell; }

◆ getPeakWeight()

unsigned int getPeakWeight ( ) const
inline

Get the weight of the peak cluster cell.

Definition at line 57 of file Clusterizend.h.

57{ return m_clusterPeakWeight; }

◆ setPeakCell()

void setPeakCell ( const cell_index & peakCell)
inline

Set the peak index (found as the section peak) of the cluster.

Definition at line 46 of file Clusterizend.h.

46{ m_clusterPeakCell = peakCell; }

◆ setPeakWeight()

void setPeakWeight ( const unsigned int peakWeight)
inline

Set the weight of the peak cluster cell.

Definition at line 48 of file Clusterizend.h.

48{ m_clusterPeakWeight = peakWeight; }

Member Data Documentation

◆ m_clusterCells

std::vector<cell_index> m_clusterCells
private

Cluster member cells.

Definition at line 61 of file Clusterizend.h.

◆ m_clusterHits

std::vector<unsigned short> m_clusterHits
private

Cluster related hits ids.

Definition at line 63 of file Clusterizend.h.

◆ m_clusterPeakCell

cell_index m_clusterPeakCell {{0, 0, 0}}
private

Peak index (found as the section maximum)

Definition at line 65 of file Clusterizend.h.

65{{0, 0, 0}};

◆ m_clusterPeakWeight

unsigned int m_clusterPeakWeight {0}
private

Weight of the peak index.

Definition at line 67 of file Clusterizend.h.

67{0};

The documentation for this class was generated from the following file: