45 #include "StDaqLib/GENERIC/EventReader.hh"
49 using namespace OLDEVP;
58 memset((
char *)banks, 0,
sizeof(banks));
61 int TPCV1P0_CPP_SR::initialize()
65 padkr = detector->getPADKReader(sector);
66 if (!padkr)
return FALSE;
70 for(
int rcb = 0; rcb < 6; rcb++)
72 for(
int mz = 0; mz < 3; mz++)
74 banks[rcb][mz] = detector->getBankTPCCPPR(sector,rcb,mz);
80 TPCV1P0_CPP_SR::~TPCV1P0_CPP_SR()
85 int TPCV1P0_CPP_SR::getClusters(
int PadRow,
int Pad,
93 if (PadRow==0 || PadRow>TPC_PADROWS) {
94 printf(
" %s %d padrow not a legal value: %d\n", __FILE__,__LINE__,PadRow);
97 padkr->get(PadRow, Pad, &ent);
98 if(((mz=ent.mz) == 0) || ((rb=ent.rb) == 0)) {
99 printf(
" %s %d mz: %d rb: %d\n", __FILE__,__LINE__,rb,mz);
100 printf(
" PadRow %d, Pad %d\n", PadRow, Pad);
103 if (!(
void *)banks[rb-1][mz-1]) {
104 printf(
" %s %d no CPP bank for rb: %d mz: %d\n", __FILE__,__LINE__,rb,mz);
105 printf(
" PadRow %d, Pad %d\n", PadRow, Pad);
110 clusters[Pad-1] = (
ASIC_Cluster *)(banks[rb-1][mz-1]->entry + 32*ent.offset);
111 for (i=0; i<31; i++) {
112 if (clusters[Pad-1][i].start_time_bin < 0)
break;
120 int TPCV1P0_CPP_SR::MemUsed()