/* * CbmRichDigi.h * * Created on: Dec 17, 2015 * Author: slebedev * Modified on: Mar 25, 2019 * e.ovcharenko */ //TODO implement copy constructor and operator= ? #include "CbmDefs.h" #include "CbmDigi.h" #ifndef DATA_RICH_CBMRICHDIGI_H_ #define DATA_RICH_CBMRICHDIGI_H_ class CbmRichDigi : public CbmDigi { public: CbmRichDigi(); CbmRichDigi(Int_t addr, Double_t time, Double_t tot); virtual ~CbmRichDigi(); /* * \brief Inherited from CbmDigi * @value Unique address of pixel channel */ virtual Int_t GetAddress() const { return fAddress; } /* * \brief Inherited from CbmDigi * @value System identifier (enum DetectorId) */ virtual Int_t GetSystemId() const { return kRich; } /* * \brief Inherited from CbmDigi * @value Time [ns] */ virtual Double_t GetTime() const { return fTime; } /* * \brief Get Time-over-threshold * @value Time-over-threshold, pulse width [ns] */ virtual Double_t GetToT() const { return fToT; } /* * \brief Set pixel Address */ void SetAddress(Int_t address) { fAddress = address; } /* * \brief Set pixel Address */ void SetTime(Double_t time) { fTime = time; } std::string ToString() const { return std::string{""}; } private: /** * \brief Unique pixel address */ Int_t fAddress; /** * \brief Leading (rising) edge time */ Double_t fTime; /** * \brief Time-over-threshold, pulse width */ Double_t fToT; ClassDef(CbmRichDigi, 2); }; #endif /* DATA_RICH_CBMRICHDIGI_H_ */