00001 #ifndef _DAQ_ESMD_H_
00002 #define _DAQ_ESMD_H_
00003
00004
00005 #include <DAQ_READER/daq_det.h>
00006
00007 #include <DAQ_EMC/daq_emc.h>
00008
00009
00010 struct esmd_t {
00011 short adc[ESMD_MAXFEE][ESMD_DATSIZE] ;
00012 short preamble[ESMD_MAXFEE][ESMD_PRESIZE] ;
00013 } ;
00014
00015 extern int esmd_crate_map[] ;
00016
00017 class daq_esmd : public daq_det {
00018 private:
00019 class daq_dta *handle_raw() ;
00020 class daq_dta *handle_adc() ;
00021
00022 class daq_dta *raw ;
00023 class daq_dta *adc ;
00024
00025
00026 static const char *help_string ;
00027
00028 protected:
00029
00030
00031 public:
00032 daq_esmd(daqReader *rts_caller=0) ;
00033 ~daq_esmd() ;
00034
00035
00036 daq_dta *get(const char *bank="*",int c1=-1, int c2=-1, int c3=-1, void *p1=0, void *p2=0) ;
00037
00038 int get_l2(char *buff, int buff_bytes, struct daq_trg_word *trg, int prompt) ;
00039
00040 const char *GetCVS() const {
00041 static const char cvs[]="Tag $Name: $Id: built "__DATE__" "__TIME__ ; return cvs;
00042 }
00043
00044 } ;
00045
00046
00047 #endif // _DAQ_ESMD_H_