ROOTANA
v1190unpack.h
Go to the documentation of this file.
1 // v1190unpack.h
2 
3 #include <vector>
4 
5 class v1190hit
6 {
7  public:
8  int channel; // 7 bits
9  bool trailing; // 1 bit
10  int measurement; // 19 bits
11 };
12 
14 {
15  public:
16  bool error;
17  // global header
18  int event_count; // 22 bits
19  int geo; // 5 bits
20  // tdc header
21  int tdc_header_tdc; // 2 bits
22  int tdc_header_event_id; // 12 bits
23  int tdc_header_bunch_id; // 12 bits
24  // tdc trailer
25  int tdc_trailer_tdc; // 2 bits
26  int tdc_trailer_event_id; // 12 bits
27  int tdc_trailer_word_count; // 12 bits
28  // tdc error
29  int tdc_error_tdc; // 2 bits
30  int tdc_error_flags; // 15 bits
31  // externded trigger time tag
32  int ettt; // 27 bits
33  // trailer
37  int trailer_word_count; // 16 bits
38  int trailer_geo; // 5 bits
39 
40  std::vector<v1190hit> hits;
41 
42  public:
43  v1190event(); // ctor
44  void Print() const;
45 };
46 
47 v1190event* UnpackV1190(const char** data, int* datalen, bool verbose);
48 
49 // end
void Print() const
int tdc_header_tdc
Definition: v1190unpack.h:21
int tdc_trailer_word_count
Definition: v1190unpack.h:27
int tdc_error_tdc
Definition: v1190unpack.h:29
std::vector< v1190hit > hits
Definition: v1190unpack.h:40
bool trailer_tdc_error
Definition: v1190unpack.h:36
int tdc_trailer_event_id
Definition: v1190unpack.h:26
int trailer_word_count
Definition: v1190unpack.h:37
int trailer_geo
Definition: v1190unpack.h:38
int tdc_header_bunch_id
Definition: v1190unpack.h:23
int tdc_error_flags
Definition: v1190unpack.h:30
bool trailer_output_buffer_overflow
Definition: v1190unpack.h:35
int tdc_trailer_tdc
Definition: v1190unpack.h:25
bool trailer_trigger_lost
Definition: v1190unpack.h:34
bool error
Definition: v1190unpack.h:16
int tdc_header_event_id
Definition: v1190unpack.h:22
int event_count
Definition: v1190unpack.h:18
int channel
Definition: v1190unpack.h:8
bool trailing
Definition: v1190unpack.h:9
int measurement
Definition: v1190unpack.h:10
v1190event * UnpackV1190(const char **data, int *datalen, bool verbose)
Definition: v1190unpack.cxx:13