#ifndef FACT_EventBuilder #define FACT_EventBuilder #include "FAD.h" /* global variables; to avoid race canoditions, only one thread is allowed to write the name of the variable defines which process shall write it: g_XXX : main control thread gi_XX : input thread (reading from camera) gw_XX : write thread (writing to disk) qp_XX : processing thread(s) (processing data, eg. soft-trig) */ extern int g_runStat ; //main steering variable extern int g_reset ; //>0 = reset different levels of eventbuilder extern int g_maxProc ; extern size_t g_maxMem ; //maximum memory allowed for buffer extern FACT_SOCK g_port[NBOARDS] ; // .port = baseport, .addr=string of IP-addr in dotted-decimal "ddd.ddd.ddd.ddd" extern uint gi_NumConnect[NBOARDS]; //4 crates * 10 boards #endif