From 6aec85a4fe6db9040f1b7880c452a2a65d702c3e Mon Sep 17 00:00:00 2001 From: loizides Date: Tue, 2 Jul 2002 13:00:43 +0000 Subject: [PATCH] Solved bug which gave a difference to the VHLD code. --- HLT/misc/AliL3VHDLClusterFinder.cxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/HLT/misc/AliL3VHDLClusterFinder.cxx b/HLT/misc/AliL3VHDLClusterFinder.cxx index f451903f9cb..d8bb0b7dedf 100644 --- a/HLT/misc/AliL3VHDLClusterFinder.cxx +++ b/HLT/misc/AliL3VHDLClusterFinder.cxx @@ -21,7 +21,8 @@ // Most important parameters: // fThreshold - threshold for noise clusters // fMatch - length in time for overlapping sequences -// */ +// +*/ 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 -- 2.39.3