StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Protected Attributes | List of all members
gdpbv100::FullMessage Class Reference
Inheritance diagram for gdpbv100::FullMessage:
gdpbv100::Message

Public Member Functions

 FullMessage (const Message &src, uint64_t uEpIn=0)
 
 FullMessage (const FullMessage &src)
 
void assign (const FullMessage &src)
 
FullMessageoperator= (const FullMessage &src)
 
bool operator< (const FullMessage &other) const
 strict weak ordering operator, including epoch for both messages
 
void reset ()
 
uint64_t getExtendedEpoch () const
 
double GetFullTimeNs ()
 
void PrintMessage (unsigned outType=msg_print_Cout, unsigned kind=msg_print_Human) const
 
- Public Member Functions inherited from gdpbv100::Message
 Message (const Message &src)
 
 Message (uint64_t dataIn)
 
void assign (const Message &src)
 
Messageoperator= (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
 

Protected Attributes

uint64_t fulExtendedEpoch
 
- Protected Attributes inherited from gdpbv100::Message
uint64_t data
 

Additional Inherited Members

- Static Public Member Functions inherited from gdpbv100::Message
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.
 

Detailed Description

Definition at line 357 of file StETofMessageFormat.h.


The documentation for this class was generated from the following files: