]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
ZS offset and threshold are reading from the data stream, if no RecoParams specified.
authorpolicheh <policheh@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 15 Sep 2009 13:27:45 +0000 (13:27 +0000)
committerpolicheh <policheh@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 15 Sep 2009 13:27:45 +0000 (13:27 +0000)
PHOS/AliPHOSRawDigiProducer.cxx

index 7a3fe0aa30e1b71fb0de5f3daf0c9c6f5c68c7c3..8a9204956f8e6cb71a011ffa1dca764eb2a0d3a0 100644 (file)
@@ -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;