18 : fRecDigis(ref.fRecDigis)
20 , fDigiIndices(ref.fDigiIndices)
21 , fAddress(ref.fAddress)
24 , fStartCh(ref.fStartCh)
25 , fStartTime(ref.fStartTime)
66 uint16_t chMin = (chT != 0 ? chT : chR), chMax = (chR != 0 ? chR : chT);
81 vector<const CbmTrdDigi*> digi_vec =
GetDigis();
109 uint16_t chMin = (chT != 0 ? chT : chR), chMax = (chR != 0 ? chR : chT);
110 if (
fStartCh > chMax + 1)
return -1;
132 vector<const CbmTrdDigi*> digi_vec =
GetDigis();
158 if ((*i) ==
nullptr)
continue;
164 if (last_col >= 0 && colT != last_col + 1) {
165 L_(error) <<
"TrdModuleRec2D::LoadDigis : digis in cluster not in increasing order !";
171 auto j = std::next(i);
176 if (colR == colT && dgR !=
nullptr) {
int32_t GetAddressChannel() const
Getter read-out id.
Data Container for TRD clusters.
bool Finalize(const size_t numCols)
Fill array of calibrated digis.
bool Merge(Cluster2D *second)
Merge current cluster with info from second.
void ClearDigis()
Remove all digis.
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.
std::vector< const CbmTrdDigi * > & GetDigis()
Get array of digi pointers.
void SetStart(bool set=true)
uint16_t GetEndCh() const
void SetStop(bool set=true)
Cluster2D()=delete
Default constructor.
bool AddDigi(int32_t idx, const CbmTrdDigi *digi, uint16_t chT=0xffff, uint16_t chR=0, int32_t dt=0)
Append digi to cluster.
void SetNRows(uint16_t nrows)
int32_t IsChannelInRange(uint16_t chT, uint16_t chR) const
Query on RO channels list.
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.