From a5109bed4631382da60d86c5cbb5e59298007515 Mon Sep 17 00:00:00 2001 From: vestbo Date: Fri, 8 Nov 2002 16:02:33 +0000 Subject: [PATCH] Severe bugfix in Memory2CompMemory. Actually this bug was introduced by myself some weeks ago, but for some strange reason did not cause any crashes until now. The problem was checking for ADC saturation, which uses AliL3Transform::GetADCSat(), but this is sometimes set to 1024 and this of course is a problem since we are only reserving 10 bits per ADC when writing to binary files. I actually spend 2 hours figuring out this FUCKING bug. --- HLT/src/AliL3MemHandler.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/HLT/src/AliL3MemHandler.cxx b/HLT/src/AliL3MemHandler.cxx index 3b94bd9aa50..4f9aea8ad66 100644 --- a/HLT/src/AliL3MemHandler.cxx +++ b/HLT/src/AliL3MemHandler.cxx @@ -651,8 +651,8 @@ Int_t AliL3MemHandler::Memory2CompMemory(UInt_t nrow, } while(digitfNDigit && row_pt->fDigitData[digit].fPad == pad){ UShort_t charge = row_pt->fDigitData[digit].fCharge; - if(charge>=AliL3Transform::GetADCSat()){ - charge=AliL3Transform::GetADCSat(); + if(charge>=1023){ + charge=1023; } Write(comp,index,subindex,charge); if(digit+1fNDigit&&row_pt->fDigitData[digit+1].fPad == pad){ @@ -669,7 +669,7 @@ Int_t AliL3MemHandler::Memory2CompMemory(UInt_t nrow, Write(comp,index,subindex,0); Write(comp,index,subindex,0); } - + Int_t size = sizeof(AliL3DigitData) * row_pt->fNDigit+ sizeof(AliL3DigitRowData); Byte_t *byte_pt =(Byte_t *) row_pt; -- 2.39.3