#ifndef PNDLUMICLUSTER_H #define PNDLUMICLUSTER_H #include "TObject.h" #include #include #include "PndDetectorList.h" // contains SensorSide enumeration //! PndLumiCluster.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 PndLumiCluster : public TObject { friend std::ostream& operator<< (std::ostream& out, PndLumiCluster& cl){ std::vector list = cl.GetClusterList(); out << "Hits in Cluster:" << std::endl; for (Int_t i = 0; i 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(); private : std::vector fClusterList; SensorSide fSide; ClassDef(PndLumiCluster,1); }; #endif