]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliESDpid.cxx
Cleaning the task in the destructor if it was posted
[u/mrichter/AliRoot.git] / STEER / AliESDpid.cxx
index 1b92e349a048e50f1540b05baa4f368a40e96e04..4fac2ff281d7ad641d60f0caf35c381ab92cc0e1 100644 (file)
@@ -47,6 +47,18 @@ Int_t AliESDpid::MakePID(AliESD *event)
       for (Int_t j=0; j<ns; j++) p[j]*=d[j];
     }
 
+    if ((t->GetStatus()&AliESDtrack::kTRDpid )!=0) {
+      Double_t d[10];
+      t->GetTRDpid(d);
+      for (Int_t j=0; j<ns; j++) p[j]*=d[j];
+    }
+
+    if ((t->GetStatus()&AliESDtrack::kTOFpid )!=0) {
+      Double_t d[10];
+      t->GetTOFpid(d);
+      for (Int_t j=0; j<ns; j++) p[j]*=d[j];
+    }
+
     t->SetESDpid(p);
   }
   return 0;