#ifndef TCDCDigit_hxx_seen #define TCDCDigit_hxx_seen #include #include #include #include namespace COMET { class ICDCDigit; } /// Digit for CDC based detectors. This holds the actual digitization data /// for a CDC channel. class COMET::ICDCDigit : public IDigit { public: ICDCDigit (); virtual ~ICDCDigit(); /// Construct a digit for a particular channel and cycle number. ICDCDigit(COMET::IChannelId chan, short time, std::vector adcs); /// Get the first time bin int GetFirstTimeSample() const; // number of time bins in this digit int GetNumberOfTimeSamples() const; /// Get the ADC value for a specific time bin int GetADC(unsigned int t) const; /// vector of ADC counts std::vector GetADCs() const; /// Print the digit information. virtual void ls(Option_t* opt = "") const; private: /// the first time bin of the pulse short fFirstTimeSample; /// vector of ADC counts std::vector fADCs; ClassDef(ICDCDigit,1); }; #endif