Project
Loading...
Searching...
No Matches
o2::mid::Clusterizer Class Reference

Clusterizing algorithm for MID. More...

#include <Clusterizer.h>

Public Member Functions

bool init (std::function< void(size_t, size_t)> func=[](size_t, size_t) {})
 
void process (gsl::span< const PreCluster > preClusters, bool accumulate=false)
 
void process (gsl::span< const PreCluster > preClusters, gsl::span< const ROFRecord > rofRecords)
 
const std::vector< Cluster > & getClusters ()
 Gets the vector of reconstructed clusters.
 
const std::vector< ROFRecord > & getROFRecords ()
 Gets the vector of clusters RO frame records.
 

Detailed Description

Clusterizing algorithm for MID.

Definition at line 37 of file Clusterizer.h.

Member Function Documentation

◆ getClusters()

const std::vector< Cluster > & o2::mid::Clusterizer::getClusters ( )
inline

Gets the vector of reconstructed clusters.

Definition at line 55 of file Clusterizer.h.

◆ getROFRecords()

const std::vector< ROFRecord > & o2::mid::Clusterizer::getROFRecords ( )
inline

Gets the vector of clusters RO frame records.

Definition at line 58 of file Clusterizer.h.

◆ init()

bool o2::mid::Clusterizer::init ( std::function< void(size_t, size_t)>  func = [](size_t, size_t) {})

Initializes the clusterizer

Parameters
funcFunction to associate the cluster index with the corresponding pre-clusters

Definition at line 176 of file Clusterizer.cxx.

◆ process() [1/2]

void o2::mid::Clusterizer::process ( gsl::span< const PreCluster preClusters,
bool  accumulate = false 
)

Builds the clusters from the pre-clusters in one event

Parameters
preClustersgsl::span of PreClusters objects in the same event
accumulateFlag to decide if one needs to reset the output clusters at each event

Definition at line 51 of file Clusterizer.cxx.

◆ process() [2/2]

void o2::mid::Clusterizer::process ( gsl::span< const PreCluster preClusters,
gsl::span< const ROFRecord rofRecords 
)

Builds the clusters from the pre-clusters in the timeframe

Parameters
preClustersgsl::span of PreClusters objects in the timeframe
rofRecordsRO frame records

Definition at line 65 of file Clusterizer.cxx.


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