// -------------------------------------------------------- // ---- PndMvdDigiPixel header file --- // ---- Created 19.6.06 by T.Stockmanns --- // -------------------------------------------------------- /** PndMvdDigiPixel.h *@author T.Stockmanns ** \brief Data class to store the digi output of a pixel module ** ** \sa PndMvdDigi.h **/ #ifndef PNDMVDDIGIPIXEL_H #define PNDMVDDIGIPIXEL_H #include "PndMvdDigi.h" #include "TObject.h" #include "TString.h" #include class PndMvdDigiPixel : public PndMvdDigi { friend std::ostream& operator<< (std::ostream& out, PndMvdDigiPixel& digi){ out << "PndMvd DigiPixel in: " << digi.GetDetName() << " FE: " << digi.GetFE() << " Col/Row " << digi.GetPixelColumn() << "/" << digi.GetPixelRow() << " charge " << digi.GetCharge() << " e" << ", from Point " << digi.GetIndex() << std::endl; return out; } public : PndMvdDigiPixel(); PndMvdDigiPixel(Int_t index, Int_t detID, TString detName, Int_t fe, Int_t col, Int_t row, Double_t charge); ~PndMvdDigiPixel(){}; void Print(){ std::cout << fIndex << ": " << "Pixel Hit: " << fDetName << " FE: " << fFE << " Pixel (C/R) " << fCol << "/" << fRow << " charge " << fCharge << " PointIndex: " << fIndex << std::endl; } Int_t GetPixelColumn() const { return fCol; } Int_t GetPixelRow() const { return fRow; } private : Int_t fCol, fRow; ClassDef(PndMvdDigiPixel,6); }; #endif