36 CbmCluster(
const std::vector<int32_t>& indices, int32_t address);
57 void AddDigis(
const std::vector<int32_t>& indices) {
fDigis.insert(
fDigis.end(), indices.begin(), indices.end()); }
63 void SetDigis(
const std::vector<int32_t>& indices) {
fDigis.assign(indices.begin(), indices.end()); }
101 virtual std::string
ToString()
const;
Base class for cluster objects.
void SetDigis(const std::vector< int32_t > &indices)
Set array of digi to cluster. Overwrites existing array.
void AddDigi(int32_t index)
Add digi to cluster.
CbmMatch * fMatch
link to Monte-Carlo information
CbmMatch * GetMatch() const
const std::vector< int32_t > & GetDigis() const
Get array of digi indices.
std::vector< int32_t > fDigis
Array of digi indices.
int32_t fAddress
Unique detector ID.
void SetMatch(CbmMatch *match)
int32_t GetAddress() const
void SetAddress(int32_t address)
int32_t GetDigi(int32_t index) const
Get digi at position index.
virtual std::string ToString() const
Return string representation of the object.
virtual ~CbmCluster()
Destructor.
CbmCluster & operator=(const CbmCluster &)
void AddDigis(const std::vector< int32_t > &indices)
Add array of digi to cluster.
void ClearDigis()
Remove all digis.
int32_t GetNofDigis() const
Number of digis in cluster.