StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
daq_tof.h
1 #ifndef _DAQ_TOF_H_
2 #define _DAQ_TOF_H_
3 
4 
5 #include <DAQ_READER/daq_det.h>
6 
7 struct tof_t {
8  int mode ;
9  int channels ;
10  int max_channels ;
11 
12  u_short adc[180] ; // was 48 in FY02
13  u_short tdc[184]; // was 48 in FY02
14  float a2d[32];
15  u_int sca[12];
16 
17  // new in FY05
18  u_int ddl[4][12000] ; // content of up to 4 fibers; was 10000 before FY09 but
19  // Jo Schambach claims the maximum can be 11745
20  u_int ddl_words[4] ; // the count of words (32bit) for above
21 } ;
22 
23 
24 
25 
26 
27 class daq_tof : public daq_det {
28 private:
29  class daq_dta *handle_raw(int sec, int rdo) ;
30  class daq_dta *handle_legacy() ;
31 
32  class daq_dta *raw ;
33  class daq_dta *legacy ;
34 
35  static const int MAX_SEC = 1 ;
36  static const int MAX_RDO = 4 ;
37 
38  static const char *help_string ;
39 protected:
40 
41 
42 public:
43  daq_tof(daqReader *rts_caller=0) ;
44  ~daq_tof() ;
45 
46 
47  daq_dta *get(const char *bank="*",int c1=-1, int c2=-1, int c3=-1, void *p1=0, void *p2=0) ;
48 
49 
50  int get_l2(char *buff, int buff_bytes, struct daq_trg_word *trg, int prompt) ;
51  int get_token(char *buff, int buff_bytes) ;
52 
53 
54  virtual const char *GetCVS() const { // Offline
55  static const char cvs[]="Tag $Name: $Id: built " __DATE__ " " __TIME__ ; return cvs;
56  }
57 
58 } ;
59 
60 
61 #endif // _DAQ_TOF_H_
Definition: daq_tof.h:7