9 #define FGT_CH_STAT_SHOULD 0x01 // exists in hardware
10 #define FGT_CH_STAT_NO_CONFIG 0x02 // killed in RC or config file
11 #define FGT_CH_STAT_NO_RESPONSE 0x04 // killed in ARS_configure, non responding CH
12 #define FGT_CH_STAT_BAD 0x08 // killed in bad_channel
13 #define FGT_CH_STAT_PED_UNKNOWN 0x10 // never had a good pedestal calculated
23 void init(
int active_rbs) ;
26 void clear_from_cache() ;
28 void accum(
char *evbuff,
int bytes,
int rdo1) ;
31 int to_evb(
char *buff) ;
33 double do_thresh(
double n_sigma,
int k_seq,
int log_bad) ;
35 int do_zs(
char *src,
int in_bytes,
char *dst,
int rdo1) ;
38 int from_cache(
char *fname = 0) ;
39 int to_cache(
char *fname, u_int run,
int dont_cache) ;
40 int bad_from_cache(
char *fname = 0) ;
50 u_char ch_status[FGT_RDO_COU][FGT_ARM_COU][FGT_APV_COU][FGT_CH_COU] ;
60 float ped[FGT_ARM_COU][FGT_APV_COU][FGT_CH_COU][FGT_TB_COU] ;
61 float rms[FGT_ARM_COU][FGT_APV_COU][FGT_CH_COU][FGT_TB_COU] ;
62 u_short thr[FGT_ARM_COU][FGT_APV_COU][FGT_CH_COU] ;
63 u_short cou[FGT_ARM_COU][FGT_APV_COU][FGT_CH_COU] ;
64 } peds[FGT_RDO_COU], peds_from_cache[FGT_RDO_COU] ;
80 int err_apv[FGT_ARM_COU][FGT_APV_COU] ;
81 int cou_apv[FGT_ARM_COU][FGT_APV_COU] ;
82 } fgt_stat[FGT_RDO_COU] ;