Patch to fix nTimeBins in case of reconstruction from digits (Theo)
authorcblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 8 Mar 2010 11:03:44 +0000 (11:03 +0000)
committercblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 8 Mar 2010 11:03:44 +0000 (11:03 +0000)
TRD/AliTRDReconstructor.cxx

index 7a21c74..269e51d 100644 (file)
@@ -190,6 +190,8 @@ void AliTRDReconstructor::Reconstruct(AliRawReader *rawReader
   fClusterizer->SetUseLabels(kFALSE);
   fClusterizer->Raw2ClustersChamber(rawReader);
   
+  fgNTimeBins = fClusterizer->GetNTimeBins();
+  
   if(IsWritingClusters()) return;
 
   // take over ownership of clusters
@@ -199,8 +201,6 @@ void AliTRDReconstructor::Reconstruct(AliRawReader *rawReader
   // take over ownership of online tracklets
   fgTracklets = fClusterizer->TrackletsArray();
   fClusterizer->SetTrackletsOwner(kFALSE);
-
-  fgNTimeBins = fClusterizer->GetNTimeBins();
 }
 
 //_____________________________________________________________________________
@@ -219,6 +219,8 @@ void AliTRDReconstructor::Reconstruct(TTree *digitsTree
   clusterer.ReadDigits(digitsTree);
   clusterer.MakeClusters();
 
+  fgNTimeBins = clusterer.GetNTimeBins();
+
   if(IsWritingClusters()) return;
 
   // take over ownership of clusters
@@ -229,8 +231,6 @@ void AliTRDReconstructor::Reconstruct(TTree *digitsTree
   fgTracklets = clusterer.TrackletsArray();
   clusterer.SetTrackletsOwner(kFALSE);
 
-  fgNTimeBins = clusterer.GetNTimeBins();
-
 }
 
 //_____________________________________________________________________________