EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Clusterization.hpp File Reference
#include "Acts/Plugins/Digitization/DigitizationCell.hpp"
#include <unordered_map>
#include <vector>
#include <boost/config.hpp>
#include "Acts/Plugins/Digitization/detail/Clusterization.ipp"
+ Include dependency graph for Clusterization.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Acts
 Set the Geometry Context PLUGIN.
 

Functions

template<typename cell_t >
std::vector< std::vector
< cell_t > > 
Acts::createClusters (std::unordered_map< size_t, std::pair< cell_t, bool >> &cellMap, size_t nBins0, bool commonCorner=true, double energyCut=0.)
 create clusters This function recieves digitization cells and bundles the neighbouring to create clusters later and does cell merging. Furthermore an energy cut (excluding cells which fall below threshold) can be applied. The function is templated on the digitization cell type to allow users to use their own implementation of Acts::DigitizationCell.
 
template<typename cell_t >
void Acts::fillCluster (std::vector< std::vector< cell_t >> &mergedCells, std::unordered_map< size_t, std::pair< cell_t, bool >> &cellMap, size_t index, size_t nBins0, bool commonCorner=true, double energyCut=0.)
 fillCluster This function is a helper function internally used by Acts::createClusters. It does connected component labelling using a hash map in order to find out which cells are neighbours. This function is called recursively by all neighbours of the current cell. The function is templated on the digitization cell type to allow users to use their own implementation inheriting from Acts::DigitizationCell.