CbmRoot
Loading...
Searching...
No Matches
cbm::algo::tof::Clusterizer Class Reference

#include <Clusterizer.h>

Collaboration diagram for cbm::algo::tof::Clusterizer:
[legend]

Public Types

typedef std::tuple< std::vector< Hit >, std::vector< size_t >, std::vector< u32 >, std::vector< int32_t > > resultType
 

Public Member Functions

 Clusterizer (ClusterizerRpcPar params)
 Constructor.
 
 Clusterizer ()=default
 Default constructor.
 
resultType operator() (const std::vector< std::pair< CbmTofDigi, int32_t > > &digisIn)
 Build clusters out of ToF Digis and store the resulting info in a TofHit.
 

Private Types

typedef std::vector< std::pair< const CbmTofDigi *, int32_t > > inputType
 

Private Member Functions

std::vector< inputTypechanSortDigis (const std::vector< std::pair< CbmTofDigi, int32_t > > &digisIn)
 
resultType buildClusters (std::vector< inputType > &input)
 
bool AddNextChan (std::vector< inputType > &input, int32_t iLastChan, Hit &cluster, std::vector< Hit > &clustersOut, std::vector< int32_t > &digiIndRef, std::vector< inputType::iterator > *lastChanPos=nullptr)
 

Private Attributes

ClusterizerRpcPar fParams
 Parameter container.
 

Detailed Description

Definition at line 25 of file tof/Clusterizer.h.

Member Typedef Documentation

◆ inputType

std::vector<std::pair<const CbmTofDigi*, int32_t> > cbm::algo::tof::Clusterizer::inputType
private

Definition at line 45 of file tof/Clusterizer.h.

◆ resultType

std::tuple<std::vector<Hit>, std::vector<size_t>, std::vector<u32>, std::vector<int32_t> > cbm::algo::tof::Clusterizer::resultType

Definition at line 27 of file tof/Clusterizer.h.

Constructor & Destructor Documentation

◆ Clusterizer() [1/2]

cbm::algo::tof::Clusterizer::Clusterizer ( ClusterizerRpcPar params)
inline

Constructor.

Definition at line 32 of file tof/Clusterizer.h.

◆ Clusterizer() [2/2]

cbm::algo::tof::Clusterizer::Clusterizer ( )
default

Default constructor.

Member Function Documentation

◆ AddNextChan()

◆ buildClusters()

◆ chanSortDigis()

std::vector< Clusterizer::inputType > cbm::algo::tof::Clusterizer::chanSortDigis ( const std::vector< std::pair< CbmTofDigi, int32_t > > & digisIn)
private

Sort channel-wise by time // not needed if digis are pre-sorted

Definition at line 26 of file tof/Clusterizer.cxx.

References cbm::algo::tof::ClusterizerRpcPar::fChanPar, fParams, and CbmTofDigi::GetChannel().

Referenced by operator()().

◆ operator()()

Clusterizer::resultType cbm::algo::tof::Clusterizer::operator() ( const std::vector< std::pair< CbmTofDigi, int32_t > > & digisIn)

Build clusters out of ToF Digis and store the resulting info in a TofHit.

Definition at line 19 of file tof/Clusterizer.cxx.

References buildClusters(), and chanSortDigis().

Member Data Documentation

◆ fParams

ClusterizerRpcPar cbm::algo::tof::Clusterizer::fParams
private

Parameter container.

Definition at line 47 of file tof/Clusterizer.h.

Referenced by AddNextChan(), buildClusters(), and chanSortDigis().


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