CbmRoot
stsxyter Namespace Reference

Classes

class  FinalHit
 
class  Message
 
struct  MessField
 

Enumerations

enum  MessType : uint16_t {
  MessType::Dummy, MessType::Hit, MessType::TsMsb, MessType::Epoch,
  MessType::Status, MessType::Empty, MessType::EndOfMs
}
 Message types. More...
 
enum  MessSubType : uint16_t { MessSubType::TsMsb = 0, MessSubType::Epoch = 1, MessSubType::Status = 2, MessSubType::Empty = 3 }
 Non-hit Message sub-types. More...
 
enum  MessagePrintMask : uint16_t { MessagePrintMask::msg_print_Prefix = (0x1 << 0), MessagePrintMask::msg_print_Data = (0x1 << 1), MessagePrintMask::msg_print_Hex = (0x1 << 2), MessagePrintMask::msg_print_Human = (0x1 << 3) }
 Printout control. More...
 

Functions

static const MessField kFieldLinkIndex (kusPosLinkIndex, kusLenLinkIndex)
 Fields Info. More...
 
static const MessField kFieldNotHitFlag (kusPosNotHitFlag, kusLenNotHitFlag)
 
static const MessField kFieldHitChannel (kusPosHitChannel, kusLenHitChannel)
 
static const MessField kFieldHitAdc (kusPosHitAdc, kusLenHitAdc)
 
static const MessField kFieldHitTsFull (kusPosHitTs, kusLenHitTsFull)
 
static const MessField kFieldHitTsOver (kusPosHitTsOver, kusLenHitTsOver)
 
static const MessField kFieldHitTs (kusPosHitTs, kusLenHitTs)
 
static const MessField kFieldHitEmFlag (kusPosHitEmFlag, kusLenHitEmFlag)
 
static const MessField kFieldSubtype (kusPosSubtype, kusLenSubtype)
 
static const MessField kFieldTsMsbVal (kusPosTsMsbVal, kusLenTsMsbVal)
 
static const MessField kFieldTsMsbValBinning (kusPosTsMsbVal, kusLenTsMsbValBinning)
 
static const MessField kFieldEpochVal (kusPosEpochVal, kusLenEpochVal)
 
static const MessField kFieldStatLinkId (kusPosStatLinkId, kusLenStatLinkId)
 
static const MessField kFieldStatSxTs (kusPosStatSxTs, kusLenStatSxTs)
 
static const MessField kFieldStatStatus (kusPosStatStatus, kusLenStatStatus)
 
static const MessField kFieldStatDpbTs (kusPosStatDpbTs, kusLenStatDpbTs)
 
static const MessField kFieldStatCpFlag (kusPosStatCpFlag, kusLenStatCpFlag)
 
static const MessField kFieldEmptyFlag (kusPosEmptyFlag, kusLenEmptyFlag)
 
static const MessField kFieldMsErrFlag (kusPosMsErrFlag, kusLenMsErrFlag)
 
static const MessField kFieldMsErrType (kusPosMsErrType, kusLenMsErrType)
 

Variables

static ENABLE_BITMASK_OPERATORS(stsxyter::MessagePrintMask) enum class MsErrorFlags const uint16_t kusPosNotHitFlag = 31
 MS error flags. More...
 
static const uint16_t kusPosLinkIndex = 22
 
static const uint16_t kusPosHitChannel = 15
 
static const uint16_t kusPosHitAdc = 10
 
static const uint16_t kusPosHitTsOver = 9
 
static const uint16_t kusPosHitTs = 1
 
static const uint16_t kusPosHitEmFlag = 0
 
static const uint16_t kusPosSubtype = 29
 
static const uint16_t kusPosTsMsbVal = 0
 
static const uint16_t kusPosEpochVal = 0
 
static const uint16_t kusPosStatLinkId = 20
 
static const uint16_t kusPosStatSxTs = 14
 
static const uint16_t kusPosStatStatus = 10
 
static const uint16_t kusPosStatDpbTs = 1
 
static const uint16_t kusPosStatCpFlag = 0
 
static const uint16_t kusPosEmptyFlag = 28
 
static const uint16_t kusPosMsErrType = 1
 
static const uint16_t kusPosMsErrFlag = 0
 
static const uint16_t kusLenNotHitFlag = 1
 Fields length (bits) More...
 
static const uint16_t kusLenLinkIndex = 9
 
static const uint16_t kusLenHitChannel = 7
 
static const uint16_t kusLenHitAdc = 5
 
static const uint16_t kusLenHitTsFull
 
static const uint16_t kusLenHitTsOver = 0
 
static const uint16_t kusLenHitTs = 9
 
static const uint16_t kusLenHitEmFlag = 1
 
static const uint16_t kusLenSubtype = 2
 
static const uint16_t kusLenTsMsbVal = 22
 
static const uint16_t kusLenTsMsbValBinning = 29
 
static const uint16_t kusLenEpochVal = 29
 
static const uint16_t kusLenStatLinkId = 9
 
static const uint16_t kusLenStatSxTs = 6
 
static const uint16_t kusLenStatStatus = 4
 
static const uint16_t kusLenStatDpbTs = 9
 
static const uint16_t kusLenStatCpFlag = 1
 
static const uint16_t kusLenEmptyFlag = 1
 
static const uint16_t kusLenMsErrType = 4
 
static const uint16_t kusLenMsErrFlag = 1
 
static const uint32_t kuHitNbAdcBins
 Status/properties constants. More...
 
static const uint32_t kuHitNbTsBins
 
static const uint32_t kuHitNbOverBins
 
static const uint32_t kuTsMsbNbTsBins
 
static const uint64_t kulTsCycleNbBins
 
static const uint16_t kusMaskTsMsbOver = (1 << kusLenHitTsOver) - 1
 
static const double kdClockCycleNs
 
static const uint32_t kuHitNbTsBinsBinning = 1 << 10
 
static const uint64_t kulTsCycleNbBinsBinning
 

Enumeration Type Documentation

◆ MessagePrintMask

enum stsxyter::MessagePrintMask : uint16_t
strong

Printout control.

Enumerator
msg_print_Prefix 
msg_print_Data 
msg_print_Hex 
msg_print_Human 

Definition at line 44 of file StsXyterMessage.h.

◆ MessSubType

enum stsxyter::MessSubType : uint16_t
strong

Non-hit Message sub-types.

Enumerator
TsMsb 
Epoch 
Status 
Empty 

Definition at line 37 of file StsXyterMessage.h.

◆ MessType

enum stsxyter::MessType : uint16_t
strong

Message types.

Enumerator
Dummy 
Hit 
TsMsb 
Epoch 
Status 
Empty 
EndOfMs 

Definition at line 27 of file StsXyterMessage.h.

Function Documentation

◆ kFieldEmptyFlag()

static const MessField stsxyter::kFieldEmptyFlag ( kusPosEmptyFlag  ,
kusLenEmptyFlag   
)
static

◆ kFieldEpochVal()

static const MessField stsxyter::kFieldEpochVal ( kusPosEpochVal  ,
kusLenEpochVal   
)
static

◆ kFieldHitAdc()

static const MessField stsxyter::kFieldHitAdc ( kusPosHitAdc  ,
kusLenHitAdc   
)
static

◆ kFieldHitChannel()

static const MessField stsxyter::kFieldHitChannel ( kusPosHitChannel  ,
kusLenHitChannel   
)
static

◆ kFieldHitEmFlag()

static const MessField stsxyter::kFieldHitEmFlag ( kusPosHitEmFlag  ,
kusLenHitEmFlag   
)
static

◆ kFieldHitTs()

◆ kFieldHitTsFull()

static const MessField stsxyter::kFieldHitTsFull ( kusPosHitTs  ,
kusLenHitTsFull   
)
static

◆ kFieldHitTsOver()

static const MessField stsxyter::kFieldHitTsOver ( kusPosHitTsOver  ,
kusLenHitTsOver   
)
static

◆ kFieldLinkIndex()

static const MessField stsxyter::kFieldLinkIndex ( kusPosLinkIndex  ,
kusLenLinkIndex   
)
static

◆ kFieldMsErrFlag()

static const MessField stsxyter::kFieldMsErrFlag ( kusPosMsErrFlag  ,
kusLenMsErrFlag   
)
static

◆ kFieldMsErrType()

static const MessField stsxyter::kFieldMsErrType ( kusPosMsErrType  ,
kusLenMsErrType   
)
static

◆ kFieldNotHitFlag()

static const MessField stsxyter::kFieldNotHitFlag ( kusPosNotHitFlag  ,
kusLenNotHitFlag   
)
static

◆ kFieldStatCpFlag()

static const MessField stsxyter::kFieldStatCpFlag ( kusPosStatCpFlag  ,
kusLenStatCpFlag   
)
static

◆ kFieldStatDpbTs()

static const MessField stsxyter::kFieldStatDpbTs ( kusPosStatDpbTs  ,
kusLenStatDpbTs   
)
static

◆ kFieldStatLinkId()

static const MessField stsxyter::kFieldStatLinkId ( kusPosStatLinkId  ,
kusLenStatLinkId   
)
static

◆ kFieldStatStatus()

static const MessField stsxyter::kFieldStatStatus ( kusPosStatStatus  ,
kusLenStatStatus   
)
static

◆ kFieldStatSxTs()

static const MessField stsxyter::kFieldStatSxTs ( kusPosStatSxTs  ,
kusLenStatSxTs   
)
static

◆ kFieldSubtype()

static const MessField stsxyter::kFieldSubtype ( kusPosSubtype  ,
kusLenSubtype   
)
static

◆ kFieldTsMsbVal()

static const MessField stsxyter::kFieldTsMsbVal ( kusPosTsMsbVal  ,
kusLenTsMsbVal   
)
static

◆ kFieldTsMsbValBinning()

static const MessField stsxyter::kFieldTsMsbValBinning ( kusPosTsMsbVal  ,
kusLenTsMsbValBinning   
)
static

Variable Documentation

◆ kdClockCycleNs

const double stsxyter::kdClockCycleNs
static
Initial value:
=
3.125

Definition at line 156 of file StsXyterMessage.h.

Referenced by CbmMcbm2018MonitorAlgoHodo::CreateHistograms(), CbmCosy2018MonitorPulser::CreateHistograms(), CbmMcbm2018MonitorStsSync::CreateHistograms(), CbmMcbm2018MonitorMcbmPulser::CreateMcbmHistograms(), CbmMcbm2018MonitorMcbmSync::CreateMcbmHistograms(), CbmMcbm2018UnpackerAlgoMuch::CreateMuchDigi(), CbmMcbm2018MonitorSts::DoUnpack(), CbmCosy2018MonitorPulser::DoUnpack(), CbmMcbm2018MonitorStsSync::DoUnpack(), CbmMcbm2018MonitorMcbmRate::DoUnpack(), CbmMcbm2018MonitorMcbmSync::DoUnpack(), CbmMcbm2018MonitorMuch::DoUnpack(), CbmMcbm2018MonitorMuchLite::DoUnpack(), CbmMcbm2018MonitorMcbmPulser::DoUnpack(), CbmMcbm2018MonitorAlgoHodo::FillHistograms(), CbmCosy2018MonitorPulser::FillHitInfo(), CbmMcbm2018MonitorStsSync::FillHitInfo(), CbmMcbm2018MonitorMuchLite::FillHitInfo(), CbmMcbm2018MonitorMuch::FillHitInfo(), CbmMcbm2018MonitorSts::FillHitInfo(), CbmMcbm2018UnpackerAlgoHodo::ProcessHitInfo(), CbmMcbm2018UnpackerAlgoMuch::ProcessHitInfo(), CbmMcbm2018UnpackerAlgoSts::ProcessHitInfo(), CbmMcbm2018MonitorAlgoHodo::ProcessHitInfo(), CbmMcbm2018MonitorAlgoHodo::ProcessMs(), CbmMcbm2018UnpackerAlgoHodo::ProcessMs(), CbmMcbm2018UnpackerAlgoMuch::ProcessMs(), CbmMcbm2018UnpackerAlgoSts::ProcessMs(), CbmMcbm2018MonitorMuchLite::ProcessMuchMs(), CbmMcbm2018UnpackerAlgoMuch::ProcessStatusInfo(), CbmMcbm2018UnpackerAlgoSts::ProcessStatusInfo(), CbmMcbm2018MonitorMcbmRate::ProcessStsMs(), CbmMcbm2018MonitorMcbmPulser::ProcessStsMs(), CbmMcbm2018MonitorMcbmSync::ProcessStsMs(), CbmMcbm2018MonitorMuch::ProcessStsMs(), CbmMcbm2018MonitorSts::ProcessStsMs(), CbmMcbm2018UnpackerAlgoHodo::ProcessTs(), and CbmMcbm2018UnpackerAlgoSts::ProcessTs().

◆ kuHitNbAdcBins

◆ kuHitNbOverBins

const uint32_t stsxyter::kuHitNbOverBins
static
Initial value:
=

Definition at line 148 of file StsXyterMessage.h.

◆ kuHitNbTsBins

◆ kuHitNbTsBinsBinning

◆ kulTsCycleNbBins

◆ kulTsCycleNbBinsBinning

◆ kusLenEmptyFlag

const uint16_t stsxyter::kusLenEmptyFlag = 1
static

Definition at line 110 of file StsXyterMessage.h.

◆ kusLenEpochVal

const uint16_t stsxyter::kusLenEpochVal = 29
static

Definition at line 102 of file StsXyterMessage.h.

◆ kusLenHitAdc

const uint16_t stsxyter::kusLenHitAdc = 5
static

Definition at line 90 of file StsXyterMessage.h.

◆ kusLenHitChannel

const uint16_t stsxyter::kusLenHitChannel = 7
static

Definition at line 89 of file StsXyterMessage.h.

◆ kusLenHitEmFlag

const uint16_t stsxyter::kusLenHitEmFlag = 1
static

Definition at line 95 of file StsXyterMessage.h.

◆ kusLenHitTs

const uint16_t stsxyter::kusLenHitTs = 9
static

Definition at line 94 of file StsXyterMessage.h.

◆ kusLenHitTsFull

const uint16_t stsxyter::kusLenHitTsFull
static
Initial value:
=
9

Definition at line 91 of file StsXyterMessage.h.

◆ kusLenHitTsOver

const uint16_t stsxyter::kusLenHitTsOver = 0
static

Definition at line 93 of file StsXyterMessage.h.

◆ kusLenLinkIndex

const uint16_t stsxyter::kusLenLinkIndex = 9
static

Definition at line 87 of file StsXyterMessage.h.

◆ kusLenMsErrFlag

const uint16_t stsxyter::kusLenMsErrFlag = 1
static

Definition at line 112 of file StsXyterMessage.h.

◆ kusLenMsErrType

const uint16_t stsxyter::kusLenMsErrType = 4
static

Definition at line 111 of file StsXyterMessage.h.

◆ kusLenNotHitFlag

const uint16_t stsxyter::kusLenNotHitFlag = 1
static

Fields length (bits)

Definition at line 86 of file StsXyterMessage.h.

◆ kusLenStatCpFlag

const uint16_t stsxyter::kusLenStatCpFlag = 1
static

Definition at line 108 of file StsXyterMessage.h.

◆ kusLenStatDpbTs

const uint16_t stsxyter::kusLenStatDpbTs = 9
static

Definition at line 107 of file StsXyterMessage.h.

◆ kusLenStatLinkId

const uint16_t stsxyter::kusLenStatLinkId = 9
static

Definition at line 104 of file StsXyterMessage.h.

◆ kusLenStatStatus

const uint16_t stsxyter::kusLenStatStatus = 4
static

◆ kusLenStatSxTs

const uint16_t stsxyter::kusLenStatSxTs = 6
static

Definition at line 105 of file StsXyterMessage.h.

◆ kusLenSubtype

const uint16_t stsxyter::kusLenSubtype = 2
static

Definition at line 97 of file StsXyterMessage.h.

◆ kusLenTsMsbVal

const uint16_t stsxyter::kusLenTsMsbVal = 22
static

Definition at line 99 of file StsXyterMessage.h.

◆ kusLenTsMsbValBinning

const uint16_t stsxyter::kusLenTsMsbValBinning = 29
static

Definition at line 100 of file StsXyterMessage.h.

◆ kusMaskTsMsbOver

const uint16_t stsxyter::kusMaskTsMsbOver = (1 << kusLenHitTsOver) - 1
static

Definition at line 155 of file StsXyterMessage.h.

◆ kusPosEmptyFlag

const uint16_t stsxyter::kusPosEmptyFlag = 28
static

Definition at line 81 of file StsXyterMessage.h.

◆ kusPosEpochVal

const uint16_t stsxyter::kusPosEpochVal = 0
static

Definition at line 73 of file StsXyterMessage.h.

◆ kusPosHitAdc

const uint16_t stsxyter::kusPosHitAdc = 10
static

Definition at line 64 of file StsXyterMessage.h.

◆ kusPosHitChannel

const uint16_t stsxyter::kusPosHitChannel = 15
static

Definition at line 63 of file StsXyterMessage.h.

◆ kusPosHitEmFlag

const uint16_t stsxyter::kusPosHitEmFlag = 0
static

Definition at line 67 of file StsXyterMessage.h.

◆ kusPosHitTs

const uint16_t stsxyter::kusPosHitTs = 1
static

Definition at line 66 of file StsXyterMessage.h.

◆ kusPosHitTsOver

const uint16_t stsxyter::kusPosHitTsOver = 9
static

Definition at line 65 of file StsXyterMessage.h.

◆ kusPosLinkIndex

const uint16_t stsxyter::kusPosLinkIndex = 22
static

Definition at line 61 of file StsXyterMessage.h.

◆ kusPosMsErrFlag

const uint16_t stsxyter::kusPosMsErrFlag = 0
static

Definition at line 83 of file StsXyterMessage.h.

◆ kusPosMsErrType

const uint16_t stsxyter::kusPosMsErrType = 1
static

Definition at line 82 of file StsXyterMessage.h.

◆ kusPosNotHitFlag

ENABLE_BITMASK_OPERATORS (stsxyter::MessagePrintMask) enum class MsErrorFlags const uint16_t stsxyter::kusPosNotHitFlag = 31
static

MS error flags.

Fields position (Start bit index)

Definition at line 60 of file StsXyterMessage.h.

◆ kusPosStatCpFlag

const uint16_t stsxyter::kusPosStatCpFlag = 0
static

Definition at line 79 of file StsXyterMessage.h.

◆ kusPosStatDpbTs

const uint16_t stsxyter::kusPosStatDpbTs = 1
static

Definition at line 78 of file StsXyterMessage.h.

◆ kusPosStatLinkId

const uint16_t stsxyter::kusPosStatLinkId = 20
static

Definition at line 75 of file StsXyterMessage.h.

◆ kusPosStatStatus

const uint16_t stsxyter::kusPosStatStatus = 10
static

Definition at line 77 of file StsXyterMessage.h.

◆ kusPosStatSxTs

const uint16_t stsxyter::kusPosStatSxTs = 14
static

Definition at line 76 of file StsXyterMessage.h.

◆ kusPosSubtype

const uint16_t stsxyter::kusPosSubtype = 29
static

Definition at line 69 of file StsXyterMessage.h.

◆ kusPosTsMsbVal

const uint16_t stsxyter::kusPosTsMsbVal = 0
static

Definition at line 71 of file StsXyterMessage.h.

◆ kuTsMsbNbTsBins

const uint32_t stsxyter::kuTsMsbNbTsBins
static
Initial value:
=
(0 < kusLenTsMsbVal ? 1 << kusLenTsMsbVal : 0)

Definition at line 150 of file StsXyterMessage.h.

stsxyter::kuTsMsbNbTsBins
static const uint32_t kuTsMsbNbTsBins
Definition: StsXyterMessage.h:150
stsxyter::kusLenHitTsOver
static const uint16_t kusLenHitTsOver
Definition: StsXyterMessage.h:93
stsxyter::kusLenTsMsbVal
static const uint16_t kusLenTsMsbVal
Definition: StsXyterMessage.h:99
stsxyter::kuHitNbTsBins
static const uint32_t kuHitNbTsBins
Definition: StsXyterMessage.h:146
stsxyter::kusLenHitTs
static const uint16_t kusLenHitTs
Definition: StsXyterMessage.h:94
stsxyter::kuHitNbTsBinsBinning
static const uint32_t kuHitNbTsBinsBinning
Definition: StsXyterMessage.h:160
stsxyter::kusLenHitAdc
static const uint16_t kusLenHitAdc
Definition: StsXyterMessage.h:90
stsxyter::kusLenTsMsbValBinning
static const uint16_t kusLenTsMsbValBinning
Definition: StsXyterMessage.h:100