From: policheh Date: Tue, 15 Sep 2009 13:27:45 +0000 (+0000) Subject: ZS offset and threshold are reading from the data stream, if no RecoParams specified. X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=c4dad9d245dec5256011b4610bd8f654602a044e;p=u%2Fmrichter%2FAliRoot.git ZS offset and threshold are reading from the data stream, if no RecoParams specified. --- diff --git a/PHOS/AliPHOSRawDigiProducer.cxx b/PHOS/AliPHOSRawDigiProducer.cxx index 7a3fe0aa30e..8a9204956f8 100644 --- a/PHOS/AliPHOSRawDigiProducer.cxx +++ b/PHOS/AliPHOSRawDigiProducer.cxx @@ -168,6 +168,18 @@ void AliPHOSRawDigiProducer::MakeDigits(TClonesArray *digits, AliPHOSRawFitterv0 if(caloFlag!=0 && caloFlag!=1) continue; //TRU data! + if(fitter->GetAmpOffset()==0 && fitter->GetAmpThreshold()==0) { + short value = fRawStream->GetAltroCFG1(); + bool ZeroSuppressionEnabled = (value >> 15) & 0x1; + if(ZeroSuppressionEnabled) { + short offset = (value >> 10) & 0xf; + short threshold = value & 0x3ff; + fitter->SubtractPedestals(kFALSE); + fitter->SetAmpOffset(offset); + fitter->SetAmpThreshold(threshold); + } + } + fGeom->RelToAbsNumbering(relId, absId); Int_t nBunches = 0;