CMS 3D CMS Logo

TCDSRaw.h
Go to the documentation of this file.
1 #ifndef DATAFORMATS_TCDS_TCDSRAW_H
2 #define DATAFORMATS_TCDS_TCDSRAW_H
3 
4 //---------------------------------------------------------------------------
9 //---------------------------------------------------------------------------
10 
11 #include <cstdint>
12 
13 #pragma pack(push)
14 #pragma pack(1)
15 
16 namespace tcds {
17 
18  struct Sizes_v1
19  {
20  const uint8_t headerSize;
21  const uint8_t summarySize;
22  const uint8_t L1AhistSize;
23  const uint8_t BSTSize;
24  const uint8_t reserved0;
25  const uint8_t reserved1;
26  const uint8_t reserved2;
27  const uint8_t BGOSize;
28  };
29 
30  struct Header_v1
31  {
33  const uint32_t swVersion;
34  const uint32_t fwVersion;
35  const uint32_t reserved0;
36  const uint32_t recordVersion;
37  const uint32_t runNumber;
38  const uint32_t reserved1;
39  const uint32_t activePartitions2;
40  const uint32_t bstReceptionStatus;
41  const uint32_t activePartitions0;
42  const uint32_t activePartitions1;
43  const uint32_t nibble;
44  const uint32_t lumiSection;
45  const uint16_t nibblesPerLumiSection;
46  const uint16_t triggerTypeFlags;
47  const uint16_t reserved5;
48  const uint16_t inputs;
49  const uint16_t bxid;
50  const uint16_t orbitLow;
51  const uint32_t orbitHigh;
54  };
55 
56  struct L1aInfo_v1
57  {
58  const uint32_t orbitlow;
59  const uint16_t orbithigh;
60  const uint8_t reserved2;
61  const uint8_t ind0;
62  const uint16_t bxid;
63  const uint16_t reserved0;
64  const uint16_t reserved1;
65  const uint8_t eventtype;
66  const uint8_t ind1;
67  };
68 
69  const uint8_t l1aHistoryDepth_v1 = 16;
71  {
73  };
74 
75  struct BST_v1
76  {
77  const uint32_t gpstimelow;
78  const uint32_t gpstimehigh;
79  const uint32_t bireserved8_11;
80  const uint32_t bireserved12_15;
81  const uint16_t bstMaster;
82  const uint16_t turnCountLow;
83  const uint16_t turnCountHigh;
84  const uint16_t lhcFillLow;
85  const uint16_t lhcFillHigh;
86  const uint16_t beamMode;
87  const uint16_t particleTypes;
88  const uint16_t beamMomentum;
89  const uint32_t intensityBeam1;
90  const uint32_t intensityBeam2;
91  const uint32_t bireserved40_43;
92  const uint32_t bireserved44_47;
93  const uint32_t bireserved48_51;
94  const uint32_t bireserved52_55;
95  const uint32_t bireserved56_59;
96  const uint32_t bireserved60_63;
97  };
98 
99  struct LastBGo_v1
100  {
101  const uint32_t orbitlow;
102  const uint16_t orbithigh;
103  const uint16_t reserved;
104  };
105 
106  const uint8_t bgoCount_v1 = 64;
108  {
110  const struct LastBGo_v1 lastBGo[bgoCount_v1];
111  };
112 
113  struct Raw_v1
114  {
115  const struct Sizes_v1 sizes;
116  const struct Header_v1 header;
117  const struct L1aHistory_v1 l1aHistory;
118  const struct BST_v1 bst;
119  const struct BGoHistory_v1 bgoHistory;
120  };
121 
122 }
123 
124 #pragma pack(pop)
125 
126 #endif // DATAFORMATS_TCDS_TCDSRAW_H
const uint32_t bireserved44_47
Definition: TCDSRaw.h:92
const uint16_t nibblesPerLumiSection
Definition: TCDSRaw.h:45
const uint16_t beamMode
Definition: TCDSRaw.h:86
const uint16_t orbitLow
Definition: TCDSRaw.h:50
const uint32_t orbitlow
Definition: TCDSRaw.h:58
const uint32_t bireserved52_55
Definition: TCDSRaw.h:94
const uint16_t bxid
Definition: TCDSRaw.h:62
const uint64_t macAddress
Definition: TCDSRaw.h:32
const uint32_t lumiSection
Definition: TCDSRaw.h:44
const uint8_t reserved2
Definition: TCDSRaw.h:60
const uint8_t summarySize
Definition: TCDSRaw.h:21
const uint16_t bxid
Definition: TCDSRaw.h:49
const uint16_t turnCountLow
Definition: TCDSRaw.h:82
const uint32_t activePartitions1
Definition: TCDSRaw.h:42
const uint8_t bgoCount_v1
Definition: TCDSRaw.h:106
const uint8_t BGOSize
Definition: TCDSRaw.h:27
const uint32_t bstReceptionStatus
Definition: TCDSRaw.h:40
const uint16_t reserved1
Definition: TCDSRaw.h:64
const uint8_t reserved0
Definition: TCDSRaw.h:24
const uint16_t particleTypes
Definition: TCDSRaw.h:87
const uint64_t eventNumber
Definition: TCDSRaw.h:53
const uint64_t bgoHistoryHeader
Definition: TCDSRaw.h:109
const uint16_t beamMomentum
Definition: TCDSRaw.h:88
const uint32_t reserved1
Definition: TCDSRaw.h:38
const uint8_t reserved1
Definition: TCDSRaw.h:25
const uint8_t ind0
Definition: TCDSRaw.h:61
const uint32_t bireserved48_51
Definition: TCDSRaw.h:93
const uint32_t bireserved60_63
Definition: TCDSRaw.h:96
const uint32_t recordVersion
Definition: TCDSRaw.h:36
Definition: TCDSRaw.h:16
const uint8_t eventtype
Definition: TCDSRaw.h:65
const uint32_t orbitHigh
Definition: TCDSRaw.h:51
const uint32_t activePartitions0
Definition: TCDSRaw.h:41
const uint32_t bireserved40_43
Definition: TCDSRaw.h:91
const uint8_t ind1
Definition: TCDSRaw.h:66
const uint16_t bstMaster
Definition: TCDSRaw.h:81
const uint16_t reserved0
Definition: TCDSRaw.h:63
const uint16_t orbithigh
Definition: TCDSRaw.h:59
const uint32_t bireserved56_59
Definition: TCDSRaw.h:95
const uint32_t fwVersion
Definition: TCDSRaw.h:34
const uint8_t l1aHistoryDepth_v1
Definition: TCDSRaw.h:69
const uint32_t nibble
Definition: TCDSRaw.h:43
unsigned long long uint64_t
Definition: Time.h:15
const uint16_t inputs
Definition: TCDSRaw.h:48
const uint32_t bireserved12_15
Definition: TCDSRaw.h:80
const uint32_t intensityBeam1
Definition: TCDSRaw.h:89
const uint32_t reserved0
Definition: TCDSRaw.h:35
const uint16_t turnCountHigh
Definition: TCDSRaw.h:83
const uint16_t lhcFillLow
Definition: TCDSRaw.h:84
const uint8_t reserved2
Definition: TCDSRaw.h:26
const uint32_t intensityBeam2
Definition: TCDSRaw.h:90
const uint32_t gpstimelow
Definition: TCDSRaw.h:77
const uint32_t gpstimehigh
Definition: TCDSRaw.h:78
const uint32_t bireserved8_11
Definition: TCDSRaw.h:79
const uint32_t orbitlow
Definition: TCDSRaw.h:101
const uint32_t activePartitions2
Definition: TCDSRaw.h:39
const uint64_t triggerCount
Definition: TCDSRaw.h:52
const uint16_t triggerTypeFlags
Definition: TCDSRaw.h:46
const uint16_t reserved5
Definition: TCDSRaw.h:47
const uint16_t reserved
Definition: TCDSRaw.h:103
const uint8_t L1AhistSize
Definition: TCDSRaw.h:22
const uint16_t orbithigh
Definition: TCDSRaw.h:102
const uint16_t lhcFillHigh
Definition: TCDSRaw.h:85
const uint32_t runNumber
Definition: TCDSRaw.h:37
const uint32_t swVersion
Definition: TCDSRaw.h:33
const uint8_t BSTSize
Definition: TCDSRaw.h:23
const uint8_t headerSize
Definition: TCDSRaw.h:20