35 #include "StDaqLib/GENERIC/EventReader.hh"
39 using namespace OLDEVP;
54 int FTPV1P0_ADCR_SR::initialize()
57 padkr = detector->getPADKReader(sector);
58 if (!padkr)
return FALSE;
61 bank = detector->getBankFTPADCR(sector);
62 if(!bank) {
return FALSE;
66 FTPV1P0_ADCR_SR::~FTPV1P0_ADCR_SR()
71 int FTPV1P0_ADCR_SR::getPadList(
int PadRow, u_char **padList)
79 for(i=1; i<=FTP_MAXPADS; i++)
81 padkr->get(PadRow, i, &ent);
82 padlist[PadRow-1][j++] = i;
85 *padList = &padlist[PadRow-1][0];
89 int FTPV1P0_ADCR_SR::getSequences(
int PadRow,
int Pad,
int *nArray,
93 padkr->get(PadRow, Pad, &ent);
95 int offset = ent.offset * padkr->getADCBytes();
96 *nArray = padkr->getADCBytes();
101 *Array = (((u_char *)bank->ADC) + offset);
107 int FTPV1P0_ADCR_SR::MemUsed()
126 int FTPV1P0_PEDR_SR::initialize()
129 padkr = detector->getPADKReader(sector);
130 if (!padkr)
return FALSE;
132 bank = detector->getBankFTPPEDR(sector);
135 numEvents = bank->NumEvents;
140 FTPV1P0_PEDR_SR::~FTPV1P0_PEDR_SR()
145 int FTPV1P0_PEDR_SR::getPadList(
int PadRow, u_char **padList)
153 for(i=1; i<=FTP_MAXPADS; i++)
155 padkr->get(PadRow, i, &ent);
156 padlist[PadRow-1][j++] = i;
159 *padList = &padlist[PadRow-1][0];
163 int FTPV1P0_PEDR_SR::getSequences(
int PadRow,
int Pad,
int *nArray,
167 padkr->get(PadRow, Pad, &ent);
168 int offset = ent.offset * padkr->getPEDBytes();
169 *nArray = padkr->getPEDBytes();
175 *Array = (((u_char *)bank->pedestal) + offset);
181 int FTPV1P0_PEDR_SR::getNumberOfEvents()
186 int FTPV1P0_PEDR_SR::MemUsed()
207 int FTPV1P0_PRMS_SR::initialize()
210 padkr = detector->getPADKReader(sector);
211 if (!padkr)
return FALSE;
214 bank = detector->getBankFTPRMSR(sector);
217 numEvents = bank->NumEvents;
222 FTPV1P0_PRMS_SR::~FTPV1P0_PRMS_SR()
227 int FTPV1P0_PRMS_SR::getPadList(
int PadRow, u_char **padList)
235 for(i=1; i<=FTP_MAXPADS; i++)
237 padkr->get(PadRow, i, &ent);
238 padlist[PadRow-1][j++] = i;
241 *padList = &padlist[PadRow-1][0];
245 int FTPV1P0_PRMS_SR::getSequences(
int PadRow,
int Pad,
int *nArray,
249 padkr->get(PadRow, Pad, &ent);
250 int offset = ent.offset * padkr->getRMSBytes();
251 *nArray = padkr->getRMSBytes();
257 *Array = (((u_char *)bank->pedRMSt16) + offset);
263 int FTPV1P0_PRMS_SR::getNumberOfEvents()
268 int FTPV1P0_PRMS_SR::MemUsed()