5 #include <rtsSystems.h>
7 #include <DAQ_READER/daqReader.h>
8 #include <DAQ_READER/daq_dta.h>
12 extern int ric_reader(
char *m,
struct ric_t *ric, u_int driver) ;
14 const char *daq_ric::help_string =
"RIC tst\n" ;
21 daq_det_factory::det_factories[RIC_ID] = this ;
35 LOG(DBG,
"RIC: 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) ;
51 if(caller) caller->de_insert(rts_id) ;
59 daq_dta *daq_ric::get(
const char *bank,
int c1,
int c2,
int c3,
void *p1,
void *p2)
62 if(!present)
return 0 ;
64 if(strcmp(bank,
"*")==0) bank =
"legacy" ;
66 if(strcasecmp(bank,
"legacy") != 0) {
67 LOG(ERR,
"%s: unknown bank %s",name,bank) ;
71 return handle_legacy() ;
76 daq_dta *daq_ric::handle_legacy()
80 legacy->create(1,
"ric_t",rts_id,DAQ_DTA_STRUCT(
ric_t)) ;
85 ric_reader(caller->mem, ric_p, m_Debug) ;
87 legacy->finalize(1,0,0,0) ;