49 Cluster2D(int32_t address, int32_t idx,
const CbmTrdDigi* digi, uint16_t chT, uint16_t chR, int32_t r,
71 void AddDigiIdxPairs(
const std::vector<int32_t>& indices,
const std::vector<const CbmTrdDigi*> digis)
129 bool AddDigi(int32_t idx,
const CbmTrdDigi* digi, uint16_t chT = 0xffff, uint16_t chR = 0, int32_t dt = 0);
162 bool Finalize(
const size_t numCols);
Compatibility header for basic ROOT macros.
Data Container for TRD clusters.
uint32_t GetStartTime() const
bool Finalize(const size_t numCols)
Fill array of calibrated digis.
bool Merge(Cluster2D *second)
Merge current cluster with info from second.
uint16_t GetNRowsRaw() const
const std::vector< DigiRec > & GetRecDigis() const
Get array of calibrated digis.
int32_t GetDigi(int32_t index) const
Get digi at position index.
void ClearDigis()
Remove all digis.
int32_t fAddress
Unique detector ID.
virtual ~Cluster2D()
Destructor.
const std::vector< int32_t > & GetDigiIndices() const
Get array of digi indices.
std::vector< const CbmTrdDigi * > fDigis
Array of digi pointers.
void AddDigiIdxPair(int32_t index, const CbmTrdDigi *digi)
Add digi to cluster.
int32_t GetNofDigis() const
Number of digis in cluster.
uint16_t GetNCols() const
std::vector< const CbmTrdDigi * > & GetDigis()
Get array of digi pointers.
void SetStart(bool set=true)
uint16_t GetEndCh() const
@ kStart
only for triangular if no T in first col
@ kStop
only for triangular if no R in last col
@ kFasp
set type of FEE digis contained
std::vector< int32_t > fDigiIndices
Array of digi indices.
void SetStop(bool set=true)
Cluster2D()=delete
Default constructor.
uint16_t GetNRows() const
bool AddDigi(int32_t idx, const CbmTrdDigi *digi, uint16_t chT=0xffff, uint16_t chR=0, int32_t dt=0)
Append digi to cluster.
bool HasFaspDigis() const
void SetNRows(uint16_t nrows)
int32_t IsChannelInRange(uint16_t chT, uint16_t chR) const
Query on RO channels list.
void SetNCols(uint16_t ncols)
int32_t GetAddress() const
void AddDigiIdxPairs(const std::vector< int32_t > &indices, const std::vector< const CbmTrdDigi * > digis)
Add array of digi to cluster.
std::vector< DigiRec > fRecDigis
Array of calibrated digis.
uint16_t GetStartCh() const