5 #include <rtsSystems.h>
7 #include <DAQ_READER/daqReader.h>
8 #include <DAQ_READER/daq_dta.h>
13 const char *daq_ssd::help_string =
"SSD tst\n" ;
19 daq_det_factory::det_factories[SSD_ID] = this ;
33 LOG(DBG,
"SSD: rts_id %d, name %s",rts_id,name) ;
36 sfs_name = name = rts2name(rts_id) ;
38 if(caller) caller->insert(
this, rts_id) ;
42 LOG(DBG,
"%s: constructor: caller %p",name,caller) ;
47 LOG(DBG,
"%s: destructor",name) ;
48 if(caller) caller->de_insert(rts_id) ;
56 daq_dta *daq_ssd::get(
const char *bank,
int c1,
int c2,
int c3,
void *p1,
void *p2)
59 if(!present)
return 0 ;
61 if(strcmp(bank,
"*")==0) bank =
"legacy" ;
63 if(strcasecmp(bank,
"legacy") != 0) {
64 LOG(ERR,
"%s: unknown bank %s",name,bank) ;
68 return handle_legacy() ;
73 daq_dta *daq_ssd::handle_legacy()
77 legacy->create(1,
"ssd_t",rts_id,DAQ_DTA_STRUCT(
ssd_t)) ;
82 ssd_reader(caller->mem, ssd_p, m_Debug) ;
84 legacy->finalize(1,0,0,0) ;