2 #include <DAQ_READER/daqReader.h>
3 #include <DAQ_READER/daq_dta.h>
4 #include <DAQ_READER/daq_det.h>
14 #define DAQ_LEGACY_EMC_DEF(xxx) \
15 struct _NAME2_(xxx,_t) _NAME1_(xxx);\
17 int _NAME2_(xxx,Reader)(char *m) { \
19 daqReader *rrr = (daqReader *)m; \
20 daq_dta *dd= rrr->det("emc_pseudo")->get("legacy"); \
22 if (dd && (size = dd->iterate())) { \
23 memcpy(&_NAME1_(xxx),dd->Void,dd->get_size_t());} \
24 return (dd && size) ? dd->ncontent: 0; }
26 DAQ_LEGACY_EMC_DEF(emc);