]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCClusterFinder.cxx
Processing of many events possible now
[u/mrichter/AliRoot.git] / TPC / AliTPCClusterFinder.cxx
index 4f8af57d3333f44fae1409e17582a640d690beb2..2e91abf9c206186f1f318decbe96024b4d8b03ac 100644 (file)
 
 /*
 $Log$
+Revision 1.4  2000/10/05 16:08:15  kowal2
+Changes due to a new class AliComplexCluster. Forward declarations.
+
+Revision 1.3  2000/07/10 20:57:39  hristov
+Update of TPC code and macros by M.Kowalski
+
 Revision 1.2  2000/06/30 12:07:49  kowal2
 Updated from the TPC-PreRelease branch
 
@@ -25,7 +31,7 @@ replacing AliClusterFinder
 
 //-----------------------------------------------------------------------------
 //
-//  Implementation of class ALICLUSTERFINDER
+//  Implementation of class ALITPCCLUSTERFINDER
 // 
 //Class for cluster finding in two dimension.
 //In the present there are implemented two algorithm
@@ -49,7 +55,7 @@ replacing AliClusterFinder
 #include "TRandom.h"
 #include "AliH2F.h"
 #include "TMarker.h"
-#include "AliCluster.h"
+#include "AliComplexCluster.h"
 #include "AliTPCClusterFinder.h"
 #include <fstream.h>
 
@@ -628,17 +634,6 @@ Float_t   AliTPCClusterFinder::GetVirtualSignal(Float_t ri, Float_t rj)
 
 
 
-void AliTPCClusterFinder::Streamer(TBuffer & R__b)
-{
-  if (R__b.IsReading()) {
-    //      Version_t R__v = R__b.ReadVersion();
-   } else {
-      R__b.WriteVersion(AliTPCClusterFinder::IsA());    
-   } 
-}
-
-
-
 void AliTPCClusterFinder::SetBlockIndex(Int_t * index)
 {
   //
@@ -782,7 +777,7 @@ TClonesArray * AliTPCClusterFinder::FindPeaks3(TClonesArray *arr)
           for ( Int_t dd =1;((dd<=dmax) && (naccepted>0));dd++){
              naccepted=0; 
             for (Int_t di = -dd;di<=dd;di++){
-              Int_t ddj = dd-abs(di);
+              Int_t ddj = dd-TMath::Abs(di);
               Int_t sigstart = (ddj>0) ?  -1 : 0;
               for (Int_t sig = sigstart;sig<=1;sig+=2){
                 Int_t dj= sig*ddj; 
@@ -916,7 +911,7 @@ void AliTPCClusterFinder::DrawCluster(
   //draw marker for each of cluster
   Int_t ncl=fClustersArray->GetEntriesFast();
   for (Int_t i=0;i<ncl;i++){
-    AliCluster *cl = (AliCluster*)fClustersArray->UncheckedAt(i);
+    AliComplexCluster *cl = (AliComplexCluster*)fClustersArray->UncheckedAt(i);
     TMarker * marker = new TMarker;
     marker->SetX(cl->fX);
     marker->SetY(cl->fY);