]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
minor changes for Benchmark
authorfranken <franken@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 4 Apr 2001 09:24:59 +0000 (09:24 +0000)
committerfranken <franken@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 4 Apr 2001 09:24:59 +0000 (09:24 +0000)
HLT/src/AliLevel3.cxx

index 12a774a5579fe4ef1447d4304ad97a2ad7442b94..b6bac2674ab80438eb17ef3df59e1eea9236e5cb 100644 (file)
@@ -113,18 +113,31 @@ void AliLevel3::Init(){
   fUseBinary =kFALSE;
   SetPath("");
   fFindVertex =kTRUE;
-  fNPatch = 5;   //number of patches change row in process 
-  fRow[0][0] = 0;     // first row
-//  fRow[0][1] = 173;   // last row
-  fRow[0][1] = 45;
-  fRow[1][0] = 46;
-  fRow[1][1] = 77;
-  fRow[2][0] = 78;
-  fRow[2][1] = 109;
-  fRow[3][0] = 110;
-  fRow[3][1] = 141;
-  fRow[4][0] = 142;
-  fRow[4][1] = 173;   // last row
+  if(0){
+    fNPatch = 1;   //number of patches change row in process
+    fRow[0][0] = 0;     // first row
+    fRow[0][1] = 173;   // last row
+  }
+  if(0){
+    fNPatch = 2;   //number of patches change row in process
+    fRow[0][0] = 0;     // first row
+    fRow[0][1] = 54;
+    fRow[1][0] = 55;
+    fRow[1][1] = 173;   // last row
+  }
+  if(1){
+    fNPatch = 5;   //number of patches change row in process
+    fRow[0][0] = 0;     // first row
+    fRow[0][1] = 45;
+    fRow[1][0] = 46;
+    fRow[1][1] = 77;
+    fRow[2][0] = 78;
+    fRow[2][1] = 109;
+    fRow[3][0] = 110;
+    fRow[3][1] = 141;
+    fRow[4][0] = 142;
+    fRow[4][1] = 173;   // last row
+  }
   fVertexFinder = new AliL3VertexFinder();
   fVertex = new AliL3Vertex();
   fTracker = new AliL3ConfMapper();
@@ -292,34 +305,13 @@ void AliLevel3::ProcessSlice(Int_t slice){
         fBenchmark->Stop("Unpacker"); 
         memory->Free();
       }
-
-/*
-      points = (AliL3SpacePointData *) memory->Allocate(pointsize);
-  
-      fClusterFinder = new AliL3ClustFinder(fTransformer);
-      fClusterFinder->InitSlice(slice,patch,fRow[patch][0],fRow[patch][1]
-                                                               ,maxpoints);
-      fClusterFinder->SetXYError(0.1);
-      fClusterFinder->SetZError(0.2);
-      fClusterFinder->SetOutputArray(points);
-      fClusterFinder->Read(ndigits,digits);
-      fBenchmark->Start("Cluster Finder");
-      fClusterFinder->ProcessDigits();
-      fBenchmark->Stop("Cluster Finder");
-      npoints = fClusterFinder->GetNumberOfClusters();
-      delete fClusterFinder;
-      fClusterFinder =0;
-      fFileHandler->Free();
-
-    LOG(AliL3Log::kInformational,"AliLevel3::ProcessSlice","Cluster Finder")
-      <<AliL3Log::kDec<<"Found "<<npoints<<" Points"<<ENDLOG;
-*/
-    }
-
+    }//end UseBinary
     else{
 #ifdef use_aliroot
       if(UseCF){
+        fBenchmark->Start("Dummy Unpacker");
         sprintf(name,"digits_%d_%d.raw",slice,patch);
+        fBenchmark->Stop("Dummy Unpacker");
 
         if(0){    //Ali to Binary
           fFileHandler->SetBinaryOutput(name);
@@ -362,7 +354,13 @@ void AliLevel3::ProcessSlice(Int_t slice){
     
 #ifdef use_aliroot
     // if not use Clusterfinder
-    if(!UseCF)  points = fFileHandler->AliPoints2Memory(npoints);
+    if(!UseCF){
+      points = fFileHandler->AliPoints2Memory(npoints);
+        fBenchmark->Start("Dummy Unpacker");
+        fBenchmark->Stop("Dummy Unpacker");
+        fBenchmark->Start("Dummy CF");
+        fBenchmark->Stop("Dummy CF");
+    }
 #endif
    
     if(patch == fNPatch-1){