]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HMPID/AliHMPIDtrack.cxx
Removing centrality check from default:
[u/mrichter/AliRoot.git] / HMPID / AliHMPIDtrack.cxx
index 451a83c99ac883abcd1d08934569a81fe7545a7e..8a9b936881669b3a578bf5a22799db82ea0d3b7e 100644 (file)
@@ -16,6 +16,7 @@
 #include "AliESDtrack.h" 
 #include "AliTracker.h" 
 #include "AliHMPIDtrack.h" 
+#include "AliPID.h" 
 
 ClassImp(AliHMPIDtrack)
 
@@ -41,13 +42,14 @@ AliHMPIDtrack::AliHMPIDtrack(const AliESDtrack& t):AliKalmanTrack()
   //
   SetLabel(t.GetLabel());
   SetChi2(0.);
-  SetMass(t.GetMass());
+  SetMass(t.GetMassForTracking());
 
   Set(t.GetX(),t.GetAlpha(),t.GetParameter(),t.GetCovariance());
 
   if ((t.GetStatus()&AliESDtrack::kTIME) == 0) return;
   StartTimeIntegral();
-  Double_t times[10]; t.GetIntegratedTimes(times); SetIntegratedTimes(times);
+  Double_t times[AliPID::kSPECIESC]; 
+  t.GetIntegratedTimes(times,AliPID::kSPECIESC); SetIntegratedTimes(times);
   SetIntegratedLength(t.GetIntegratedLength());
 }              
 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++