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