00001 #ifndef _BSMD_PED_HH_
00002 #define _BSMD_PED_HH_
00003
00004
00005 #include <sys/types.h>
00006
00007
00008
00009
00010
00011
00012
00013 class bsmdPed {
00014 public:
00015 bsmdPed() ;
00016 ~bsmdPed() ;
00017
00018
00019 int sector ;
00020 int valid ;
00021
00022 void init(int active_rbs) ;
00023 void accum(char *evbuff, int bytes, int rdo) ;
00024 void calc() ;
00025 void do_thresh(double n_sm, double n_pre) ;
00026 int do_zs(char *src, int in_bytes, char *dst, int rdo1) ;
00027 int to_evb(char *buff) ;
00028
00029 int from_cache(char *fname = 0) ;
00030 int to_cache(char *fname = 0, u_int run = 0) ;
00031
00032 int special_setup(int run_type, int sub_type) ;
00033
00034
00035
00036 private:
00037 struct peds {
00038 double ped[128][4800] ;
00039 double rms[128][4800] ;
00040 u_short thr[128][4800] ;
00041 u_short cou[128] ;
00042
00043 } *ped_store ;
00044
00045
00046 int sizeof_ped ;
00047
00048 u_int evts[6] ;
00049 u_int valid_evts[6] ;
00050 int rb_mask ;
00051
00052 } ;
00053
00054 #endif