]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliESDpid.cxx
Sigmas set to 3.
[u/mrichter/AliRoot.git] / STEER / AliESDpid.cxx
index e512d95a25d282399fe6b0c579d39b2c677dff43..8a3daa92f78a97455682433ca63497aef84be150 100644 (file)
 //-----------------------------------------------------------------
 
 #include "AliESDpid.h"
-#include "AliESD.h"
+#include "AliESDEvent.h"
 #include "AliESDtrack.h"
 
 ClassImp(AliESDpid)
 
 //_________________________________________________________________________
-Int_t AliESDpid::MakePID(AliESD *event)
+Int_t AliESDpid::MakePID(AliESDEvent *event)
 {
   //
   // Combine the information of various detectors
@@ -81,18 +81,9 @@ Int_t AliESDpid::MakePID(AliESD *event)
       for (j=0; j<ns; j++) p[j]*=d[j];
     }
 
-    if ((t->GetStatus()&AliESDtrack::kPHOSpid )!=0) {
+    if ((t->GetStatus()&AliESDtrack::kHMPIDpid )!=0) {
       Double_t d[10];
-      t->GetPHOSpid(d);
-      Int_t j, ok=0;
-      for (j=0; j<ns; j++) if (d[j]>keps) ok=1;
-      if (ok) 
-      for (j=0; j<ns; j++) p[j]*=d[j];
-    }
-
-    if ((t->GetStatus()&AliESDtrack::kRICHpid )!=0) {
-      Double_t d[10];
-      t->GetRICHpid(d);
+      t->GetHMPIDpid(d);
       Int_t j, ok=0;
       for (j=0; j<ns; j++) if (d[j]>keps) ok=1;
       if (ok)