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