]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
bug fix in AliTOFtracker when ESD seeds array are empty for matching
authorFrancesco Noferini <noferini@pcali7.bo.infn.it>
Mon, 20 Jan 2014 14:21:16 +0000 (15:21 +0100)
committerFrancesco Noferini <noferini@pcali7.bo.infn.it>
Mon, 20 Jan 2014 14:21:16 +0000 (15:21 +0100)
TOF/AliTOFtracker.cxx

index aecefb87e88d548fbe47bcc858e13a2c6b33de38..afc220d3f3df4406d5ca9e6f10f40b24155b36d6 100644 (file)
@@ -172,7 +172,7 @@ Int_t AliTOFtracker::PropagateBack(AliESDEvent * const event) {
   if(fNTOFmatched==0)
     event->SetTOFcluster(1,fClusterESD);
 
-  if (fN==0) {
+  if (fNTOFmatched==0) {
     AliInfo("No TOF recPoints to be matched with reconstructed tracks");
     return 0;
   }
@@ -210,6 +210,7 @@ Int_t AliTOFtracker::PropagateBack(AliESDEvent * const event) {
   CollectESD();
 
   if (fNseeds==0 || fNseedsTOF==0) {
+    event->SetTOFcluster(1,fClusterESD);
     AliInfo("No seeds to try TOF match");
     return 0 ;
   }
@@ -1095,6 +1096,7 @@ Int_t AliTOFtracker::LoadClusters(TTree *cTree) {
 
   AliInfo(Form("Number of clusters: %d",nc));
 
+  fN = 0;
   fNTOFmatched = 0;
   for(Int_t i=0; i< 20000;i++){
     if(fClusterESD[i]){