20 #ifndef PNDGEMCLUSTER_H
21 #define PNDGEMCLUSTER_H 1
25 #include "FairTimeStamp.h"
38 <<
", side = " << cluster.
GetSide()
43 <<
", cor = " << cluster.
GetCor()
44 <<
", timestamp "<< cluster.GetTimeStamp()
45 <<
", from Point(s) ";
46 std::vector<Int_t>indices = cluster.
GetIndices();
47 for (
unsigned int i = 0;
i < indices.size();
i++){
48 out << indices[
i] <<
" ";
68 PndGemCluster(Int_t iDetectorId,
Double_t iChannel, Int_t bChannel, Int_t eChannel, std::vector<Int_t> index);
101 std::vector<Int_t> result;
102 std::set<FairLink> myLinks = GetLinks();
103 for (std::set<FairLink>::iterator it = myLinks.begin(); it != myLinks.end(); it++){
104 result.push_back(it->GetIndex());
109 Int_t
GetIndex(
int i = 0)
const{
return GetLink(
i).GetIndex();}
112 AddLink(FairLink(
"GEMDigi", index));
115 SetLinks(FairMultiLinkedData(
"GEMDigi", index));
118 virtual bool equal(FairTimeStamp* data){
Double_t GetChannelNr() const
Int_t GetSensorNr() const
Int_t GetClusterBeg() const
void SetCharge(Double_t iCharge)
virtual bool equal(FairTimeStamp *data)
void AddIndex(std::vector< Int_t > index)
virtual bool operator<(const PndGemCluster &myCluster) const
void SetClusterBeg(Int_t bChan)
Int_t GetClusterEnd() const
friend std::ostream & operator<<(std::ostream &out, PndGemCluster &cluster)
void SetCor(Double_t iCor)
Int_t GetDetectorId() const
ClassDef(PndGemCluster, 1)
Int_t GetIndex(int i=0) const
void AddCharge(Double_t iCharge)
virtual bool operator==(const PndGemCluster &myCluster) const
std::vector< Int_t > GetIndices() const
Double_t GetCharge() const
Int_t GetStationNr() const
Int_t GetSystemId() const
virtual bool operator>(const PndGemCluster &myCluster) const
void SetClusterEnd(Int_t eChan)