StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
daq_svt.h
1 #ifndef _DAQ_SVT_H_
2 #define _DAQ_SVT_H_
3 
4 #include <stdio.h>
5 #include <DAQ_READER/daq_det.h>
6 
7 
8 
9 struct svt_t {
10  int channels ;
11  int mode ; // 0 normal, 1 pedestals/RMSs
12  int max_channels ;
13  int pre, post, pedoffset ;
14 
15  // how many valid timebins in this hybrid
16  u_char counts[24][3][6][240] ;
17  // up to 128 valid timebins (count is in counts)
18  // timebin is overloaded for pedestal RMS data!
19  u_char timebin[24][3][6][240][128] ;
20 
21  // up to 128 valid adcs (same count as above...)
22  u_char adc[24][3][6][240][128] ;
23 
24  // helpers for the remap
25  u_char B[24][3][6] ; // from RB,MZ,ASIC (all start from 1!) to Barrel
26  u_char L[24][3][6] ; // ... to Ladder
27  u_char W[24][3][6] ; // ... to Wafer
28  u_char H[24][3][6] ; // ... to Hybrid
29 } ;
30 
31 
32 
33 
34 
35 class daq_svt : public daq_det {
36 private:
37  class daq_dta *handle_legacy() ;
38 
39  class daq_dta *legacy ; // "legacy" bank
40 
41  static const char *help_string ;
42 protected:
43 
44 
45 public:
46  daq_svt(daqReader *rts_caller=0) ;
47  ~daq_svt() ;
48 
49 
50  daq_dta *get(const char *bank="*",int c1=-1, int c2=-1, int c3=-1, void *p1=0, void *p2=0) ;
51 
52  void help() const {
53  printf("%s\n%s\n",GetCVS(),help_string) ;
54  }
55 
56  const char *GetCVS() const { // Offline
57  static const char cvs[]="Tag $Name: $Id: built " __DATE__ " " __TIME__ ; return cvs;
58  }
59 
60 } ;
61 
62 
63 #endif // _DAQ_SVT_H_
Definition: daq_svt.h:9