use fClusterizer data member instead of locally created/delete instance
authorshahoian <ruben.shahoyan@cern.ch>
Tue, 14 Oct 2014 10:27:01 +0000 (12:27 +0200)
committershahoian <ruben.shahoyan@cern.ch>
Tue, 14 Oct 2014 10:27:09 +0000 (12:27 +0200)
TRD/AliTRDReconstructor.cxx

index 1e93ab8..5066bd0 100644 (file)
@@ -244,16 +244,16 @@ void AliTRDReconstructor::Reconstruct(TTree *digitsTree
   }
 
   ResetContainers();
-  AliTRDclusterizer clusterizer(fgTaskNames[AliTRDrecoParam::kClusterizer], fgTaskNames[AliTRDrecoParam::kClusterizer]);
-  clusterizer.SetReconstructor(this);
-  clusterizer.SetUseLabels(kTRUE);
-  clusterizer.SetStoreRawSignals(kTRUE);
-  clusterizer.OpenOutput(clusterTree);
-  clusterizer.ReadDigits(digitsTree);
-  clusterizer.ReadTracklets();
-  clusterizer.ReadTracks();
-  clusterizer.MakeClusters();
-  fgNTimeBins = clusterizer.GetNTimeBins();
+  //  AliTRDclusterizer clusterizer(fgTaskNames[AliTRDrecoParam::kClusterizer], fgTaskNames[AliTRDrecoParam::kClusterizer]);
+  fClusterizer->SetReconstructor(this);
+  fClusterizer->SetUseLabels(kTRUE);
+  fClusterizer->SetStoreRawSignals(kTRUE);
+  fClusterizer->OpenOutput(clusterTree);
+  fClusterizer->ReadDigits(digitsTree);
+  fClusterizer->ReadTracklets();
+  fClusterizer->ReadTracks();
+  fClusterizer->MakeClusters();
+  fgNTimeBins = fClusterizer->GetNTimeBins();
 }
 
 //_____________________________________________________________________________