From: belikov Date: Mon, 24 Jan 2011 08:07:06 +0000 (+0000) Subject: Taking the event time from the TOF response itself (A. De Caro) X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=2150d133285a1bf63031935be363da0284bb73fe;hp=24580f3cd38ad8d34eae652d558ad057a52e779d Taking the event time from the TOF response itself (A. De Caro) --- diff --git a/STEER/AliESDpid.h b/STEER/AliESDpid.h index 4ca67b9fc3a..c8e9c4a21fe 100644 --- a/STEER/AliESDpid.h +++ b/STEER/AliESDpid.h @@ -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 {