#include "IDigit.hxx" ClassImp(COMET::IDigit); COMET::IDigit::IDigit() {} COMET::IDigit::IDigit(const COMET::IChannelId& channel) : fChannelId(channel) {} COMET::IDigit::IDigit(const COMET::IChannelId& channel, COMET::ITrigger* trigger) : fChannelId(channel), fTrigger(COMET::IHandle(trigger, false)) // Don't give the ownership {} COMET::IDigit::~IDigit() { } const COMET::IChannelId& COMET::IDigit::GetChannelId() const { return fChannelId; } const COMET::IHandle& COMET::IDigit::GetTrigger() const { return fTrigger; } void COMET::IDigit::ls(Option_t* opt) const { TROOT::IncreaseDirLevel(); TROOT::IndentLevel(); std::cout << "Ch: " << GetChannelId(); if(fTrigger) std::cout << ", related to the triggerId: " << fTrigger->GetTriggerId(); std::cout << std::endl; TROOT::DecreaseDirLevel(); }