MpdTpcDigit.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //--------------------------------------------------------------------
  2. //
  3. // Description:
  4. // Class for storing TPC Digits
  5. //
  6. //
  7. // Author List:
  8. // Sergey Merts
  9. //
  10. //--------------------------------------------------------------------
  11. #ifndef MPDTPCDIGIT_HH
  12. #define MPDTPCDIGIT_HH
  13. #include <TNamed.h>
  14. class MpdTpcDigit : public TNamed {
  15. public:
  16. MpdTpcDigit();
  17. MpdTpcDigit(MpdTpcDigit* digit);
  18. MpdTpcDigit(Int_t ori, Int_t pad, Int_t row, Int_t bin, Int_t sec, Float_t adc);
  19. virtual ~MpdTpcDigit();
  20. const Int_t GetOrigin () const {return fOrigin;}
  21. const Int_t GetPad () const {return fPad;}
  22. const Int_t GetRow () const {return fRow;}
  23. const Int_t GetTimeBin () const {return fTimeBin;}
  24. const Float_t GetAdc () const {return fAdc;}
  25. const Int_t GetSector () const {return fSector;}
  26. void SetOrigin (Int_t ori) {fOrigin = ori;}
  27. void SetPad (Int_t pad) {fPad = pad;}
  28. void SetRow (Int_t row) {fRow = row;}
  29. void SetTimeBin (Int_t bin) {fTimeBin = bin;}
  30. void SetAdc (Float_t adc) {fAdc = adc;}
  31. void SetSector (Int_t sec) {fSector = sec;}
  32. private:
  33. Int_t fPad;
  34. Int_t fRow;
  35. Int_t fTimeBin;
  36. Int_t fSector;
  37. Float_t fAdc;
  38. Int_t fOrigin;
  39. ClassDef(MpdTpcDigit, 1)
  40. };
  41. #endif
  42. //--------------------------------------------------------------
  43. // $Log$
  44. //--------------------------------------------------------------