#ifndef _CBMSTTHOUGHCELLNEW_H_ #define _CBMSTTHOUGHCELLNEW_H_ #include "TObject.h" #include "CbmSttHoughHitNew.h" #include #include #include using std::vector; using std::map; class CbmSttHoughCellNew : public TObject { private: vector fClusterLinks; map fHits; Bool_t fVerbose; void Copy(CbmSttHoughCellNew const &other); void Destroy(); Int_t fX; Int_t fY; Int_t fZ; Int_t fBelongsToCluster; public: CbmSttHoughCellNew(); CbmSttHoughCellNew(Int_t newX, Int_t newY, Int_t newZ = -1); CbmSttHoughCellNew(CbmSttHoughCellNew const &other); ~CbmSttHoughCellNew(); void AddClusterLink(CbmSttHoughCellNew *newLink); void MergeClusterLinks(Bool_t merge, Int_t maximumIdentifier); void RemoveHit(Int_t elementNumber); void AddHit(Int_t iHitFirst, Int_t iHitSecond, Int_t iHitThird = -1); void AddHit(CbmSttHoughHitNew newHit); Int_t GetHit(Int_t index) const; Int_t GetHitContent(Int_t index) const; Int_t GetX() const {return fX;} Int_t GetY() const {return fY;} Int_t GetZ() const {return fZ;} Int_t Size() const; Int_t DifSize() const; void Merge(CbmSttHoughCellNew const &other); void Clear(); Int_t GetClusterNumber() const {return fBelongsToCluster;} Bool_t IsVerbose() const {return fVerbose;} void SetVerbose(Bool_t newVerbose = true) {fVerbose = newVerbose;} void operator=(CbmSttHoughCellNew const &other); ClassDef(CbmSttHoughCellNew,1) }; #endif