33 #include <sys/types.h>
39 #include "StDaqLib/GENERIC/EventReader.hh"
40 #include "StDaqLib/SVT/SVTV1P0.hh"
41 #include "StDaqLib/SVT/SVTV1P0_Reader.hh"
45 int main(
int argc,
char *argv[])
50 u_char *(padlist[TPC_PADROWS]);
52 int histogram[50] = {50*0};
56 printf(
"Usage: %s file.daq\n",argv[0]);
60 fd = open(argv[1],O_RDONLY);
64 printf(
"Bad filename %s",argv[1]);
69 for (eventNo=0; eventNo < 1; eventNo++ )
71 EventReader *er = getEventReader(fd,offset,
"log",0);
74 printf(
"No event reader...\n");
85 offset = er->NextEventOffset();
92 printf(
"No SVT reader\n");
100 for(
int ii=1;ii<=3;ii++) {
101 int lads[3] = { 8,12,16 };
103 for(
int jj=1;jj<=lads[ii-1];jj++) {
104 int wafs[3] = { 4,6,7 };
106 for(
int kk=1;kk<=wafs[ii-1];kk++) {
122 int nSeq, anode, hybrid;
128 for(
int ll=1;ll<=2;ll++) {
131 nAnodes = zsr->getPadList(ll, &AnodeList);
134 for(
int an = 0;an<nAnodes;an++) {
137 int ret = zsr->getSequences(ll, AnodeList[an], &nSeq, &Seq);
140 for(
int seq = 0;seq<nSeq;seq++) {
142 for(
int iii=0;iii<Seq[seq].Length;iii++) {
143 printf(
"%d %d %d %d %d %d %d\n",
144 ii,jj,kk,ll,AnodeList[an],
145 iii + Seq[seq].startTimeBin,
146 Seq[seq].FirstAdc[iii]);