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