CMS 3D CMS Logo

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