-
Notifications
You must be signed in to change notification settings - Fork 2
/
struct.h
57 lines (52 loc) · 1.5 KB
/
struct.h
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
// Struct Header
//
// K Labe, September 24 2014
// K Labe, February 4 2015 - Add hitinfo struct
#include <stdint.h>
// This structure holds the variables set by the configuration file and recorded
// to couchdb
struct configuration
{
int nhithi; // The regular nhit cut for physics events
int nhitlo; // The special lowered nhit cut for after large events
int lothresh; // This defines "large events" as used above
int lowindow; // The time for lowering the cut, in 50 MHz ticks
int retrigcut; // The nhit cut for retriggered events
int retrigwindow; // The max time between retriggered events, in 50 MHz ticks
int prescale; // The prescale fraction (eg 100 = "save 1 in 100 events")
uint32_t bitmask; // The external trigger bitmask
int nhitbcut; // The nhit cut for inclusion in bursts
int burstwindow; // The integration time for spotting bursts (in secs)
int burstsize; // The count to exceed to be a burst
int endrate; // Rate below which burst ends
};
// Structure to hold all the relevant times
struct alltimes
{
uint64_t time10;
uint64_t time50;
uint64_t longtime;
int epoch;
int walltime;
int oldwalltime;
uint64_t exptime;
};
// Structure to hold all the things we count
struct counts
{
uint64_t prescalen;
uint64_t eventn;
uint64_t recordn;
};
// Structure to hold all the information we want to read out of the hits
// object of a ZDAB record
struct hitinfo
{
uint64_t time50;
uint64_t time10;
uint32_t triggertype;
uint16_t nhit;
uint32_t reclen;
uint32_t gtid;
uint32_t run;
};