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

Clustering module. More...

#include <Clusterizend.h>

Collaboration diagram for Clusterizend:

Public Member Functions

 Clusterizend (const clusterer_params &params)
 
clusterer_params getParams ()
 
void setPlaneShape (std::vector< ushort > planeShape)
 
void setNewPlane (c3array &houghmap_plain)
 Next event initialization: set a new hough space for clustering and track finding.
 
bool has_before (cell_index entry, ushort dim)
 Clustering logic. More...
 
cell_index before (cell_index entry, ushort dim)
 
bool has_after (cell_index entry, ushort dim)
 
cell_index after (cell_index entry, ushort dim)
 
void blockcheck (std::vector< cell_index > *neighbors, cell_index elem, ushort dim)
 
std::vector< cell_index > regionQuery (cell_index entry)
 
std::vector< SimpleClusterdbscan ()
 
void expandCluster (std::vector< cell_index > &N, SimpleCluster &C)
 
std::vector< cell_index > getCandidates ()
 
template<class T >
std::string printVector (std::vector< T > vecX)
 
template<class T >
std::string printCells (std::vector< T > vecX)
 

Private Attributes

clusterer_params m_params
 Clusterizend.
 
std::vector< ushort > m_planeShape
 
std::vector< ushort > m_valmax
 
ushort m_dimsize
 
boost::array< c3index, 3 > m_c3shape = {{ 40, 384, 9 }}
 
c3array * m_houghVals {0}
 
c3array m_houghVisit = c3array(m_c3shape)
 

Detailed Description

Clustering module.

Definition at line 114 of file Clusterizend.h.

Member Function Documentation

◆ getCandidates()

vector< cell_index > getCandidates ( )

all candidiates TODO: select

Definition at line 152 of file Clusterizend.cc.

153 {
154  vector<cell_index> candidates;
156  for (c3index iom = 0; iom < 40; iom++) {
157  for (c3index iph = 0; iph < 384; iph++) {
158  for (c3index ith = 0; ith < 9; ith++) {
159  if ((*m_houghVals)[iom][iph][ith] > m_params.minweight) {
160  cell_index elem = {iom, iph, ith};
161  candidates.push_back(elem);
162  }
163  }
164  }
165  }
166  return candidates;
167 }
clusterer_params m_params
Clusterizend.
Definition: Clusterizend.h:192
unsigned short minweight
minimum weight for a cluster cell
Definition: Clusterizend.h:22

◆ has_before()

bool has_before ( cell_index  entry,
ushort  dim 
)

Clustering logic.

Get neighboring cells before and after a cell in track space before and after is defined along the track parameter axes given by dim.

Definition at line 17 of file Clusterizend.cc.


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