5 #include <rtsSystems.h>
7 #include <DAQ_READER/daqReader.h>
8 #include <DAQ_READER/daq_dta.h>
13 extern int fpd_reader(
char *m,
struct fpd_t *fpd, u_int driver) ;
15 const char *daq_fpd::help_string =
"FPD tst\n" ;
21 daq_det_factory::det_factories[FPD_ID] = this ;
35 LOG(DBG,
"FPD: rts_id %d, name %s",rts_id,name) ;
39 sfs_name = name = rts2name(rts_id) ;
41 if(caller) caller->insert(
this, rts_id) ;
45 LOG(DBG,
"%s: constructor: caller %p",name,caller) ;
50 LOG(DBG,
"%s: destructor",name) ;
58 daq_dta *daq_fpd::get(
const char *bank,
int c1,
int c2,
int c3,
void *p1,
void *p2)
60 if(!present)
return 0 ;
62 if(strcmp(bank,
"*")==0) bank =
"legacy" ;
64 if(strcasecmp(bank,
"legacy") != 0) {
65 LOG(ERR,
"%s: unknown bank %s",name,bank) ;
69 return handle_legacy() ;
74 daq_dta *daq_fpd::handle_legacy()
78 legacy->create(1,
"fpd_t",rts_id,DAQ_DTA_STRUCT(
fpd_t)) ;
83 fpd_reader(caller->mem, fpd_p, m_Debug) ;
85 legacy->finalize(1,0,0,0) ;