Latest Fixes from M.Bondila
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 13 Jul 2000 16:42:22 +0000 (16:42 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 13 Jul 2000 16:42:22 +0000 (16:42 +0000)
ITS/AliITSClusterFinderSDD.cxx
ITS/ITSDigitsToClusters.C

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;
index 6aab113048f88ed68c5a5c395e71e3d723292013..936c8ddc6ba5ea5b71f3b72f132561316f3aadf7 100644 (file)
@@ -69,6 +69,7 @@ void ITSDigitsToClusters (Int_t evNumber1=0,Int_t evNumber2=0)
    if (!seg1) seg1 = new AliITSsegmentationSDD(geom);
    AliITSresponseSDD *res1 = (AliITSresponseSDD*)iDetType->GetResponseModel();
    if (!res1) res1=new AliITSresponseSDD();
+   res1->SetNoiseParam(0.,0.);
    TClonesArray *dig1  = ITS->DigitsAddress(1);
    TClonesArray *recp1  = ITS->ClustersAddress(1);
    AliITSClusterFinderSDD *rec1=new AliITSClusterFinderSDD(seg1,res1,dig1,recp1);