5 #include <rtsSystems.h>
7 #include <DAQ_READER/daqReader.h>
8 #include <DAQ_READER/daq_dta.h>
12 extern int svt_reader(
char *m,
struct svt_t *svt, u_int driver) ;
14 const char *daq_svt::help_string =
"SVT tst\n" ;
21 daq_det_factory::det_factories[SVT_ID] = this ;
35 LOG(DBG,
"SVT: rts_id %d, name %s",rts_id,name) ;
39 name = rts2name(rts_id) ;
42 if(caller) caller->insert(
this, rts_id) ;
47 LOG(DBG,
"%s: constructor: caller %p",name,caller) ;
52 LOG(DBG,
"%s: destructor",name) ;
54 if(caller) caller->de_insert(rts_id) ;
62 daq_dta *daq_svt::get(
const char *bank,
int c1,
int c2,
int c3,
void *p1,
void *p2)
65 if(!present)
return 0 ;
67 if(strcmp(bank,
"*")==0) bank =
"legacy" ;
69 if(strcasecmp(bank,
"legacy") != 0) {
70 LOG(ERR,
"%s: unknown bank %s",name,bank) ;
74 return handle_legacy() ;
79 daq_dta *daq_svt::handle_legacy()
83 legacy->create(1,
"svt_t",rts_id,DAQ_DTA_STRUCT(
svt_t)) ;
88 svt_reader(caller->mem, svt_p, m_Debug) ;
90 legacy->finalize(1,0,0,0) ;