11 #include "Tonko2Ezt.h"
13 #ifndef NEW_DAQ_READER
14 # include "evpReader.hh"
15 # include "emcReader.h"
17 # include "DAQ_READER/daqReader.h"
18 # include "DAQ_READER/daq_dta.h"
19 # include "DAQ_EMC/daq_emc.h"
20 # include "DAQ_ETOW/daq_etow.h"
21 # include "DAQ_ESMD/daq_esmd.h"
26 Tonko2Ezt::Tonko2Ezt(
char *rdrc) {
34 daq_dta *dd_etow = rdr ? (rdr->det(
"etow")->get(
"adc")) : 0;
35 if (dd_etow)
while (dd_etow->iterate()) {
42 for(
int ib = 0;ib < ETOW_MAXFEE;ib++) {
43 eETow.createBank(ib,ETOW_PRESIZE,ETOW_DATSIZE);
45 eETow.setHeader(ib,(
unsigned short*)&(d->preamble[ib][0]));
46 eETow.setData(ib,(
unsigned short*)&(d->adc[ib][0]));
48 eETow.setHeader(ib,emc.etow_pre[ib]);
49 eETow.setData(ib,emc.etow[ib]);
56 daq_dta *dd_esmd = rdr ? (rdr->det(
"esmd")->get(
"adc")) : 0;
57 if (dd_esmd)
while (dd_esmd->iterate()) {
64 for(
int ib = 0;ib < ESMD_MAXFEE;ib++) {
65 eESmd.createBank(ib,ESMD_PRESIZE,ESMD_DATSIZE);
67 eESmd.setHeader(ib,(
unsigned short*)&(d->preamble[ib][0]));
68 eESmd.setData(ib,(
unsigned short*)&(d->adc[ib][0]));
70 eESmd.setHeader(ib,emc.
esmd_pre[ib]);
71 eESmd.setData(ib,emc.esmd[ib]);
u_short esmd_pre[ESMD_MAXFEE][ESMD_PRESIZE]
ADC data.