StRoot
1
|
Public Member Functions | |
Message (const Message &src) | |
Message (uint64_t dataIn) | |
void | assign (const Message &src) |
Message & | operator= (const Message &src) |
void | reset () |
uint64_t | getData () const |
void | setData (uint64_t value) |
uint64_t | getFieldLong (uint32_t shift, uint32_t len) const |
uint32_t | getField (uint32_t shift, uint32_t len) const |
void | setField (uint32_t shift, uint32_t len, uint32_t value) |
void | setFieldLong (uint32_t shift, uint32_t len, uint64_t value) |
uint8_t | getBit (uint32_t shift) const |
void | setBit (uint32_t shift, uint8_t value) |
uint32_t | getFieldBE (uint32_t shift, uint32_t len) const |
uint8_t | getBitBE (uint32_t shift) const |
uint64_t | dataBE () const |
uint8_t | getMessageType () const |
Returns the message type. Valid for all message types. 4 bit. | |
void | setMessageType (uint8_t v) |
Sets the message type field in the current message. | |
uint16_t | getGdpbGenGdpbId () const |
void | setGdpbGenGdpbId (uint32_t v) |
uint16_t | getGdpbGenChipId () const |
void | setGdpbGenChipId (uint32_t v) |
uint16_t | getGdpbHitIs24b () const |
uint16_t | getGdpbHitChanId () const |
uint32_t | getGdpbHitFullTs () const |
uint16_t | getGdpbHitCoarse () const |
uint16_t | getGdpbHitFineTs () const |
bool | getGdpbHit24Edge () const |
bool | getGdpbHit32DllLck () const |
uint16_t | getGdpbHit32Tot () const |
bool | getGdpbEpLinkId () const |
uint32_t | getGdpbEpEpochNb () const |
bool | getGdpbEpSync () const |
bool | getGdpbEpDataLoss () const |
bool | getGdpbEpEpochLoss () const |
bool | getGdpbEpMissmatch () const |
uint32_t | getGdpbSlcMess () const |
uint32_t | getGdpbSlcChan () const |
uint32_t | getGdpbSlcEdge () const |
uint32_t | getGdpbSlcType () const |
uint32_t | getGdpbSlcData () const |
uint16_t | getGdpbSysSubType () const |
bool | getGdpbSysLinkId () const |
bool | getGdpbSysErrRoType () const |
uint16_t | getGdpbSysErrUnused () const |
uint16_t | getGdpbSysErrInfo () const |
uint16_t | getGdpbSysErrChanId () const |
bool | getGdpbSysErrEdge () const |
uint16_t | getGdpbSysErrData () const |
uint32_t | getGdpbSysUnkwData () const |
uint32_t | getGdpbSysFwErrResync () const |
uint16_t | getGdpbSysPattType () const |
uint16_t | getGdpbSysPattIndex () const |
uint32_t | getGdpbSysPattPattern () const |
uint16_t | getStarTrigMsgIndex () const |
uint64_t | getGdpbTsMsbStarA () const |
uint64_t | getGdpbTsLsbStarB () const |
uint64_t | getStarTsMsbStarB () const |
uint64_t | getStarTsMidStarC () const |
uint64_t | getStarTsLsbStarD () const |
uint32_t | getStarFillerD () const |
12 bits in between are set to 0 | |
uint32_t | getStarTrigCmdStarD () const |
uint32_t | getStarDaqCmdStarD () const |
uint32_t | getStarTokenStarD () const |
void | setGdpbEpEpochNb (uint32_t v) |
void | setGdpbSysSubType (uint16_t v) |
void | setGdpbSysPattType (uint16_t v) |
void | setGdpbSysPattIndex (uint16_t v) |
void | setGdpbSysPattPattern (uint32_t v) |
void | setStarTrigMsgIndex (uint8_t v) |
void | setGdpbTsMsbStarA (uint64_t fullGdpbTs) |
void | setGdpbTsLsbStarB (uint64_t fullGdpbTs) |
void | setStarTsMsbStarB (uint64_t fullStarTs) |
void | setStarTsMidStarC (uint64_t fullStarTs) |
void | setStarTsLsbStarD (uint64_t fullStarTs) |
void | setStarFillerD () |
12 bits in between are set to 0 | |
void | setStarTrigCmdStarD (uint8_t v) |
void | setStarDaqCmdStarD (uint8_t v) |
void | setStarTokenStarD (uint16_t v) |
bool | isHitMsg () const |
Returns true is message type is #MSG_HIT (Get4 hit data) | |
bool | isEpochMsg () const |
Returns true is message type is #MSG_EPOCH (epoch2 marker) | |
bool | isGet4SlCtrMsg () const |
Returns true is message type is #MSG_SLOWC (GET4 Slow Control) | |
bool | isSysMsg () const |
Returns true is message type is #MSG_SYST (system message) | |
bool | isStarTrigger () const |
Returns true is message type is #MSG_STAR_TRI_A, _B, _C, _D (STAR Trigger message) | |
void | printDataCout (unsigned kind=msg_print_Prefix|msg_print_Data, uint32_t epoch=0) const |
Print message in human readable format to cout. More... | |
void | printDataLog (unsigned kind=msg_print_Prefix|msg_print_Data, uint32_t epoch=0) const |
Print message in human readable format to the Fairroot logger. More... | |
void | printData (unsigned outType=msg_print_Cout, unsigned kind=msg_print_Human, uint32_t epoch=0, std::ostream &os=std::cout) const |
Print message in binary or human readable format to a stream. More... | |
uint64_t | getMsgFullTime (uint64_t epoch) const |
Returns expanded and adjusted time of message (in ns) | |
double | getMsgFullTimeD (uint64_t epoch) const |
Returns expanded and adjusted time of message in double (in ns) | |
bool | operator< (const gdpbv100::Message &other) const |
strict weak ordering operator, assumes same epoch for both messages | |
bool | operator== (const gdpbv100::Message &other) const |
equality operator, assumes same epoch for both messages | |
bool | operator!= (const gdpbv100::Message &other) const |
inequality operator, assumes same epoch for both messages | |
Static Public Member Functions | |
static uint64_t | FullTimeStamp (uint64_t epoch, uint32_t ts) |
Expanded timestamp for 160 MHz * 19 bit (12 + 7) epochs. | |
static uint64_t | CalcDistance (uint64_t start, uint64_t stop) |
Returns the time difference between two expanded time stamps. | |
static double | CalcDistanceD (double start, double stop) |
Returns the time difference between two expanded time stamps. | |
Protected Attributes | |
uint64_t | data |
Definition at line 158 of file StETofMessageFormat.h.
void gdpbv100::Message::printData | ( | unsigned | outType = msg_print_Cout , |
unsigned | kind = msg_print_Human , |
||
uint32_t | epoch = 0 , |
||
std::ostream & | os = std::cout |
||
) | const |
Print message in binary or human readable format to a stream.
Prints a one line representation of the message in to a stream, selected by outType. The stream is cout if outType is kFALSE and FairLogger if outType is kTRUE. The parameter kind is mask with 4 bits
If bit msg_print_Human in kind is not set, raw format output is generated. All data fields are shown in hexadecimal. This is the format of choice when chasing hardware problems at the bit level.
If bit msg_print_Human is set, a more human readable output is generated. The timestamp is shown as fully extended and adjusted time as returned by the getMsgFullTime(uint32_t) const method. All data fields are represented in decimal.
os | output stream |
kind | mask determing output format |
epoch | current epoch number (from last epoch message) |
Definition at line 219 of file StETofMessageFormat.cxx.
void gdpbv100::Message::printDataCout | ( | unsigned | kind = msg_print_Prefix | msg_print_Data , |
uint32_t | epoch = 0 |
||
) | const |
Print message in human readable format to cout.
Prints a one line representation of the message in to cout. See printData(std::ostream&, unsigned, uint32_t) const for full documentation.
Definition at line 173 of file StETofMessageFormat.cxx.
void gdpbv100::Message::printDataLog | ( | unsigned | kind = msg_print_Prefix | msg_print_Data , |
uint32_t | epoch = 0 |
||
) | const |
Print message in human readable format to the Fairroot logger.
Prints a one line representation of the message in to the Fairroot logger. TODO: Add coloring of possible See printData(std::ostream&, unsigned, uint32_t) const for full documentation.
Definition at line 187 of file StETofMessageFormat.cxx.