Go to the documentation of this file.
12 #include <RtypesCore.h>
32 CbmCluster(
const std::vector<Int_t>& indices, Int_t address);
53 void AddDigis(
const std::vector<Int_t>& indices) {
54 fDigis.insert(
fDigis.end(), indices.begin(), indices.end());
61 void SetDigis(
const std::vector<Int_t>& indices) {
62 fDigis.assign(indices.begin(), indices.end());
101 virtual std::string
ToString()
const;
std::vector< Int_t > fDigis
Array of digi indices.
void AddDigi(Int_t index)
Add digi to cluster.
void SetMatch(CbmMatch *match)
CbmMatch * fMatch
link to Monte-Carlo information
Int_t GetNofDigis() const
Number of digis in cluster.
virtual std::string ToString() const
Return string representation of the object.
void ClearDigis()
Remove all digis.
const std::vector< Int_t > & GetDigis() const
Get array of digi indices.
virtual ~CbmCluster()
Destructor.
void SetDigis(const std::vector< Int_t > &indices)
Set array of digi to cluster. Overwrites existing array.
CbmCluster & operator=(const CbmCluster &)
void SetAddress(Int_t address)
Base class for cluster objects.
void AddDigis(const std::vector< Int_t > &indices)
Add array of digi to cluster.
Int_t GetDigi(Int_t index) const
Get digi at position index.
CbmMatch * GetMatch() const
Int_t fAddress
Unique detector ID.