Belle II Software development
PXDRawDataDefinitions.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11namespace Belle2 {
17 namespace PXD {
22 enum EDHPFrameHeaderDataType { c_RAW = 0x0, c_ZSD = 0x5};
23
29 c_DHP_RAW = 0x0, // DHP memory dump ("pedestals")
30 c_DHP_ZSD = 0x5, // DHP zero supressed data
31 c_FCE_RAW = 0x1, // Clustered data
32 c_COMMODE = 0x6, // Common mode data
33 c_GHOST = 0x2, // Ghost frame, no data
34 // DHE envelope
35 c_DHE_START = 0x3, // DHE Start
36 c_DHE_END = 0x4, // DHE End
37 // DHC envelope
38 c_DHC_START = 0xB, // DHC Start
39 c_DHC_END = 0xC, // DHC End
40 // Onsen processed data, new
41 c_ONSEN_DHP = 0xD, // Onsen processed zero supressed DHP
42 c_ONSEN_FCE = 0x9, // Onsen processed clustered
43 c_ONSEN_ROI = 0xF, // Onsen ROIs (HLT+DATCON)
44 c_ONSEN_TRG = 0xE, // Trigger frame (the 1st frame)
45 // Free IDs are 0x7 0x8 0xA
46 c_UNUSED_7 = 0x7,
47 c_UNUSED_8 = 0x8,
48 c_UNUSED_A = 0xA,
49 };
50
57 c_DHESM_NO_ERROR = 0x0, // no errors
58 c_DHESM_MISS_DHP_FRM = 0x1, // missing DHPT frame
59 c_DHESM_TIMEOUT = 0x2, // timeout
60 c_DHESM_DHP_LINKDOWN = 0x3, // DHP link down
61 c_DHESM_DHP_MASKED = 0x4, // DHP masked
62 c_DHESM_EVTNR_MM = 0x5, // event number mismatch (between FSM_START and FSM_END; DHE error.)
63 c_DHESM_DHP_SIZE_OVERFLOW = 0x6, // DHPT frame bigger than maximum allowed, data truncated
65 };
66
67 }
69}
70
EDHPFrameHeaderDataType
Enums for DHP data modes in the DHP header.
EDHCFrameHeaderDataType
Enums for DHC data frame types.
EDHEStateMachineError
Enums for DHE DHP StateMachine Error States.
Abstract base class for different kinds of events.