]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Taking the event time from the TOF response itself (A. De Caro)
authorbelikov <belikov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 24 Jan 2011 08:07:06 +0000 (08:07 +0000)
committerbelikov <belikov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 24 Jan 2011 08:07:06 +0000 (08:07 +0000)
STEER/AliESDpid.h

index 4ca67b9fc3ac728d995eea7447f53a8f43c9d05b..c8e9c4a21fe63159aff388488b465dc1672f5a42 100644 (file)
@@ -73,10 +73,10 @@ inline Float_t AliESDpid::NumberOfSigmasTPC(const AliESDtrack *track, AliPID::EP
   return fTPCResponse.GetNumberOfSigmas(mom,track->GetTPCsignal(),track->GetTPCsignalN(),type); 
 }
 
-inline Float_t AliESDpid::NumberOfSigmasTOF(const AliESDtrack *track, AliPID::EParticleType type, const Float_t timeZeroTOF) const {
+inline Float_t AliESDpid::NumberOfSigmasTOF(const AliESDtrack *track, AliPID::EParticleType type, const Float_t /*timeZeroTOF*/) const {
   Double_t times[AliPID::kSPECIES];
   track->GetIntegratedTimes(times);
-  return (track->GetTOFsignal() - timeZeroTOF - times[type])/fTOFResponse.GetExpectedSigma(track->GetP(),times[type],AliPID::ParticleMass(type));
+  return (track->GetTOFsignal() - fTOFResponse.GetStartTime(track->GetP()) - times[type])/fTOFResponse.GetExpectedSigma(track->GetP(),times[type],AliPID::ParticleMass(type));
 }
 
 inline Float_t AliESDpid::NumberOfSigmasITS(const AliESDtrack *track, AliPID::EParticleType type) const {