// -------------------------------------------------------- // ---- PndSdsDigiPixel header file --- // ---- Created 19.6.06 by T.Stockmanns --- // -------------------------------------------------------- /** PndSdsDigiPixel.h *@author T.Stockmanns ** \brief Data class to store the digi output of a pixel module ** ** \sa PndSdsDigi.h **/ #ifndef PNDSDSDIGIPIXEL_H #define PNDSDSDIGIPIXEL_H #include "PndSdsDigi.h" #include "TObject.h" #include "TString.h" #include #include class PndSdsDigiPixel : public PndSdsDigi { friend std::ostream& operator<< (std::ostream& out, PndSdsDigiPixel& digi){ out << "PndSdsDigiPixel in: " << digi.GetDetName() << " FE: " << digi.GetFE() << " Col/Row " << digi.GetPixelColumn() << "/" << digi.GetPixelRow() << " charge " << digi.GetCharge() << " e" << ", from Point(s) "; std::vectorindices = digi.GetIndices(); for (int i = 0; i < indices.size(); i++){ std::cout << indices[i] << " "; } std::cout << std::endl; return out; } public : PndSdsDigiPixel(); PndSdsDigiPixel(std::vector index, Int_t detID, TString detName, Int_t fe, Int_t col, Int_t row, Double_t charge); ~PndSdsDigiPixel(){}; void Print() { std::cout << *this; } Int_t GetPixelColumn() const { return fCol; } Int_t GetPixelRow() const { return fRow; } private : Int_t fCol, fRow; ClassDef(PndSdsDigiPixel,7); }; #endif