5 #include <DAQ_READER/daq_det.h>
10 #define BTOW_MAXFEE 30
11 #define BTOW_PRESIZE 4
12 #define BTOW_DATSIZE 160
15 #define BSMD_FIBERS 12
16 #define BSMD_DATSIZE 4800
20 #define ETOW_PRESIZE 4
21 #define ETOW_DATSIZE 160
24 #define ESMD_MAXFEE 48 // used to be 30
25 #define ESMD_PRESIZE 4
26 #define ESMD_DATSIZE 192
29 #define EMC_PED_VERSION 0x01
59 u_short btow_new[BTOW_MAXFEE][BTOW_DATSIZE] ;
60 u_short btow_pre[BTOW_MAXFEE][BTOW_PRESIZE] ;
65 u_short bsmd[12][4800] ;
71 u_short bsmd_raw[12][4800] ;
83 u_short etow[ETOW_MAXFEE][ETOW_DATSIZE] ;
84 u_short etow_pre[ETOW_MAXFEE][ETOW_PRESIZE];
93 u_short esmd_max_fee ;
94 u_short esmd[ESMD_MAXFEE][ESMD_DATSIZE] ;
101 extern char *getEmcTrgData(
char *input,
int idx,
int *bytes) ;
102 extern char *emc_single_reader(
char *e,
int *bytes,
int rts_id) ;
104 extern int emc_reader(
char *m,
struct emc_t *emc, u_int driver,
int rts_id,
char *ptrs[12],
int bytes[12]) ;
110 class daq_dta *handle_legacy() ;
111 class daq_dta *handle_pedrms() ;
116 static const char *help_string ;
126 daq_dta *
get(
const char *bank=
"*",
int c1=-1,
int c2=-1,
int c3=-1,
void *p1=0,
void *p2=0) ;
129 printf(
"%s\n%s\n",GetCVS(),help_string) ;
132 const char *GetCVS()
const {
133 static const char cvs[]=
"Tag $Name: $Id: built " __DATE__
" " __TIME__ ;
return cvs;
139 #endif // _DAQ_EMC_H_
u_short * esmd_raw
ESMD preamble.
u_short esmd_pre[ESMD_MAXFEE][ESMD_PRESIZE]
ADC data.