00001 #ifndef _TPX_STAT_HH_
00002 #define _TPX_STAT_HH_
00003
00004 #include <sys/types.h>
00005
00006
00007 class tpxStat {
00008 public:
00009 tpxStat() {;} ;
00010 ~tpxStat() {;} ;
00011
00012
00013
00014 int fee_check_on ;
00015 int fee_check_altros[256] ;
00016 struct fee_check_data {
00017 double ped, ped_sigma ;
00018 double rms, rms_sigma ;
00019 double charge, charge_sigma ;
00020 double t0, t0_sigma ;
00021 double count ;
00022 int aid ;
00023 } fee_check_data[72][16];
00024
00025 int sector ;
00026
00027 u_int stripes ;
00028
00029
00030 void run_start(u_int rb_mask, int run_type) ;
00031
00032
00033 void accum(char *rdobuff, int bytes) ;
00034
00035
00036
00037 int run_stop(FILE *f, u_int rb_mask, int run_type, char *fname) ;
00038
00039
00040
00041
00042 struct tpx_stat_struct {
00043 u_char should ;
00044 u_int count ;
00045 u_int errs ;
00046 struct {
00047 u_char should ;
00048 struct {
00049 u_int count ;
00050 u_short max_adc ;
00051 u_short min_adc ;
00052 u_int stripes ;
00053 } c[16] ;
00054 } a[256] ;
00055 } r[6] ;
00056
00057
00058
00059 private:
00060 int run_type ;
00061 } ;
00062
00063 #endif