Bugfix related to the filling of MC labels
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 25 Oct 2004 12:58:40 +0000 (12:58 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 25 Oct 2004 12:58:40 +0000 (12:58 +0000)
HLT/hough/AliL3HoughTransformerRow.cxx
HLT/hough/AliL3HoughTransformerRow.h

index 7773d99583288917744a680e75086531018c3bd8..a914544a1bc209c426d28831407b514dc46208d1 100644 (file)
@@ -803,7 +803,7 @@ void AliL3HoughTransformerRow::TransformCircleFromDigitArray()
              etaclust[etaindex].fEndPad = pad;
              etaclust[etaindex].fIsFound = 1;
 #ifdef do_mc
-             FillClusterMCLabels(digPt[j],etaclust[etaindex]);
+             FillClusterMCLabels(digPt[j],&etaclust[etaindex]);
 #endif
              continue;
            }
@@ -813,7 +813,7 @@ void AliL3HoughTransformerRow::TransformCircleFromDigitArray()
                {
                  etaclust[etaindex].fEndPad = pad;
 #ifdef do_mc
-                 FillClusterMCLabels(digPt[j],etaclust[etaindex]);
+                 FillClusterMCLabels(digPt[j],&etaclust[etaindex]);
 #endif
                }
              else
@@ -825,7 +825,7 @@ void AliL3HoughTransformerRow::TransformCircleFromDigitArray()
 
 #ifdef do_mc
                  memset(etaclust[etaindex].fMcLabels,0,MaxTrack);
-                 FillClusterMCLabels(digPt[j],etaclust[etaindex]);
+                 FillClusterMCLabels(digPt[j],&etaclust[etaindex]);
 #endif
                }
            }
@@ -1269,7 +1269,7 @@ inline void AliL3HoughTransformerRow::FillCluster(UChar_t i,Int_t etaindex,AliL3
 }
 
 #ifdef do_mc
-inline void AliL3HoughTransformerRow::FillClusterMCLabels(AliL3DigitData digpt,AliL3EtaRow etaclust)
+inline void AliL3HoughTransformerRow::FillClusterMCLabels(AliL3DigitData digpt,AliL3EtaRow *etaclust)
 {
   for(Int_t t=0; t<3; t++)
     {
@@ -1277,10 +1277,10 @@ inline void AliL3HoughTransformerRow::FillClusterMCLabels(AliL3DigitData digpt,A
       if(label < 0) break;
       UInt_t c;
       for(c=0; c<(MaxTrack-1); c++)
-       if(etaclust.fMcLabels[c] == label || etaclust.fMcLabels[c] == 0)
+       if(etaclust->fMcLabels[c] == label || etaclust->fMcLabels[c] == 0)
          break;
 
-      etaclust.fMcLabels[c] = label;
+      etaclust->fMcLabels[c] = label;
     }
 }
 #endif
index 1331274efe03a561117f220d51468fc2e2303456..74b055784caa8a8a066711242918e13002185b3f 100644 (file)
@@ -103,7 +103,7 @@ class AliL3HoughTransformerRow : public AliL3HoughBaseTransformer {
                             );
   inline void FillCluster(UChar_t i,Int_t etaindex,AliL3EtaRow *etaclust,Int_t ilastpatch,Int_t firstbinx,Int_t lastbinx,Int_t nbinx,Int_t firstbiny);
 #ifdef do_mc
-  inline void FillClusterMCLabels(AliL3DigitData digpt,AliL3EtaRow etaclust);
+  inline void FillClusterMCLabels(AliL3DigitData digpt,AliL3EtaRow *etaclust);
 #endif
 
   static Float_t fgBeta1,fgBeta2; // Two curves which define the Hough space