00001 #ifndef _DAQ_SC_H_
00002 #define _DAQ_SC_H_
00003
00004 #include <sys/types.h>
00005
00006 struct sc_t {
00007 u_int valid;
00008 u_int time;
00009 int timelag;
00010 float mag_field;
00011 u_int rich_scalers[16];
00012 };
00013
00014 #ifndef DAQ_SC_DATA_STRUCTURE
00015 #include <stdio.h>
00016 #include <DAQ_READER/daq_det.h>
00017
00018
00019
00020 class daq_sc : public daq_det {
00021 private:
00022 class daq_dta *handle_legacy() ;
00023 class daq_dta *handle_raw() ;
00024
00025 class daq_dta *legacy ;
00026 class daq_dta *raw ;
00027
00028 static const char *help_string ;
00029 protected:
00030
00031
00032 public:
00033 daq_sc(daqReader *rts_caller=0) ;
00034 ~daq_sc() ;
00035
00036
00037 daq_dta *get(const char *bank="*",int c1=-1, int c2=-1, int c3=-1, void *p1=0, void *p2=0) ;
00038
00039 void help() const {
00040 printf("%s\n%s\n",GetCVS(),help_string) ;
00041 }
00042
00043 const char *GetCVS() const {
00044 static const char cvs[]="Tag $Name: $Id: built "__DATE__" "__TIME__ ; return cvs;
00045 }
00046
00047 } ;
00048
00049 #endif // DAQ_SC_DATA_STRUCTURE
00050 #endif // _DAQ_SC_H_