Latest Fixes from M.Bondila
[u/mrichter/AliRoot.git] / ITS / AliITSClusterFinderSDD.cxx
index fb44bc7524b83b3deee1f3f0f7f4d05707514eee..84e9a2afc74c15e265c8c92a619c1b6903d935c6 100644 (file)
@@ -232,8 +232,10 @@ void AliITSClusterFinderSDD::Find1DClusters()
          Float_t clusterMult = 0.;
          Float_t clusterPeakAmplitude = 0.;
           Int_t its;
+         Float_t n, baseline;
+         fResponse->GetNoiseParam(n,baseline);
          for(its=tstart; its<=tstop; its++) {
-            fadc=fMapA2->GetSignal(idx,its);
+            fadc=fMapA2->GetSignal(idx,its)-baseline;
            clusterCharge += fadc;
            if(fadc > clusterPeakAmplitude) clusterPeakAmplitude = fadc;
            clusterTime += fadc*its;