ROOT logo
HYDRA - THE HADES ANALYSIS PACKAGE » DATASOURCE » HTrb3TdcMessage

class HTrb3TdcMessage

Function Members (Methods)

Data Members

protected:
UInt_tfData
static UInt_tgFineMaxValue
static UInt_tgFineMinValue

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

HTrb3TdcMessage()
{}
HTrb3TdcMessage(UInt_t d)
{}
void assign(UInt_t d)
{ fData=d; }
UInt_t getKind() const
 Returns kind of the message
 If used for the hit message, four different values can be returned 
{ return fData & tdckind_Mask; }
Bool_t isHitMsg() const
 uncalibrated raw hit. may use extra information from preceding CalibMsg for fine time calibration
{ return getKind() == tdckind_Hit; }
Bool_t isHit1Msg() const
 calibrated format with replacing original fine counter
{ return getKind() == tdckind_Hit1;}
Bool_t isHit2Msg() const
 not used yet
{ return getKind() == tdckind_Hit2;}
Bool_t isEpochMsg() const
{ return getKind() == tdckind_Epoch; }
Bool_t isDebugMsg() const
{ return getKind() == tdckind_Debug; }
Bool_t isHeaderMsg() const
{ return getKind() == tdckind_Header; }
Bool_t isReservedMsg() const
{ return getKind() == tdckind_Reserved; }
Bool_t isCalibMsg() const
 extra calibration message: contains 1 or 2 calibrated fine time information
{ return getKind() == tdckind_Calib; }
UInt_t getEpochValue() const
 methods for epoch
 Return Epoch for epoch marker, 28 bit 
{ return fData & 0xFFFFFFF; }
UInt_t getEpochRes() const
 Get reserved bit for epoch, 1 bit 
{ return (fData >> 28) & 0x1; }
UInt_t getHitChannel() const
 methods for hit
 Returns hit channel ID 
{ return (fData >> 22) & 0x7F; }
UInt_t getHitTmCoarse() const
 Returns hit coarse time counter, 11 bit 
{ return fData & 0x7FF; }
UInt_t getHitTmFine() const
 Returns hit fine time counter, 10 bit 
{ return (fData >> 12) & 0x3FF; }
UInt_t getHitTmStamp() const
 Returns time stamp, which is simple combination coarse and fine counter 
{ return (getHitTmCoarse() << 10) | getHitTmFine(); }
UInt_t getHitEdge() const
 Returns hit edge 1 - rising, 0 - falling 
{ return (fData >> 11) & 0x1; }
Bool_t isHitRisingEdge() const
{ return getHitEdge() == 0x1; }
Bool_t isHitFallingEdge() const
{ return getHitEdge() == 0x0; }
UInt_t getHitReserved() const
 Returns hit reserved value, 2 bits 
{ return (fData >> 29) & 0x3; }
UInt_t getHeaderErr() const
 methods for header
 Return error bits of header message 
{ return fData & 0xFFFF; }
UInt_t getHeaderRes() const
 Return reserved bits of header message 
{ return (fData >> 16) & 0x1FFF; }
UInt_t getCalibFirst() const
 Return first value in calibration message 
{ return (fData & 0x3fff); }
UInt_t getCalibSecond() const
 Return second value in calibration message 
{ return ((fData >> 14) & 0x3fff);}
void print(Double_t tm = -1.)
Double_t coarseUnit()
{ return 5e-9; }
Double_t simpleFineCalibr(UInt_t fine)
void setFineLimits(UInt_t min, UInt_t max)
 Method set static limits, which are used for simple interpolation of time for fine counter