blob: 60bdbf77755abda1ce068868adc037e1eeea92a4 (
plain)
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
|
#ifndef EVENT_H
#define EVENT_H
#include <stdint.h>
#include "pmt.h"
/* Bitmasks for the various PMT flags. */
#define PMT_FLAG_DIS 0x1
#define PMT_FLAG_DQXX 0x2
/* Struct to hold all data from a single event used for fitting. */
typedef struct pmt_hit {
int hit;
float t;
float qhl;
float qhs;
float qlx;
uint16_t qihl;
uint16_t qihs;
uint16_t qilx;
int flags;
} pmt_hit;
typedef struct event {
int run;
uint32_t gtid;
int nhit;
pmt_hit pmt_hits[MAX_PMTS];
} event;
#endif
|