38 #include "StDaqLib/GENERIC/EventReader.hh"
41 using namespace OLDEVP;
54 int FTPV1P0_CPP_SR::initialize()
58 padkr = detector->getPADKReader(sector);
59 if (!padkr)
return FALSE;
63 bank = detector->getBankFTPCPPR(sector);
64 classname(Bank_FTPCPPR) *cpp = bank;
65 if (cpp && detector->ercpy->verbose)
66 { printf(
"ASIC params sec %d: TH_LO %d, TH_HI %d, NSEQ_LO %d, NSEQ_HI %d\n",sector,
67 cpp->asic_params.thresh_lo,
68 cpp->asic_params.thresh_hi,
69 cpp->asic_params.n_seq_lo,
70 cpp->asic_params.n_seq_hi);
75 FTPV1P0_CPP_SR::~FTPV1P0_CPP_SR()
80 int FTPV1P0_CPP_SR::getClusters(
int PadRow,
int Pad,
88 if (PadRow==0 || PadRow>FTP_PADROWS) {
89 printf(
" %s %d padrow not a legal value: %d\n", __FILE__,__LINE__,PadRow);
92 padkr->get(PadRow, Pad, &ent);
94 printf(
" %s %d no CPP bank for sector %d\n",__FILE__,__LINE__,sector);
95 printf(
" PadRow %d, Pad %d\n", PadRow, Pad);
100 clusters[Pad-1] = (
ASIC_Cluster *)(bank->entry + 32*ent.offset);
101 for (i=0; i<31; i++) {
102 if (clusters[Pad-1][i].start_time_bin < 0)
break;
110 int FTPV1P0_CPP_SR::MemUsed()