1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
#ifndef DATAFORMATS_ONLINEMETADATA_ONLINEMETADATARAW_H
#define DATAFORMATS_ONLINEMETADATA_ONLINEMETADATARAW_H
//---------------------------------------------------------------------------
//! \class OnlineMetaDataRaw
//! \brief Structure of raw data from soft FED 1022
//!
//! \author Remi Mommsen - Fermilab
//---------------------------------------------------------------------------
#include <cstdint>
namespace online {
struct Luminosity_v1 {
const uint64_t timestamp;
const uint16_t lumiSection;
const uint16_t lumiNibble;
const float instLumi;
const float avgPileUp;
};
struct BeamSpot_v1 {
const uint64_t timestamp;
const float x;
const float y;
const float z;
const float dxdz;
const float dydz;
const float errX;
const float errY;
const float errZ;
const float errDxdz;
const float errDydz;
const float widthX;
const float widthY;
const float sigmaZ;
const float errWidthX;
const float errWidthY;
const float errSigmaZ;
};
struct CTPPS_v1 {
uint64_t timestamp;
uint64_t status;
};
struct DCS_v1 {
const uint64_t timestamp;
const uint32_t highVoltageReady;
const float magnetCurrent;
};
struct DCS_v2 {
const uint64_t timestamp;
const uint32_t highVoltageReady;
const uint32_t highVoltageValid;
const float magnetCurrent;
};
struct Data_v1 {
const uint8_t version;
const Luminosity_v1 luminosity;
const BeamSpot_v1 beamSpot;
const DCS_v1 dcs;
};
struct Data_v2 {
const uint8_t version;
const Luminosity_v1 luminosity;
const BeamSpot_v1 beamSpot;
const CTPPS_v1 ctpps;
const DCS_v1 dcs;
};
struct Data_v3 {
const uint8_t version;
const Luminosity_v1 luminosity;
const BeamSpot_v1 beamSpot;
const CTPPS_v1 ctpps;
const DCS_v2 dcs;
};
} // namespace online
#endif // DATAFORMATS_ONLINEMETADATA_ONLINEMETADATARAW_H
|