ROOTANA
include
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
13
class
v1190event
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
34
bool
trailer_trigger_lost
;
35
bool
trailer_output_buffer_overflow
;
36
bool
trailer_tdc_error
;
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
v1190event
Definition:
v1190unpack.h:14
v1190event::geo
int geo
Definition:
v1190unpack.h:19
v1190event::Print
void Print() const
Definition:
v1190unpack.cxx:126
v1190event::tdc_header_tdc
int tdc_header_tdc
Definition:
v1190unpack.h:21
v1190event::tdc_trailer_word_count
int tdc_trailer_word_count
Definition:
v1190unpack.h:27
v1190event::tdc_error_tdc
int tdc_error_tdc
Definition:
v1190unpack.h:29
v1190event::hits
std::vector< v1190hit > hits
Definition:
v1190unpack.h:40
v1190event::trailer_tdc_error
bool trailer_tdc_error
Definition:
v1190unpack.h:36
v1190event::tdc_trailer_event_id
int tdc_trailer_event_id
Definition:
v1190unpack.h:26
v1190event::trailer_word_count
int trailer_word_count
Definition:
v1190unpack.h:37
v1190event::trailer_geo
int trailer_geo
Definition:
v1190unpack.h:38
v1190event::ettt
int ettt
Definition:
v1190unpack.h:32
v1190event::tdc_header_bunch_id
int tdc_header_bunch_id
Definition:
v1190unpack.h:23
v1190event::tdc_error_flags
int tdc_error_flags
Definition:
v1190unpack.h:30
v1190event::v1190event
v1190event()
Definition:
v1190unpack.cxx:6
v1190event::trailer_output_buffer_overflow
bool trailer_output_buffer_overflow
Definition:
v1190unpack.h:35
v1190event::tdc_trailer_tdc
int tdc_trailer_tdc
Definition:
v1190unpack.h:25
v1190event::trailer_trigger_lost
bool trailer_trigger_lost
Definition:
v1190unpack.h:34
v1190event::error
bool error
Definition:
v1190unpack.h:16
v1190event::tdc_header_event_id
int tdc_header_event_id
Definition:
v1190unpack.h:22
v1190event::event_count
int event_count
Definition:
v1190unpack.h:18
v1190hit
Definition:
v1190unpack.h:6
v1190hit::channel
int channel
Definition:
v1190unpack.h:8
v1190hit::trailing
bool trailing
Definition:
v1190unpack.h:9
v1190hit::measurement
int measurement
Definition:
v1190unpack.h:10
UnpackV1190
v1190event * UnpackV1190(const char **data, int *datalen, bool verbose)
Definition:
v1190unpack.cxx:13
Generated on Sat Nov 23 2024 05:01:03 for ROOTANA by
1.9.1