11#ifndef CBMTRDCLUSTER_H
12#define CBMTRDCLUSTER_H
42 CbmTrdCluster(
const std::vector<int32_t>& indices, int32_t address);
52 CbmTrdCluster(int32_t address, int32_t idx, uint16_t chT, uint16_t chR, int32_t r, int32_t time);
72 bool AddDigi(int32_t idx, uint16_t chT = 0xffff, uint16_t chR = 0, int32_t dt = 0);
74 void Clear(Option_t*);
104 void ReInit(int32_t address, int32_t row, int32_t time);
117 virtual std::string
ToString()
const;
Base class for cluster objects.
Base class for cluster objects.
Data Container for TRD clusters.
uint32_t GetStartTime() const
CbmTrdCluster()
Default constructor.
void ReInit(int32_t address, int32_t row, int32_t time)
Initialize basic parameters of the cluster.
uint16_t GetNRows() const
void SetStart(bool set=true)
int32_t IsChannelInRange(uint16_t chT, uint16_t chR) const
Query on RO channels list.
virtual ~CbmTrdCluster()
Destructor.
bool AddDigi(int32_t idx, uint16_t chT=0xffff, uint16_t chR=0, int32_t dt=0)
Append digi to cluster.
CbmTrdCluster & operator=(const CbmTrdCluster &ref)
@ kStop
only for triangular if no R in last col
@ kStart
only for triangular if no T in first col
@ kFasp
set type of FEE digis contained
bool AddChannel(bool r=true)
Append a channel to cluster edge. The usage is to account for the masked channels....
void SetStop(bool set=true)
bool HasFaspDigis() const
void SetNCols(uint16_t ncols)
void SetNRows(uint16_t nrows)
virtual std::string ToString() const
Extended functionality.
bool Merge(CbmTrdCluster *second)
Merge current cluster with info from second.
void SetFaspDigis(bool set=true)
uint16_t GetStartCh() const
uint16_t GetEndCh() const
void Clear(Option_t *)
reset cluster data
uint16_t GetNCols() const