85 fChannelToTimeFactor(0.1),
86 fTime(), fRefTime(0), fHasRefTime(
kFALSE), fNHits(0)
130 "`THcRawTdcHit::SetTime`: Trying to set too many hits! Only %d slots available.",
133 throw std::out_of_range(msg.
Data());
152 else if (iHit == 0) {
157 "`THcRawTdcHit::GetTimeRaw`: Trying to get hit %d where only %d hits available!",
160 throw std::out_of_range(msg.
Data());
180 "`THcRawTdcHit::GetRefTime`: Reference time not available!"
182 throw std::runtime_error(msg.
Data());
192 "`THcRawTdcHit::GetRefDiffTime`: Reference time not available!"
194 throw std::runtime_error(msg.
Data());
ClassImp(VDC::AnalyticTTDConv) using namespace std
Class representing a single raw TDC hit.
Int_t GetRefTime() const
Gets reference time. In channels.
Int_t GetTimeRaw(UInt_t iHit=0) const
Gets raw TDC time. In channels.
static const UInt_t fMaxNHits
void SetRefDiffTime(Int_t refDiffTime)
THcRawTdcHit()
Constructor.
void SetRefTime(Int_t refTime)
Sets reference time. In channels.
THcRawTdcHit & operator=(const THcRawTdcHit &right)
Assignment operator.
Int_t GetTime(UInt_t iHit=0) const
Gets TDC time. In channels.
virtual ~THcRawTdcHit()
Destructor.
UInt_t GetNHits() const
Gets the number of set hits.
Bool_t HasRefTime() const
Queries whether reference time has been set.
void SetTime(Int_t time)
Sets raw TDC time from the modules. In channels.
Int_t GetRefDiffTime() const
virtual void Clear(Option_t *opt="")
Clears variables before next event.
virtual void Clear(Option_t *="")
TObject & operator=(const TObject &rhs)
const char * Data() const