]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Added npatches to Init.
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 18 Apr 2002 14:06:23 +0000 (14:06 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 18 Apr 2002 14:06:23 +0000 (14:06 +0000)
HLT/src/AliLevel3.cxx
HLT/src/AliLevel3.h

index f2dea51041ba7bee0ddfa022f5fae4f1b952a34b..143a39cc748f7cd559f81f661688feca8303e87a 100644 (file)
@@ -111,7 +111,7 @@ AliLevel3::AliLevel3(TFile *in, TFile *out){
   Init();
 }
 
-void AliLevel3::Init(){
+void AliLevel3::Init(Int_t npatches=6){
   fWriteOut = kFALSE;
   fGlobalMerger=0;
   fTransformer = new AliL3Transform();
@@ -124,20 +124,22 @@ void AliLevel3::Init(){
   SetPath("");
   fFindVertex =kFALSE;
   fEvent=0;
-  if(1){
-    fNPatch = 1;   //number of patches change row in process
+
+  switch(npatches){
+  case 1:
+    fNPatch = 1;        //number of patches change row in process
     fRow[0][0] = 0;     // first row
     fRow[0][1] = 175;   // last row
-  }
-  if(0){
-    fNPatch = 2;   //number of patches change row in process
+    break;
+  case 2:
+    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] = 175;   // last row
-  }
-  if(0){
-    fNPatch = 5;   //number of patches change row in process
+    break;
+  case 5:
+    fNPatch = 5;        //number of patches change row in process
     fRow[0][0] = 0;     // first row
     fRow[0][1] = 45;
     fRow[1][0] = 46;
@@ -148,9 +150,9 @@ void AliLevel3::Init(){
     fRow[3][1] = 141;
     fRow[4][0] = 142;
     fRow[4][1] = 175;   // last row
-  }
-  if(0){
-    fNPatch = 6;   //number of patches change row in process
+    break;
+  default:
+    fNPatch = 6;        //number of patches change row in process
     fRow[0][0] = 0;     // first row
     fRow[0][1] = 31;
     fRow[1][0] = 32;
@@ -164,6 +166,7 @@ void AliLevel3::Init(){
     fRow[5][0] = 144;
     fRow[5][1] = 175;   // last row 
   }
+
   fVertexFinder = new AliL3VertexFinder();
   fVertex = new AliL3Vertex();
   fTracker = new AliL3ConfMapper();
index a464c644c0a71c4cccea5fea1c436462e174e89f..f5cd43f257d7a362cf5a33f88ee7508aec835537 100644 (file)
@@ -59,7 +59,7 @@ class AliLevel3 : public TObject {
   Bool_t fDoNonVertex;
   Bool_t fClusterDeconv;
   Int_t fEvent;
-  void Init();
+  void Init(Int_t npatches=6);
   void WriteSpacePoints(UInt_t npoints,AliL3SpacePointData *points,
                                              Int_t slice,Int_t patch);
   void WriteResults();