-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathprenexustypes.hpp
71 lines (57 loc) · 1.69 KB
/
prenexustypes.hpp
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
#ifndef _PRENEXUSTYPES_HPP
#define _PRENEXUSTYPES_HPP 1
#include <boost/shared_ptr.hpp>
#include <fstream>
#include <sstream>
#include <stdint.h>
#include <string>
#include <vector>
namespace prenexus { // need a single place to include for these definitions
#pragma pack(push, 4) //Make sure the structure is 8 bytes.
struct DasEvent
{
/// Time of flight.
uint32_t tof;
/// Pixel identifier as published by the DAS/DAE/DAQ.
uint32_t pid;
};
#pragma pack(pop)
#pragma pack(push, 4) //Make sure the structure is 16 bytes.
struct Pulse
{
/// The number of nanoseconds since the seconds field. This is not necessarily less than one second.
uint32_t nanoseconds;
/// The number of seconds since January 1, 1990.
uint32_t seconds;
/// The index of the first event for this pulse.
uint64_t event_index;
/// The proton charge for the pulse.
double pCurrent;
};
#pragma pack(pop)
#pragma pack(push, 4) //Make sure the structure is the correct number of bytes.
struct OldPulse
{
/// The number of nanoseconds since the seconds field. This is not necessarily less than one second.
uint32_t nanoseconds;
/// The number of seconds since January 1, 1990.
uint32_t seconds;
/// The index of the first event for this pulse.
uint64_t event_index;
};
#pragma pack(pop)
#pragma pack(push, 4) //Make sure the structure is the correct number of bytes.
struct Rtdl
{
/// The number of nanoseconds since the seconds field. This is not necessarily less than one second.
uint32_t nanoseconds;
/// The number of seconds since January 1, 1990.
uint32_t seconds;
uint32_t pulseType;
uint32_t vetoStatus;
uint32_t pulseCurrent;
uint32_t spare;
};
#pragma pack(pop)
} // namespace prenexus
#endif