Sort the cells incoming to the clusterizer and not afterwards.
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 15 Mar 2011 14:41:32 +0000 (14:41 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 15 Mar 2011 14:41:32 +0000 (14:41 +0000)
PWG4/CaloCalib/AliAnalysisTaskEMCALClusterizeFast.cxx

index 214d95e..6c983d1 100644 (file)
@@ -193,7 +193,6 @@ void AliAnalysisTaskEMCALClusterizeFast::UpdateCells(AliAODEvent *event)
     cells->SetCell(icell, cellNumber, cellAmplitude, cellTime);
     idigit++;
   }
-  cells->Sort();
 }
 
 //________________________________________________________________________
@@ -216,7 +215,6 @@ void AliAnalysisTaskEMCALClusterizeFast::UpdateCells(AliESDEvent *event)
     cells->SetCell(icell, cellNumber, cellAmplitude, cellTime);
     idigit++;
   }
-  cells->Sort();
 }
 
 //________________________________________________________________________
@@ -295,6 +293,7 @@ void AliAnalysisTaskEMCALClusterizeFast::FillDigitsArray(AliAODEvent *event)
     }
     idigit++;
   }
+  fDigitsArr->Sort();
 }
 
 //________________________________________________________________________