#ifndef TCTHDigit_hxx_seen #define TCTHDigit_hxx_seen #include #include namespace COMET { class ICTHDigit; } /// Digit for CTH based detectors. This holds the actual digitization data /// for a CTH channel. class COMET::ICTHDigit : public IWaveformDigit { public: ICTHDigit (); virtual ~ICTHDigit(); /// Construct a digit for a particular channel and cycle number. ICTHDigit(const COMET::IChannelId& chanId, COMET::ITrigger* trigger, const int firstTimeTick, const TWfADC& wfAdcs, const std::vector& tdc); /// Construct a digit without tdc ICTHDigit(const COMET::IChannelId& chanId, COMET::ITrigger* trigger, const int firstTimeTick, const TWfADC& wfAdcs); /// Print the digit information. virtual void ls(Option_t* opt = "") const; /// Setter and Getter for TDC virtual void SetTDC(std::vector tdc) {fTDC = tdc;} unsigned int GetTDCSize() const {return fTDC.size();} std::vector GetTDC() const {return fTDC;} unsigned int GetTDCAt(unsigned int i) const { if (i fTDC; // TDC value w.r.t trigger ClassDef(ICTHDigit,2); }; #endif