GRUTinizer
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
include
TUnpackLoop.h
Go to the documentation of this file.
1
#ifndef _TUNPACKLOOP_H_
2
#define _TUNPACKLOOP_H_
3
4
#include "TNamed.h"
5
6
#include "
StoppableThread.h
"
7
#include "
ThreadsafeQueue.h
"
8
#include "
TRawEvent.h
"
9
#include "
TUnpackedEvent.h
"
10
11
class
TNSCLEvent
;
12
class
TGEBEvent
;
13
14
class
TUnpackLoop
:
public
StoppableThread
{
15
public
:
16
TUnpackLoop
(
ThreadsafeQueue<TRawEvent>
&
input_queue
,
17
ThreadsafeQueue<TUnpackedEvent*>
&
output_queue
);
18
virtual
~TUnpackLoop
();
19
20
ThreadsafeQueue<TUnpackedEvent*>
&
GetOutputQueue
() {
return
output_queue
; }
21
22
protected
:
23
bool
Iteration
();
24
25
private
:
26
TUnpackLoop
(
const
TUnpackLoop
& other);
27
TUnpackLoop
&
operator=
(
const
TUnpackLoop
& other);
28
29
void
CheckBuildWindow
(
long
timestamp
);
30
31
void
HandleNSCLData
(
TNSCLEvent
& event);
32
void
HandleBuiltNSCLData
(
TNSCLEvent
& event);
33
void
HandleUnbuiltNSCLData
(
TNSCLEvent
& event);
34
35
void
HandleGEBData
(
TGEBEvent
& event);
36
void
HandleGEBMode3
(
TGEBEvent
& event,
kDetectorSystems
system);
37
void
HandleS800Scaler
(
TGEBEvent
& event);
38
39
ThreadsafeQueue<TRawEvent>
&
input_queue
;
40
ThreadsafeQueue<TUnpackedEvent*>
&
output_queue
;
41
42
TUnpackedEvent
*
next_event
;
43
long
event_start
;
44
long
build_window
;
45
};
46
47
#endif
/* _TUNPACKLOOP_H_ */
Generated on Wed Nov 4 2015 17:27:54 for GRUTinizer by
1.8.1.2