CbmRoot
Loading...
Searching...
No Matches
cbm::algo::trd::Cluster Class Reference

Data container for TRD clusters. More...

#include <Cluster.h>

Public Member Functions

 Cluster ()=delete
 Default constructor.
 
 Cluster (const std::vector< int32_t > &indices, const std::vector< const CbmTrdDigi * > &digis, int32_t address, uint16_t ncols, uint16_t nrows)
 
virtual ~Cluster ()
 Destructor.
 
size_t GetNofDigis () const
 Number of digis in cluster.
 
int32_t GetDigi (int32_t index) const
 Get digi at position index.
 
const std::vector< const CbmTrdDigi * > & GetDigis () const
 Get array of digi pointers.
 
const std::vector< int32_t > & GetDigiIndices () const
 Get array of digi indices.
 
int32_t GetAddress () const
 
uint16_t GetStartCh () const
 
uint16_t GetNCols () const
 
uint16_t GetNRows () const
 
uint16_t GetNRowsRaw () const
 
uint32_t GetStartTime () const
 
bool HasFaspDigis () const
 

Private Member Functions

void SetNRows (uint16_t nrows)
 start time of cluster in clk units wrt buffer start
 

Private Attributes

std::vector< int32_t > fDigiInd
 Array of digi indices.
 
std::vector< const CbmTrdDigi * > fDigis
 Array of digi pointers.
 
int32_t fAddress = 0
 Unique detector ID.
 
uint8_t fNCols = 0
 
uint8_t fNRows = 0x1f
 
uint16_t fStartCh = 0xffff
 
uint32_t fStartTime = 0xffffffff
 

Detailed Description

Data container for TRD clusters.

Author
Dominik Smith d.smi.nosp@m.th@g.nosp@m.si.de

Definition at line 20 of file detectors/trd/Cluster.h.

Constructor & Destructor Documentation

◆ Cluster() [1/2]

cbm::algo::trd::Cluster::Cluster ( )
delete

Default constructor.

◆ Cluster() [2/2]

cbm::algo::trd::Cluster::Cluster ( const std::vector< int32_t > & indices,
const std::vector< const CbmTrdDigi * > & digis,
int32_t address,
uint16_t ncols,
uint16_t nrows )

Definition at line 12 of file Cluster.cxx.

References fDigiInd, fDigis, and SetNRows().

◆ ~Cluster()

virtual cbm::algo::trd::Cluster::~Cluster ( )
inlinevirtual

Destructor.

Definition at line 33 of file detectors/trd/Cluster.h.

Member Function Documentation

◆ GetAddress()

int32_t cbm::algo::trd::Cluster::GetAddress ( ) const
inline

Accessors

Definition at line 61 of file detectors/trd/Cluster.h.

References fAddress.

◆ GetDigi()

int32_t cbm::algo::trd::Cluster::GetDigi ( int32_t index) const
inline

Get digi at position index.

Parameters
[in]indexPosition of digi in array.
Returns
Digi index in TClonesArray.

Definition at line 46 of file detectors/trd/Cluster.h.

References fDigiInd.

◆ GetDigiIndices()

const std::vector< int32_t > & cbm::algo::trd::Cluster::GetDigiIndices ( ) const
inline

Get array of digi indices.

Returns
Array of digi indices in TClonesArray.

Definition at line 58 of file detectors/trd/Cluster.h.

References fDigiInd.

◆ GetDigis()

const std::vector< const CbmTrdDigi * > & cbm::algo::trd::Cluster::GetDigis ( ) const
inline

Get array of digi pointers.

Returns
Array of digi pointers.

Definition at line 52 of file detectors/trd/Cluster.h.

References fDigis.

Referenced by cbm::algo::trd::HitFinder::IsClusterComplete(), and cbm::algo::trd::HitFinder::operator()().

◆ GetNCols()

uint16_t cbm::algo::trd::Cluster::GetNCols ( ) const
inline

Definition at line 63 of file detectors/trd/Cluster.h.

References fNCols.

◆ GetNofDigis()

size_t cbm::algo::trd::Cluster::GetNofDigis ( ) const
inline

Number of digis in cluster.

Returns
Number of digis in cluster.

Definition at line 39 of file detectors/trd/Cluster.h.

References fDigiInd.

◆ GetNRows()

uint16_t cbm::algo::trd::Cluster::GetNRows ( ) const
inline

Definition at line 64 of file detectors/trd/Cluster.h.

References fNRows.

◆ GetNRowsRaw()

uint16_t cbm::algo::trd::Cluster::GetNRowsRaw ( ) const
inline

Definition at line 65 of file detectors/trd/Cluster.h.

References fNRows.

◆ GetStartCh()

uint16_t cbm::algo::trd::Cluster::GetStartCh ( ) const
inline

Definition at line 62 of file detectors/trd/Cluster.h.

References fStartCh.

◆ GetStartTime()

uint32_t cbm::algo::trd::Cluster::GetStartTime ( ) const
inline

Definition at line 66 of file detectors/trd/Cluster.h.

References fStartTime.

◆ HasFaspDigis()

bool cbm::algo::trd::Cluster::HasFaspDigis ( ) const
inline

Definition at line 67 of file detectors/trd/Cluster.h.

◆ SetNRows()

void cbm::algo::trd::Cluster::SetNRows ( uint16_t nrows)
inlineprivate

start time of cluster in clk units wrt buffer start

Definition at line 79 of file detectors/trd/Cluster.h.

References fNRows.

Referenced by Cluster().

Member Data Documentation

◆ fAddress

int32_t cbm::algo::trd::Cluster::fAddress = 0
private

Unique detector ID.

Definition at line 73 of file detectors/trd/Cluster.h.

Referenced by GetAddress().

◆ fDigiInd

std::vector<int32_t> cbm::algo::trd::Cluster::fDigiInd
private

Array of digi indices.

Definition at line 70 of file detectors/trd/Cluster.h.

Referenced by Cluster(), GetDigi(), GetDigiIndices(), and GetNofDigis().

◆ fDigis

std::vector<const CbmTrdDigi*> cbm::algo::trd::Cluster::fDigis
private

Array of digi pointers.

Definition at line 71 of file detectors/trd/Cluster.h.

Referenced by Cluster(), and GetDigis().

◆ fNCols

uint8_t cbm::algo::trd::Cluster::fNCols = 0
private

Definition at line 74 of file detectors/trd/Cluster.h.

Referenced by GetNCols().

◆ fNRows

uint8_t cbm::algo::trd::Cluster::fNRows = 0x1f
private

Definition at line 75 of file detectors/trd/Cluster.h.

Referenced by GetNRows(), GetNRowsRaw(), and SetNRows().

◆ fStartCh

uint16_t cbm::algo::trd::Cluster::fStartCh = 0xffff
private

Definition at line 76 of file detectors/trd/Cluster.h.

Referenced by GetStartCh().

◆ fStartTime

uint32_t cbm::algo::trd::Cluster::fStartTime = 0xffffffff
private

Definition at line 77 of file detectors/trd/Cluster.h.

Referenced by GetStartTime().


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