00001 #ifndef _DAQ_PMD_H_
00002 #define _DAQ_PMD_H_
00003
00004 #include <daqFormats.h>
00005
00006 struct pmd_t {
00007 int mode ;
00008 int channels ;
00009 int max_channels ;
00010
00011 u_int status[2] ;
00012
00013
00014 u_short adc[2][PMD_CRAMS_MAX][2][PMD_CRAMS_CH_MAX] ;
00015
00016 u_short ped[2][PMD_CRAMS_MAX][2][PMD_CRAMS_CH_MAX] ;
00017 u_short rms[2][PMD_CRAMS_MAX][2][PMD_CRAMS_CH_MAX] ;
00018 u_short thr[2][PMD_CRAMS_MAX][2][PMD_CRAMS_CH_MAX] ;
00019
00020 } ;
00021
00022 #ifndef DAQ_PMD_DATA_STRUCTURE
00023 #include <stdio.h>
00024 #include <DAQ_READER/daq_det.h>
00025
00026 class daq_pmd : public daq_det {
00027 private:
00028 class daq_dta *handle_legacy() ;
00029 class daq_dta *handle_raw(int sec) ;
00030
00031 class daq_dta *legacy ;
00032 class daq_dta *raw ;
00033
00034 static const char *help_string ;
00035 protected:
00036
00037
00038 public:
00039 daq_pmd(daqReader *rts_caller=0) ;
00040 ~daq_pmd() ;
00041
00042
00043 daq_dta *get(const char *bank="*",int c1=-1, int c2=-1, int c3=-1, void *p1=0, void *p2=0) ;
00044
00045 void help() const {
00046 printf("%s\n%s\n",GetCVS(),help_string) ;
00047 }
00048
00049 const char *GetCVS() const {
00050 static const char cvs[]="Tag $Name: $Id: built "__DATE__" "__TIME__ ; return cvs;
00051 }
00052
00053 } ;
00054
00055
00056 #endif // DAQ_PMD_DATA_STRUCTURE
00057 #endif // _DAQ_PMD_H_