00001 #ifndef _DAQ_MTD_H_
00002 #define _DAQ_MTD_H_
00003
00004
00005 #include <DAQ_READER/daq_det.h>
00006
00007
00008
00009 struct mtd_t {
00010 int mode ;
00011 int channels ;
00012 int max_channels ;
00013
00014
00015 u_int ddl[2][12000] ;
00016
00017 u_int ddl_words[2] ;
00018 } ;
00019
00020
00021
00022
00023
00024 class daq_mtd : public daq_det {
00025 private:
00026 class daq_dta *handle_raw(int sec, int rdo) ;
00027 class daq_dta *handle_legacy() ;
00028
00029 class daq_dta *raw ;
00030 class daq_dta *legacy ;
00031
00032
00033 static const char *help_string ;
00034 protected:
00035
00036
00037 public:
00038 daq_mtd(daqReader *rts_caller=0) ;
00039 ~daq_mtd() ;
00040
00041
00042 daq_dta *get(const char *bank="*",int c1=-1, int c2=-1, int c3=-1, void *p1=0, void *p2=0) ;
00043
00044
00045 int get_l2(char *buff, int buff_bytes, struct daq_trg_word *trg, int prompt) ;
00046 int get_token(char *buff, int buff_bytes) ;
00047
00048 virtual const char *GetCVS() const {
00049 static const char cvs[]="Tag $Name: $Id: built "__DATE__" "__TIME__ ; return cvs;
00050 }
00051
00052 static const int MAX_SEC = 1 ;
00053 static const int MAX_RDO = 2 ;
00054
00055
00056 } ;
00057
00058
00059 #endif // _DAQ_MTD_H_