LDMX Software
data.h
1#ifndef DATA_H
2#define DATA_H
3
4#include "ap_fixed.h"
5#include "ap_int.h"
6
7// HGCROC trigger ID and primitive
8typedef ap_uint<20> tid_t;
9typedef ap_uint<7> tp_t;
10
11typedef ap_uint<18> lin_t;
12
13typedef ap_ufixed<16, 14> e_t; // [MeV] (Up to at least 8 GeV)
14typedef ap_fixed<10, 9> xy_t; // [mm] (-250 to 250, resolution = a few mm)
15typedef ap_fixed<16, 14> pxy_t; // [MeV/c]
16
17struct EcalTP {
18 tid_t tid;
19 tp_t tp;
20};
21
23 e_t e;
24 xy_t x;
25 xy_t y;
26};
27
28#endif
Definition data.h:17
Signed Arbitrary Precision Fixed-Point Type.
Definition ap_fixed.h:29
Unsigned Arbitrary Precision Type.
Definition ap_int.h:166