20using std::stringstream;
30 , fStartCh(ref.fStartCh)
31 , fStartTime(ref.fStartTime)
45 ReInit(address, row, time);
98 uint16_t chMin = (chT != 0 ? chT : chR), chMax = (chR != 0 ? chR : chT);
148 if (row >= 0x1f) LOG(warn) << GetName() <<
"::ReInit: pad-row truncated to 5bits.";
152 if (std::abs(time) >= 0x7fffffff) LOG(warn) << GetName() <<
"::ReInit: buffer time truncated to 4bytes.";
163 uint16_t chMin = (chT != 0 ? chT : chR), chMax = (chR != 0 ? chR : chT);
164 if (
fStartCh > chMax + 1)
return -1;
211 ss <<
"CbmTrdCluster: mod=" <<
GetAddress() <<
" row=" << (int32_t)
GetRow() <<
" "
214 for (int32_t i(0); i <
fNCols; i++)
ClassImp(CbmConverterManager)
Data Container for TRD clusters.
Base class for cluster objects.
void AddDigi(int32_t index)
Add digi to cluster.
const std::vector< int32_t > & GetDigis() const
Get array of digi indices.
int32_t GetAddress() const
void SetAddress(int32_t address)
virtual std::string ToString() const
Return string representation of the object.
CbmCluster & operator=(const CbmCluster &)
void AddDigis(const std::vector< int32_t > &indices)
Add array of digi to cluster.
void ClearDigis()
Remove all digis.
Data Container for TRD clusters.
CbmTrdCluster()
Default constructor.
void ReInit(int32_t address, int32_t row, int32_t time)
Initialize basic parameters of the cluster.
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)
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 SetNRows(uint16_t nrows)
virtual std::string ToString() const
Extended functionality.
bool Merge(CbmTrdCluster *second)
Merge current cluster with info from second.
uint16_t GetEndCh() const
void Clear(Option_t *)
reset cluster data