![]() |
Project
|
Meta class for recursive clusterizer. More...
#include <Clusterizer.h>
Public Member Functions | |
Clusterizer (double timeCut, double timeMin, double timeMax, double gradientCut, bool doEnergyGradientCut, double thresholdSeedE, double thresholdCellE) | |
Main constructor. | |
Clusterizer () | |
Default constructor. | |
~Clusterizer ()=default | |
Destructor. | |
void | clear () |
Clear internal buffers of found clusters and cell indices. | |
void | initialize (double timeCut, double timeMin, double timeMax, double gradientCut, bool doEnergyGradientCut, double thresholdSeedE, double thresholdCellE) |
Initialize class member vars if not done in constructor. | |
void | findClusters (const gsl::span< InputType const > &inputArray) |
Find clusters based on a give input collection. | |
const std::vector< Cluster > * | getFoundClusters () const |
Get list of found clusters. | |
const std::vector< ClusterIndex > * | getFoundClustersInputIndices () const |
Get list of found cell indices. | |
void | setGeometry (Geometry *geometry) |
Set EMCAL geometry. | |
Geometry * | getGeometry () |
Get pointer to geometry. | |
Meta class for recursive clusterizer.
Implementation of same algorithm version as in AliEMCALClusterizerv2, but optimized.
Definition at line 46 of file Clusterizer.h.
Clusterizer::Clusterizer | ( | double | timeCut, |
double | timeMin, | ||
double | timeMax, | ||
double | gradientCut, | ||
bool | doEnergyGradientCut, | ||
double | thresholdSeedE, | ||
double | thresholdCellE | ||
) |
Main constructor.
timeCut | Max. time difference of cells in cluster in ns |
timeMin | Min. accepted cell time in ns |
timeMax | Max. accepted cell time in ns |
gradientCut | Min. gradient value allowed in cluster splitting |
doEnergyGradientCut | Apply gradient cut |
thresholdSeedE | Min. energy of seed cells in GeV |
thresholdCellE | Min. energy of associated cells in GeV |
Definition at line 23 of file Clusterizer.cxx.
Clusterizer::Clusterizer | ( | ) |
Default constructor.
Definition at line 29 of file Clusterizer.cxx.
|
default |
Destructor.
|
inline |
Clear internal buffers of found clusters and cell indices.
Definition at line 102 of file Clusterizer.h.
void Clusterizer::findClusters | ( | const gsl::span< InputType const > & | inputArray | ) |
Find clusters based on a give input collection.
Start clustering from highest energy cell.
inputArray | Input collection of cells/digits |
Definition at line 114 of file Clusterizer.cxx.
|
inline |
Get list of found clusters.
Definition at line 127 of file Clusterizer.h.
|
inline |
Get list of found cell indices.
Definition at line 131 of file Clusterizer.h.
|
inline |
void Clusterizer::initialize | ( | double | timeCut, |
double | timeMin, | ||
double | timeMax, | ||
double | gradientCut, | ||
bool | doEnergyGradientCut, | ||
double | thresholdSeedE, | ||
double | thresholdCellE | ||
) |
Initialize class member vars if not done in constructor.
timeCut | Max. time difference of cells in cluster in ns |
timeMin | Min. accepted cell time in ns |
timeMax | Max. accepted cell time in ns |
gradientCut | Min. gradient value allowed in cluster splitting |
doEnergyGradientCut | Apply gradient cut |
thresholdSeedE | Min. energy of seed cells in GeV |
thresholdCellE | Min. energy of associated cells in GeV |
Definition at line 35 of file Clusterizer.cxx.
|
inline |
Set EMCAL geometry.
geometry | Geometry pointer |
Definition at line 135 of file Clusterizer.h.