Belle II Software  release-08-01-10
SimpleCluster Class Reference

Type for found clusters. More...

#include <Clusterizend.h>

Collaboration diagram for SimpleCluster:

Public Member Functions

 SimpleCluster (cell_index entry)
 
void initClCellsNew ()
 
void setParams (unsigned short dim)
 
std::vector< cell_index > getEntries ()
 Get member cells in the cluster.
 
void append (cell_index next_entry)
 Add a track-space cell to the cluster.
 
void add_hit (unsigned short hit, unsigned short weight, unsigned short orient)
 Relate a hit to the cluster. More...
 
unsigned long get_naxial ()
 Get number related axial hits.
 
unsigned long get_nstereo ()
 Get number related stereo hits.
 
std::vector< unsigned short > get_hits ()
 Get ids of related hits (indices of the TS StoreArray)
 
std::vector< unsigned short > get_weights ()
 Get weight contribution of each related hit to the cluster.
 

Private Attributes

std::vector< cell_index > m_C
 SimpleCluster. More...
 
unsigned short m_dim
 Dimension of the track space (3 for omega, phi, theta)
 
std::vector< unsigned short > m_hits
 Cluster related hits ids.
 
std::vector< unsigned short > m_hitWeights
 Cluster related hits weights.
 
unsigned short m_orientSum
 Sum of related hit orientations (== number of related axials)
 

Detailed Description

Type for found clusters.

Definition at line 34 of file Clusterizend.h.

Member Function Documentation

◆ add_hit()

void add_hit ( unsigned short  hit,
unsigned short  weight,
unsigned short  orient 
)
inline

Relate a hit to the cluster.

orient == 1: axial, orient == 0: stereo

Definition at line 72 of file Clusterizend.h.

73  {
74  m_hits.push_back(hit);
75  m_hitWeights.push_back(weight);
76  m_orientSum += orient;
77  }
std::vector< unsigned short > m_hitWeights
Cluster related hits weights.
Definition: Clusterizend.h:107
unsigned short m_orientSum
Sum of related hit orientations (== number of related axials)
Definition: Clusterizend.h:109
std::vector< unsigned short > m_hits
Cluster related hits ids.
Definition: Clusterizend.h:105

Member Data Documentation

◆ m_C

std::vector<cell_index> m_C
private

SimpleCluster.

Cluster member cells

Definition at line 101 of file Clusterizend.h.


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