43 if (!pidObj)
return -9999.;
44 Double_t tofTime = 99999;
45 if (fTuneMConData && ((fTuneMConDataMask & kDetTOF) == kDetTOF) ) tofTime = (Double_t)this->GetTOFsignalTunedOnData((
AliVTrack*)vtrack);
47 const Double_t expTime=fTOFResponse.GetExpectedSignal((
AliVTrack*)vtrack,type);
53 if (tofH && (TMath::Abs(sigmaTOFPid[0]) <= 1.E-16) ) {
54 tofTime -= fTOFResponse.GetStartTime(vtrack->P());
57 AliError(
"pointer to AliAODEvent not found, please call GetTrack to set it");
61 Double_t delta=-9999.;
63 if (!ratio) delta=tofTime-expTime;
64 else if (expTime>1.e-20) delta=tofTime/expTime;
81 if (!pidObj)
return -999.;
82 Double_t tofTime = 99999;
91 if (tofH && (TMath::Abs(sigmaTOFPid[0]) <= 1.E-16) ) {
97 AliError(
"pointer to AliAODEvent not found, please call GetTrack to set it");
102 sigTOF=sigmaTOFPid[type];
105 if (sigTOF>0)
return (tofTime - expTime)/sigTOF;
Double_t GetExpectedSignal(const AliVTrack *track, AliPID::EParticleType type) const
virtual Double_t P() const
virtual Double_t P() const =0
Double_t GetTOFsignal() const
virtual Float_t GetTOFsignalTunedOnData(const AliVTrack *t) const
AliTOFPIDResponse fTOFResponse
virtual Float_t GetNumberOfSigmasTOFold(const AliVParticle *vtrack, AliPID::EParticleType type) const
Double_t GetExpectedSigma(Float_t mom, Float_t tof, Float_t massZ) const
const AliAODEvent * GetAODEvent() const
Float_t GetStartTime(Float_t mom) const
AliAODPid * GetDetPid() const
void GetTOFpidResolution(Double_t tofRes[5]) const
#define AliError(message)
static Float_t ParticleMassZ(Int_t iType)