#ifndef PNDHYPCLUSTER_H #define PNDHYPCLUSTER_H #include "TObject.h" #include #include #include "PndHypHit.h" // contains SensorSide enumeration //! PndHypClusterCand.h //! @author T.Stockmanns //! //! \brief Class to store the Digis which belong to one cluster //! This class holds the information which Digi belongs to the actual cluster. //! The information is stored in a vector which contains the //! position of the digi in the TClonesArray where it is stored. class PndHypCluster: public TObject { public : PndHypCluster():fClusterList(),fSide(kTOP){}; ~PndHypCluster(){}; PndHypCluster(std::vector list); void SetClusterList(std::vector list){fClusterList = list;} std::vector GetClusterList() const {return fClusterList;}; Int_t GetClusterSize() const {return fClusterList.size();}; Int_t GetDigiIndex(Int_t i) const {return fClusterList[i];} SensorSide GetSensorSide() const {return fSide;}; void SetSensorSide(SensorSide s) {fSide = s;} bool DigiBelongsToCluster(Int_t digiIndex); void Print(); friend std::ostream& operator<< (std::ostream& out, PndHypCluster& cl){ std::vector list = cl.GetClusterList(); out << "Hits in Cluster:" << std::endl; for (unsigned int i = 0; i fClusterList; SensorSide fSide; ClassDef(PndHypCluster,1); }; #endif