Go to the documentation of this file.
8 #include <FairLogger.h>
10 #include <TMathBase.h>
16 using std::stringstream;
24 , fStartTime(0xffff) {}
31 , fStartCh(ref.fStartCh)
32 , fStartTime(ref.fStartTime) {}
40 , fStartTime(0xffff) {}
52 , fStartTime(0xffff) {
53 ReInit(address, row, time);
72 if (channel >= 0xffff)
73 LOG(warn) << GetName() <<
"::AddDigi: pad-channel truncated to 2bytes.";
81 else if (terminator > 0)
118 LOG(warn) << GetName() <<
"::ReInit: pad-row truncated to 5bits.";
123 LOG(warn) << GetName() <<
"::ReInit: buffer time truncated to 2bytes.";
Int_t GetAddress(UInt_t unit=0, UInt_t ladder=0, UInt_t halfladder=0, UInt_t module=0, UInt_t sensor=0, UInt_t side=0, UInt_t version=kCurrentVersion)
Construct address.
void ReInit(Int_t address, Int_t row, Int_t time)
Initialize basic parameters of the cluster.
void AddDigi(Int_t index)
Add digi to cluster.
UShort_t GetEndCh() const
Int_t IsChannelInRange(Int_t ch) const
Query on RO channel list.
virtual std::string ToString() const
Extended functionality.
virtual std::string ToString() const
Return string representation of the object.
Data Container for TRD clusters.
void ClearDigis()
Remove all digis.
CbmTrdCluster()
Default constructor.
const std::vector< Int_t > & GetDigis() const
Get array of digi indices.
ClassImp(CbmConverterManager) InitStatus CbmConverterManager
Bool_t AddDigi(Int_t idx, Int_t channel=-1, Int_t terminator=0, Int_t dt=0)
Append digi to cluster.
void SetProfileStart(Bool_t set=kTRUE)
virtual ~CbmTrdCluster()
Destructor.
void SetProfileStop(Bool_t set=kTRUE)
void SetAddress(Int_t address)
Bool_t HasOpenStop() const
Base class for cluster objects.
void Clear(Option_t *)
reset cluster data
Bool_t HasOpenStart() const
Bool_t HasTrianglePads() const
Bool_t Merge(CbmTrdCluster *second)
Merge current cluster with info from second.
UShort_t fStartTime
channel address of first channel
Data Container for TRD clusters.
void AddDigis(const std::vector< Int_t > &indices)
Add array of digi to cluster.
void SetNRows(UShort_t nrows)