// -------------------------------------------------------- // ---- PndMvdDigi header file --- // ---- Created 19.10.07 by T.Stockmanns --- // -------------------------------------------------------- /** PndMvdDigi.h *@author T.Stockmanns ** ** \brief Base class for Digi information ** ** **/ #ifndef PNDMVDDIGI_H #define PNDMVDDIGI_H #include "TObject.h" #include "TString.h" #include class PndMvdDigi : public TObject { friend std::ostream& operator<< (std::ostream& out, PndMvdDigi& digi){ out << "PndMvd Digi in: " << digi.GetDetName() << " FE: " << digi.GetFE() << " " << " charge " << digi.GetCharge() << " e" << ", from Point " << digi.GetIndex() << std::endl; return out; } public : PndMvdDigi(); PndMvdDigi(Int_t index, Int_t detID, TString detName, Int_t fe, Double_t charge); /**GetID(gGeoManager->GetPath()) information * \param fe front end ID * \param charge deposited charge in electrons */ virtual ~PndMvdDigi(){}; Int_t GetFE() const { return fFE;} TString GetDetName() const { return fDetName; } Double_t GetCharge() const { return fCharge; } Int_t GetDetID() const { return fDetID;} Int_t GetIndex() const { return fIndex;} virtual void Print() { std::cout << *this; } protected : Int_t fIndex, fDetID; TString fDetName; Double_t fCharge; Int_t fFE; ClassDef(PndMvdDigi,1); }; #endif