#include "ICDCDigit.hxx" ClassImp(COMET::ICDCDigit); //********************************************** COMET::ICDCDigit::ICDCDigit() {} //********************************************** //********************************************** COMET::ICDCDigit::ICDCDigit(COMET::IChannelId chan, short time, std::vector adc) : IDigit(chan), fFirstTimeSample(time), fADCs(adc) {} //********************************************** //********************************************** COMET::ICDCDigit::~ICDCDigit() {} //********************************************** //********************************************** int COMET::ICDCDigit::GetFirstTimeSample() const { //********************************************** return fFirstTimeSample; } //********************************************** int COMET::ICDCDigit::GetNumberOfTimeSamples() const { //********************************************** return fADCs.size(); } //********************************************** int COMET::ICDCDigit::GetADC(unsigned int t) const { //********************************************** if (t>= 0 && t COMET::ICDCDigit::GetADCs() const { //********************************************** return fADCs; } void COMET::ICDCDigit::ls(Option_t* opt) const { TROOT::IncreaseDirLevel(); TROOT::IndentLevel(); std::cout << GetChannelId() << " T: (" << GetFirstTimeSample() << " (" << GetNumberOfTimeSamples() << ")" << std::endl; TROOT::DecreaseDirLevel(); }