From: loizides Date: Mon, 10 Jun 2002 08:12:28 +0000 (+0000) Subject: Check consecutive rows. X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=8c594a587cd02c63993c69cbae246dc091100e5c;p=u%2Fmrichter%2FAliRoot.git Check consecutive rows. --- diff --git a/HLT/programs/read.cxx b/HLT/programs/read.cxx index 121f982ca61..55be3aa7d37 100644 --- a/HLT/programs/read.cxx +++ b/HLT/programs/read.cxx @@ -17,7 +17,7 @@ data format. int main(int argc,char **argv) { - UInt_t nrows=175; + Int_t nrows=175; Bool_t altroout=kFALSE; FILE *afile=0; @@ -53,7 +53,7 @@ int main(int argc,char **argv) //Read the file, and store the data in memory. Return value is a pointer to the data. digits = file.CompBinary2Memory(ndigits); - if(ndigitsfDigitData; + if(lrow+1==row) crows++; //Loop over all digits on this padrow: for(UInt_t ndig=0; ndigfNDigit; ndig++) + //for(UInt_t ndig=digits->fNDigit;ndig>0;ndig--) { + lrow=row; pad = dataPt[ndig].fPad; time = dataPt[ndig].fTime; charge = dataPt[ndig].fCharge; @@ -84,5 +88,7 @@ int main(int argc,char **argv) altromem.WriteFinal(); fclose(afile); } + + cerr << "Rows: " << nrows << " Consecutive: " << crows << endl; return 0; }