Solved bug which gave a difference to the VHLD code.
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 2 Jul 2002 13:00:43 +0000 (13:00 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 2 Jul 2002 13:00:43 +0000 (13:00 +0000)
HLT/misc/AliL3VHDLClusterFinder.cxx

index f451903f9cbbc0e4d6c33276ece3de77c6bd9b39..d8bb0b7dedf9fc10f17706755ab856b01de195c3 100644 (file)
@@ -21,7 +21,8 @@
 // Most important parameters:
 // fThreshold - threshold for noise clusters
 // fMatch - length in time for overlapping sequences
-//</pre> */
+//</pre> 
+*/
 
 ClassImp(AliL3VHDLClusterFinder)
 
@@ -100,7 +101,8 @@ void AliL3VHDLClusterFinder::ProcessDigits()
     fSeq.fPad2=sp;
     fSeq.fTime2=st; 
     fSeq.fMean=0;
-    if(tc!=0) fSeq.fMean=mt/tc;
+    //if(tc!=0) fSeq.fMean=mt/tc;
+    if(tc!=0) fSeq.fMean=rtime-i/2;    
     fSeq.fMerge=0;
     fSeq.fRow=rrow;
     fSeq.fLastPad=rpad;
@@ -181,7 +183,7 @@ void AliL3VHDLClusterFinder::CompareSeq()
 void AliL3VHDLClusterFinder::MergeSeq()
 {
 #ifdef DEBUG
-  fprintf(fdeb,"merged with Mean=%d TC=%d (new Merge=%d)\n",fSeqs[fPList[fRP]].fMean,fSeqs[fPList[fRP]].fTotalCharge,fSeqs[fPList[fRP]].fMerge+1);
+  fprintf(fdeb,"merged with Mean=%d TC=%d (new Merge=%d) %d %d\n",fSeqs[fPList[fRP]].fMean,fSeqs[fPList[fRP]].fTotalCharge,fSeqs[fPList[fRP]].fMerge+1,fRow,fPad);
 #endif
   if(fSeqs[fPList[fRP]].fRow==fSeq.fRow){
     LOG(AliL3Log::kWarning,"AliL3VHDLClusterFinder::","Memory Check")
@@ -211,7 +213,7 @@ void AliL3VHDLClusterFinder::MergeSeq()
 void AliL3VHDLClusterFinder::InsertSeq()
 {
 #ifdef DEBUG
-  fprintf(fdeb,"inserted\n");
+  fprintf(fdeb,"inserted %d %d\n",fRow,fPad);
 #endif
   NextFreeIndex();    //get next index
   fSeqs[fFirst]=fSeq; //store data