LDMX Software
Trigger
Algo_HLS
Ecal
src
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
8
typedef
ap_uint<20>
tid_t
;
9
typedef
ap_uint<7>
tp_t
;
10
11
typedef
ap_uint<18>
lin_t;
12
13
typedef
ap_ufixed<16, 14>
e_t
;
// [MeV] (Up to at least 8 GeV)
14
typedef
ap_fixed<10, 9>
xy_t
;
// [mm] (-250 to 250, resolution = a few mm)
15
typedef
ap_fixed<16, 14>
pxy_t;
// [MeV/c]
16
17
struct
EcalTP
{
18
tid_t
tid;
19
tp_t
tp;
20
};
21
22
struct
Ecal2dCluster
{
23
e_t
e;
24
xy_t
x;
25
xy_t
y;
26
};
27
28
#endif
Ecal2dCluster
Definition
data.h:22
EcalTP
Definition
data.h:17
ap_fixed
Signed Arbitrary Precision Fixed-Point Type.
Definition
ap_fixed.h:29
ap_ufixed
Definition
ap_fixed.h:195
ap_uint
Unsigned Arbitrary Precision Type.
Definition
ap_int.h:166
Generated by
1.9.8