ROOTANA
v1742unpack.h
Go to the documentation of this file.
1 // v1742unpack.h
2 
3 class v1742event
4 {
5  public:
6  bool error;
7 
8  int total_event_size; // 28 bits
9  int board_id; // 5 bits
10  int pattern; // 14 bits
11  int group_mask; // 4 bits
12  int event_counter; // 22 bits
13  int event_time_tag; // 32 bits
14 
15  int len[4]; // 12 bits, size, 1024 samples is 0xC00
16  int tr[4]; // 1 bit, TR signal is present or not
17  int freq[4]; // 2 bits, 00=5Gs/s, 01=2.5Gs/s, 10=1Gs/s, 11=not used
18  int cell[4]; // 10 bits, start cell index of DRS4 SCA
19  int trigger_time_tag[4]; // maybe 30 bits
20 
21  int adc[32][1024];
22  int adc_tr[4][1024];
23 
24  bool adc_overflow[32];
25  bool adc_tr_overflow[4];
26 
27  public:
28  v1742event(); // ctor
29  void Print() const;
30 };
31 
32 v1742event* UnpackV1742(const char** data, int* datalen, bool verbose);
33 
34 // end
int adc[32][1024]
Definition: v1742unpack.h:21
void Print() const
bool adc_tr_overflow[4]
Definition: v1742unpack.h:25
int board_id
Definition: v1742unpack.h:9
bool error
Definition: v1742unpack.h:6
int trigger_time_tag[4]
Definition: v1742unpack.h:19
int event_time_tag
Definition: v1742unpack.h:13
int total_event_size
Definition: v1742unpack.h:8
int event_counter
Definition: v1742unpack.h:12
int cell[4]
Definition: v1742unpack.h:18
int adc_tr[4][1024]
Definition: v1742unpack.h:22
int tr[4]
Definition: v1742unpack.h:16
int freq[4]
Definition: v1742unpack.h:17
int len[4]
Definition: v1742unpack.h:15
int group_mask
Definition: v1742unpack.h:11
bool adc_overflow[32]
Definition: v1742unpack.h:24
v1742event * UnpackV1742(const char **data, int *datalen, bool verbose)
Definition: v1742unpack.cxx:20