source: trunk/FACT++/src/EventBuilder.h@ 10936

Last change on this file since 10936 was 10784, checked in by tbretz, 14 years ago
Added some code to redirect error output to fadctrl (still commented); replaces stringstream by ostringstream where needed.
File size: 1.2 KB
Line 
1#ifndef FACT_EventBuilder
2#define FACT_EventBuilder
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8#include "FAD.h"
9
10/* global variables;
11 to avoid race canoditions, only one thread is allowed to write
12 the name of the variable defines which process shall write it:
13
14 g_XXX : main control thread
15 gi_XX : input thread (reading from camera)
16 gw_XX : write thread (writing to disk)
17 qp_XX : processing thread(s) (processing data, eg. soft-trig)
18
19*/
20extern int g_actTime ; //actual time, to be updated regularily
21extern int g_runStat ; //main steering variable
22extern int g_actBoards ; //number of boards that should exist
23
24extern uint gi_SecRate[MAX_SOCK] ; //MAX_SOCK defined in FACTEvent.h
25extern uint gi_S10Rate[MAX_SOCK] ;
26extern uint gi_MinRate[MAX_SOCK] ;
27extern uint gi_ErrCnt[MAX_SOCK] ;
28extern uint gi_NumConnect[NBOARDS]; //4 crates * 10 boards
29extern uint gi_SecTime, gi_S10Time, gi_MinTime ;
30extern uint gi_EvtStart ;
31extern uint gi_EvtRead ;
32extern uint gi_EvtBad ;
33extern uint gi_EvtTot ;
34extern uint gw_EvtTot ;
35extern uint gp_EvtTot ;
36
37//#define error Error
38//extern void Error(int severity, int errnum, const char *fmt, ...);
39
40#ifdef __cplusplus
41}
42#endif
43
44#endif
Note: See TracBrowser for help on using the repository browser.