CbmRoot
gDpbMessv100.h File Reference
#include <iostream>
#include <stdint.h>
Include dependency graph for gDpbMessv100.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  gdpbv100::Message
 
class  gdpbv100::FullMessage
 

Namespaces

 gdpbv100
 

Enumerations

enum  gdpbv100::MessageTypes {
  gdpbv100::MSG_HIT = 0, gdpbv100::MSG_EPOCH = 1, gdpbv100::MSG_SLOWC = 2, gdpbv100::MSG_SYST = 3,
  gdpbv100::MSG_STAR_TRI_A = 4, gdpbv100::MSG_STAR_TRI_B = 5, gdpbv100::MSG_STAR_TRI_C = 6, gdpbv100::MSG_STAR_TRI_D = 7
}
 
enum  gdpbv100::SysMessageTypes { gdpbv100::SYS_GET4_ERROR = 0, gdpbv100::SYS_GDPB_UNKWN, gdpbv100::SYS_GET4_SYNC_MISS, gdpbv100::SYS_PATTERN }
 
enum  gdpbv100::PattMessageTypes { gdpbv100::PATT_MISSMATCH = 0, gdpbv100::PATT_ENABLE = 1, gdpbv100::PATT_RESYNC = 2, gdpbv100::PATT_STATUS = 3 }
 
enum  gdpbv100::MessagePrintMask { gdpbv100::msg_print_Prefix = 1, gdpbv100::msg_print_Data = 2, gdpbv100::msg_print_Hex = 4, gdpbv100::msg_print_Human = 8 }
 
enum  gdpbv100::MessagePrintType { gdpbv100::msg_print_Cout = 1, gdpbv100::msg_print_FairLog = 2, gdpbv100::msg_print_File = 3 }
 
enum  gdpbv100::Get4Message32bSlC { gdpbv100::GET4_32B_SLC_SCALER = 0, gdpbv100::GET4_32B_SLC_DEADT = 1, gdpbv100::GET4_32B_SLC_SPIREAD = 2, gdpbv100::GET4_32B_SLC_START_SEU = 3 }
 
enum  gdpbv100::Get4Message32bErrors {
  gdpbv100::GET4_V2X_ERR_READ_INIT = 0x00, gdpbv100::GET4_V2X_ERR_SYNC = 0x01, gdpbv100::GET4_V2X_ERR_EP_CNT_SYNC = 0x02, gdpbv100::GET4_V2X_ERR_EP = 0x03,
  gdpbv100::GET4_V2X_ERR_FIFO_WRITE = 0x04, gdpbv100::GET4_V2X_ERR_LOST_EVT = 0x05, gdpbv100::GET4_V2X_ERR_CHAN_STATE = 0x06, gdpbv100::GET4_V2X_ERR_TOK_RING_ST = 0x07,
  gdpbv100::GET4_V2X_ERR_TOKEN = 0x08, gdpbv100::GET4_V2X_ERR_READOUT_ERR = 0x09, gdpbv100::GET4_V2X_ERR_SPI = 0x0A, gdpbv100::GET4_V2X_ERR_DLL_LOCK = 0x0B,
  gdpbv100::GET4_V2X_ERR_DLL_RESET = 0x0C, gdpbv100::GET4_V2X_ERR_TOT_OVERWRT, gdpbv100::GET4_V2X_ERR_TOT_RANGE = 0x12, gdpbv100::GET4_V2X_ERR_EVT_DISCARD = 0x13,
  gdpbv100::GET4_V2X_ERR_ADD_RIS_EDG = 0x14, gdpbv100::GET4_V2X_ERR_UNPAIR_FALL = 0x15, gdpbv100::GET4_V2X_ERR_SEQUENCE_ER = 0x16, gdpbv100::GET4_V2X_ERR_EPOCH_OVERF,
  gdpbv100::GET4_V2X_ERR_UNKNOWN = 0x7F
}
 

Variables

const double gdpbv100::kdClockCycleSize = 6250.0
 
const double gdpbv100::kdClockCycleSizeNs = kdClockCycleSize / 1000.0
 
const double gdpbv100::kdTotBinSize = 50.0
 
const uint32_t gdpbv100::kuFineTime = 0x0000007F
 
const uint32_t gdpbv100::kuFtShift = 0
 
const uint32_t gdpbv100::kuCoarseTime = 0x0007FF80
 
const uint32_t gdpbv100::kuCtShift = 7
 
const uint32_t gdpbv100::kuCtSize = 12
 
const uint32_t gdpbv100::kuFineCounterSize = ((kuFineTime >> kuFtShift) + 1)
 
const uint32_t gdpbv100::kuCoarseCounterSize = ((kuCoarseTime >> kuCtShift) + 1)
 
const uint32_t gdpbv100::kuCoarseOverflowTest
 
const uint32_t gdpbv100::kuTotCounterSize = 256
 
const double gdpbv100::kdFtSize = kuFineCounterSize
 
const double gdpbv100::kdFtBinsNb = 112.
 
const double gdpbv100::kdBinSize = kdClockCycleSize / kdFtBinsNb
 
const uint32_t gdpbv100::kuEpochInBins = kuCoarseCounterSize * kdFtBinsNb
 
const double gdpbv100::kdEpochInPs
 
const double gdpbv100::kdEpochInNs = kdEpochInPs / 1000.0
 
const uint32_t gdpbv100::kuEpochCounterSz = 0x7FFFFFFF
 
const uint64_t gdpbv100::kulEpochCycleBins
 
const double gdpbv100::kdEpochCycleInS
 
const uint64_t gdpbv100::kulEpochCycleFieldSz = 0x1FFFFF
 
const uint32_t gdpbv100::kuChipIdMergedEpoch = 255
 
const uint32_t gdpbv100::kuFeePulserChannel
 
const uint32_t gdpbv100::kuFeePulserChannelDiam