1 /**************************************************************************
2 * Copyright(c) 1998-2006, ALICE Experiment at CERN, All rights reserved. *
5 * Author: The ALICE Off-line Project. *
6 * Contributors are mentioned in the code where appropriate. *
8 * Permission to use, copy, modify and distribute this software and its *
9 * documentation strictly for non-commercial purposes is hereby granted *
10 * without fee, provided that the above copyright notice appears in all *
11 * copies and that both the copyright notice and this permission notice *
12 * appear in the supporting documentation. The authors make no claims *
13 * about the suitability of this software for any purpose. It is *
14 * provided "as is" without express or implied warranty. *
15 * *************************************************************************/
19 //***********************************************************
21 // class for PID with AliAODRecoDecayHF
22 // Authors: D. Caffarri caffarri@pd.infn.it, A.Dainese andrea.dainese@pd.infn.it, S. Dash dash@to.infn.it, F. Prino prino@to.infn.it, R. Romita r.romita@gsi.de, Y. Wang yifei@pi0.physi.uni-heidelberg.de P. Antonioli pietro.antonioli@bo.infn.it
23 //***********************************************************
24 #include "AliAODPidHF.h"
25 #include "AliAODPid.h"
27 #include "AliTPCPIDResponse.h"
28 #include "AliITSPIDResponse.h"
29 #include "AliTOFPIDResponse.h"
30 #include "AliAODpidUtil.h"
31 #include "AliESDtrack.h"
36 //------------------------------
37 AliAODPidHF::AliAODPidHF():
61 // Default constructor
63 fPLimit=new Double_t[fnPLimit];
64 fnSigma=new Double_t[fnNSigma];
65 fPriors=new Double_t[fnPriors];
66 fnSigmaCompat=new Double_t[fnNSigmaCompat];
68 for(Int_t i=0;i<fnNSigma;i++){
71 for(Int_t i=0;i<fnPriors;i++){
74 for(Int_t i=0;i<fnPLimit;i++){
77 for(Int_t i=0;i<fnNSigmaCompat;i++){
82 //----------------------
83 AliAODPidHF::~AliAODPidHF()
86 // if(fPLimit) delete fPLimit;
87 // if(fnSigma) delete fnSigma;
88 // if(fPriors) delete fPriors;
90 //------------------------
91 AliAODPidHF::AliAODPidHF(const AliAODPidHF& pid) :
93 fnNSigma(pid.fnNSigma),
95 fTOFSigma(pid.fTOFSigma),
96 fnPriors(pid.fnPriors),
98 fnPLimit(pid.fnPLimit),
106 fCompat(pid.fCompat),
107 fPCompatTOF(pid.fPCompatTOF),
108 fnNSigmaCompat(pid.fnNSigmaCompat),
109 fnSigmaCompat(pid.fnSigmaCompat),
111 fOnePad(pid.fOnePad),
115 for(Int_t i=0;i<5;i++){
116 fPriors[i]=pid.fPriors[i];
121 //----------------------
122 Int_t AliAODPidHF::RawSignalPID(AliAODTrack *track, TString detector) const{
123 // raw PID for single detectors, returns the particle type with smaller sigma
125 if(detector.Contains("ITS")) return ApplyPidITSRaw(track,specie);
126 if(detector.Contains("TPC")) return ApplyPidTPCRaw(track,specie);
127 if(detector.Contains("TOF")) return ApplyPidTOFRaw(track,specie);
132 //---------------------------
133 Bool_t AliAODPidHF::IsKaonRaw(AliAODTrack *track, TString detector) const{
134 // checks if the track can be a kaon, raw PID applied for single detectors
137 if(detector.Contains("ITS")) specie=ApplyPidITSRaw(track,3);
138 if(detector.Contains("TPC")) specie=ApplyPidTPCRaw(track,3);
139 if(detector.Contains("TOF")) specie=ApplyPidTOFRaw(track,3);
141 if(specie==3) return kTRUE;
144 //---------------------------
145 Bool_t AliAODPidHF::IsPionRaw (AliAODTrack *track, TString detector) const{
146 // checks if the track can be a pion, raw PID applied for single detectors
150 if(detector.Contains("ITS")) specie=ApplyPidITSRaw(track,2);
151 if(detector.Contains("TPC")) specie=ApplyPidTPCRaw(track,2);
152 if(detector.Contains("TOF")) specie=ApplyPidTOFRaw(track,2);
154 if(specie==2) return kTRUE;
157 //---------------------------
158 Bool_t AliAODPidHF::IsProtonRaw (AliAODTrack *track, TString detector) const{
159 // checks if the track can be a proton raw PID applied for single detectors
162 if(detector.Contains("ITS")) specie=ApplyPidITSRaw(track,4);
163 if(detector.Contains("TPC")) specie=ApplyPidTPCRaw(track,4);
164 if(detector.Contains("TOF")) specie=ApplyPidTOFRaw(track,4);
166 if(specie==4) return kTRUE;
170 //--------------------------
171 Bool_t AliAODPidHF::IsElectronRaw(AliAODTrack *track, TString detector) const{
172 // checks if the track can be an electron raw PID applied for single detectors
175 if(detector.Contains("ITS")) specie=ApplyPidITSRaw(track,0);
176 if(detector.Contains("TPC")) specie=ApplyPidTPCRaw(track,0);
177 if(detector.Contains("TOF")) specie=ApplyPidTOFRaw(track,0);
179 if(specie==0) return kTRUE;
183 //--------------------------
184 Int_t AliAODPidHF::ApplyPidTPCRaw(AliAODTrack *track,Int_t specie) const{
185 // n-sigma cut, TPC PID
187 if(!CheckStatus(track,"TPC")) return 0;
188 AliAODPid *pidObj = track->GetDetPid();
190 Double_t dedx=pidObj->GetTPCsignal();
191 Double_t mom = pidObj->GetTPCmomentum();
192 AliTPCPIDResponse tpcResponse;
193 SetBetheBloch(tpcResponse);
194 UShort_t nTPCClus=pidObj->GetTPCsignalN();
195 if(nTPCClus==0) {nTPCClus=track->GetTPCNcls();}
198 if(specie<0){ // from RawSignalPID : should return the particle specie to wich the de/dx is closer to the bethe-block curve -> performance to be checked
199 Double_t nsigmaMax=fnSigma[0];
200 for(Int_t ipart=0;ipart<5;ipart++){
201 AliPID::EParticleType type=AliPID::EParticleType(ipart);
202 Double_t nsigma = TMath::Abs(tpcResponse.GetNumberOfSigmas(mom,dedx,nTPCClus,type));
203 if((nsigma<nsigmaMax) && (nsigma<fnSigma[0])) {
208 }else{ // asks only for one particle specie
209 AliPID::EParticleType type=AliPID::EParticleType(specie);
210 Double_t nsigma = TMath::Abs(tpcResponse.GetNumberOfSigmas(mom,dedx,nTPCClus,type));
211 if (nsigma>fnSigma[0]) {
221 //----------------------------
222 Int_t AliAODPidHF::ApplyPidITSRaw(AliAODTrack *track,Int_t specie) const{
223 // truncated mean, ITS PID
225 if(!CheckStatus(track,"ITS")) return 0;
227 Double_t mom=track->P();
228 AliAODPid *pidObj = track->GetDetPid();
230 Double_t dedx=pidObj->GetITSsignal();
231 UChar_t clumap=track->GetITSClusterMap();
232 Int_t nPointsForPid=0;
233 for(Int_t i=2; i<6; i++){
234 if(clumap&(1<<i)) ++nPointsForPid;
238 if(track->GetStatus() & AliESDtrack::kTPCin) isSA = kFALSE;
240 AliITSPIDResponse itsResponse;
242 if(specie<0){ // from RawSignalPID : should return the particle specie to wich the de/dx is closer to the bethe-block curve -> performance to be checked
243 Double_t nsigmaMax=fnSigma[4];
244 for(Int_t ipart=0;ipart<5;ipart++){
245 AliPID::EParticleType type=AliPID::EParticleType(ipart);
246 Double_t nsigma = TMath::Abs(itsResponse.GetNumberOfSigmas(mom,dedx,type,nPointsForPid,isSA));
247 if((nsigma<nsigmaMax) && (nsigma<fnSigma[4])) {
252 }else{ // asks only for one particle specie
253 AliPID::EParticleType type=AliPID::EParticleType(specie);
254 Double_t nsigma = TMath::Abs(itsResponse.GetNumberOfSigmas(mom,dedx,type));
255 if (nsigma>fnSigma[4]) {
263 //----------------------------
264 Int_t AliAODPidHF::ApplyPidTOFRaw(AliAODTrack *track,Int_t specie) const{
265 // n-sigma cut, TOF PID
267 if(!CheckStatus(track,"TOF")) return 0;
269 Double_t time[AliPID::kSPECIESN];
270 Double_t sigmaTOFPid[AliPID::kSPECIES];
271 AliAODPid *pidObj = track->GetDetPid();
272 pidObj->GetIntegratedTimes(time);
273 Double_t sigTOF=pidObj->GetTOFsignal();
274 pidObj->GetTOFpidResolution(sigmaTOFPid);
279 Double_t sigmaTOFtrack;
280 if (sigmaTOFPid[4]>0) sigmaTOFtrack=sigmaTOFPid[4];
281 else sigmaTOFtrack=fTOFSigma;
282 Double_t nsigmaMax=sigmaTOFtrack*fnSigma[3];
283 for(Int_t ipart=0;ipart<5;ipart++){
284 Double_t nsigma=TMath::Abs(sigTOF-time[ipart]);
285 if (sigmaTOFPid[ipart]>0) sigmaTOFtrack=sigmaTOFPid[ipart];
286 else sigmaTOFtrack=fTOFSigma; // backward compatibility for old AODs
287 if((nsigma<nsigmaMax) && (nsigma<fnSigma[3]*sigmaTOFtrack)) {
292 }else{ // asks only for one particle specie
293 Double_t nsigma=TMath::Abs(sigTOF-time[specie]);
294 Double_t sigmaTOFtrack;
295 if (sigmaTOFPid[specie]>0) sigmaTOFtrack=sigmaTOFPid[specie];
296 else sigmaTOFtrack=fTOFSigma; // backward compatibility for old AODs
297 if (nsigma>fnSigma[3]*sigmaTOFtrack) {
306 //------------------------------
307 void AliAODPidHF::CombinedProbability(AliAODTrack *track,Bool_t *type) const{
308 // combined PID stored inside the AOD track
310 const Double_t *pid=track->PID();
313 for (Int_t i=0; i<10; i++) {
314 if (pid[i]>max) {k=i; max=pid[i];}
317 if(k==2) type[0]=kTRUE;
318 if(k==3) type[1]=kTRUE;
319 if(k==4) type[2]=kTRUE;
323 //--------------------
324 void AliAODPidHF::BayesianProbability(AliAODTrack *track,Double_t *pid) const{
325 // bayesian PID for single detectors or combined
327 if(fITS && !fTPC && !fTOF) {BayesianProbabilityITS(track,pid);return;}
328 if(fTPC && !fITS && !fTOF) {BayesianProbabilityTPC(track,pid);return;}
329 if(fTOF && !fITS && !fTPC) {BayesianProbabilityTOF(track,pid);return;}
331 Double_t probITS[5]={1.,1.,1.,1.,1.};
332 Double_t probTPC[5]={1.,1.,1.,1.,1.};
333 Double_t probTOF[5]={1.,1.,1.,1.,1.};
334 if(fITS) BayesianProbabilityITS(track,probITS);
335 if(fTPC) BayesianProbabilityTPC(track,probTPC);
336 if(fTOF) BayesianProbabilityTOF(track,probTOF);
337 Double_t probTot[5]={0.,0.,0.,0.,0.};
338 for(Int_t i=0;i<5;i++){
339 probTot[i]=probITS[i]*probTPC[i]*probTOF[i];
341 for(Int_t i2=0;i2<5;i2++){
342 pid[i2]=probTot[i2]*fPriors[i2]/(probTot[0]*fPriors[0]+probTot[1]*fPriors[1]+probTot[2]*fPriors[2]+probTot[3]*fPriors[3]+probTot[4]*fPriors[4]);
348 //------------------------------------
349 void AliAODPidHF::BayesianProbabilityITS(AliAODTrack *track,Double_t *prob) const{
351 // bayesian PID for ITS
353 Double_t itspid[AliPID::kSPECIES];
354 pid.MakeITSPID(track,itspid);
355 for(Int_t ind=0;ind<AliPID::kSPECIES;ind++){
356 if(fTOF || fTPC || fTRD){
357 prob[ind]=itspid[ind];
359 prob[ind]=itspid[ind]*fPriors[ind]/(itspid[0]*fPriors[0]+itspid[1]*fPriors[1]+itspid[2]*fPriors[2]+itspid[3]*fPriors[3]+itspid[4]*fPriors[4]);
365 //------------------------------------
366 void AliAODPidHF::BayesianProbabilityTPC(AliAODTrack *track,Double_t *prob) const{
367 // bayesian PID for TPC
370 Double_t tpcpid[AliPID::kSPECIES];
371 pid.MakeTPCPID(track,tpcpid);
372 for(Int_t ind=0;ind<AliPID::kSPECIES;ind++){
373 if(fTOF || fITS || fTRD){
374 prob[ind]=tpcpid[ind];
376 prob[ind]=tpcpid[ind]*fPriors[ind]/(tpcpid[0]*fPriors[0]+tpcpid[1]*fPriors[1]+tpcpid[2]*fPriors[2]+tpcpid[3]*fPriors[3]+tpcpid[4]*fPriors[4]);
382 //------------------------------------
383 void AliAODPidHF::BayesianProbabilityTOF(AliAODTrack *track,Double_t *prob) const{
384 // bayesian PID for TOF
387 Double_t tofpid[AliPID::kSPECIES];
388 pid.MakeTOFPID(track,tofpid);
389 for(Int_t ind=0;ind<AliPID::kSPECIES;ind++){
390 if(fTPC || fITS || fTRD){
391 prob[ind]=tofpid[ind];
393 prob[ind]=tofpid[ind]*fPriors[ind]/(tofpid[0]*fPriors[0]+tofpid[1]*fPriors[1]+tofpid[2]*fPriors[2]+tofpid[3]*fPriors[3]+tofpid[4]*fPriors[4]);
399 //---------------------------------
400 void AliAODPidHF::BayesianProbabilityTRD(AliAODTrack *track,Double_t *prob) const{
401 // bayesian PID for TRD
404 Double_t trdpid[AliPID::kSPECIES];
405 pid.MakeTRDPID(track,trdpid);
406 for(Int_t ind=0;ind<AliPID::kSPECIES;ind++){
407 if(fTPC || fITS || fTOF){
408 prob[ind]=trdpid[ind];
410 prob[ind]=trdpid[ind]*fPriors[ind]/(trdpid[0]*fPriors[0]+trdpid[1]*fPriors[1]+trdpid[2]*fPriors[2]+trdpid[3]*fPriors[3]+trdpid[4]*fPriors[4]);
416 //--------------------------------
417 Bool_t AliAODPidHF::CheckStatus(AliAODTrack *track,TString detectors) const{
419 // Quality cuts on the tracks, detector by detector
421 if(detectors.Contains("ITS")){
422 if ((track->GetStatus()&AliESDtrack::kITSin)==0) return kFALSE;
423 UChar_t clumap=track->GetITSClusterMap();
424 Int_t nPointsForPid=0;
425 for(Int_t i=2; i<6; i++){
426 if(clumap&(1<<i)) ++nPointsForPid;
428 if(nPointsForPid<3) return kFALSE;
431 if(detectors.Contains("TPC")){
432 if ((track->GetStatus()&AliESDtrack::kTPCin )==0) return kFALSE;
433 UShort_t nTPCClus=track->GetTPCClusterMap().CountBits();
434 if (nTPCClus<70) return kFALSE;
437 if(detectors.Contains("TOF")){
438 if ((track->GetStatus()&AliESDtrack::kTOFout )==0) return kFALSE;
439 if ((track->GetStatus()&AliESDtrack::kTIME )==0) return kFALSE;
440 if ((track->GetStatus()&AliESDtrack::kTOFpid )==0) return kFALSE;
441 if (!(track->GetStatus()&AliESDtrack::kTOFmismatch)==0) return kFALSE;
445 if(detectors.Contains("TRD")){
446 if ((track->GetStatus()&AliESDtrack::kTRDout )==0) return kFALSE;
447 AliAODPid *pidObj = track->GetDetPid();
448 Float_t *mom=pidObj->GetTRDmomentum();
450 for(Int_t iPl=0;iPl<6;iPl++){
451 if(mom[iPl]>0.) ntracklets++;
453 if(ntracklets<4) return kFALSE;
458 //--------------------------------------------
459 Bool_t AliAODPidHF::TPCRawAsym(AliAODTrack* track,Int_t specie) const{
460 // TPC nsigma cut PID, different sigmas in different p bins
462 if(!CheckStatus(track,"TPC")) return kFALSE;
463 AliAODPid *pidObj = track->GetDetPid();
464 Double_t mom = pidObj->GetTPCmomentum();
465 Double_t dedx=pidObj->GetTPCsignal();
466 UShort_t nTPCClus=pidObj->GetTPCsignalN();
467 if(nTPCClus==0) {nTPCClus=track->GetTPCNcls();}
469 AliTPCPIDResponse tpcResponse;
470 SetBetheBloch(tpcResponse);
471 AliPID::EParticleType type=AliPID::EParticleType(specie);
472 Double_t nsigma = TMath::Abs(tpcResponse.GetNumberOfSigmas(mom,dedx,nTPCClus,type));
474 if(mom<fPLimit[0] && nsigma<fnSigma[0]) return kTRUE;
475 if(mom<fPLimit[1] && mom>fPLimit[0] && nsigma<fnSigma[1]) return kTRUE;
476 if(mom>fPLimit[1] && nsigma<fnSigma[2]) return kTRUE;
481 Int_t AliAODPidHF::MatchTPCTOF(AliAODTrack *track,Int_t mode,Int_t specie,Bool_t compat){
482 // combination of the PID info coming from TPC and TOF
484 //TOF || TPC (a la' Andrea R.)
486 // for the single detectors: -1 = kFALSE, 1 = kTRUE, 0 = compatible
487 // the method returns the sum of the response of the 2 detectors
488 if(fTPC && fTOF) {if(!CheckStatus(track,"TPC") && !CheckStatus(track,"TOF")) return 0;}
493 if(CheckStatus(track,"TPC")) {
495 if(TPCRawAsym(track,specie)) {
501 if(specie==2 && IsPionRaw(track,"TPC")) {
506 if(specie==3 && IsKaonRaw(track,"TPC")) {
511 if(specie==4 && IsProtonRaw(track,"TPC")) {
520 if(compat && tTPCinfo<0){
521 Double_t sig0tmp=fnSigma[0];
522 SetSigma(0,fnSigmaCompat[0]);
523 if(specie==2 && IsPionRaw(track,"TPC")) tTPCinfo=0;
524 if(specie==3 && IsKaonRaw(track,"TPC")) tTPCinfo=0;
525 if(specie==4 && IsProtonRaw(track,"TPC")) tTPCinfo=0;
534 if(!CheckStatus(track,"TOF") && fTPC) return tTPCinfo;
538 if(specie==2 && IsPionRaw(track,"TOF")) tTOFinfo=1;
539 if(specie==3 && IsKaonRaw(track,"TOF")) tTOFinfo=1;
540 if(specie==4 && IsProtonRaw(track,"TOF")) tTOFinfo=1;
542 if(compat && tTOFinfo>0){
543 Double_t ptrack=track->P();
544 if(ptrack>fPCompatTOF) {
545 Double_t sig0tmp=fnSigma[3];
546 SetSigma(3,fnSigmaCompat[1]);
547 if(specie==2 && IsPionRaw(track,"TOF")) tTOFinfo=0;
548 if(specie==3 && IsKaonRaw(track,"TOF")) tTOFinfo=0;
549 if(specie==4 && IsProtonRaw(track,"TOF")) tTOFinfo=0;
555 if(tTPCinfo+tTOFinfo==0 && fITS){
556 if(!CheckStatus(track,"ITS")) return tTPCinfo+tTOFinfo;
558 if(specie==2 && IsPionRaw(track,"ITS")) tITSinfo=1;
559 if(specie==3 && IsKaonRaw(track,"ITS")) tITSinfo=1;
560 if(specie==4 && IsProtonRaw(track,"ITS")) tITSinfo=1;
564 return tTPCinfo+tTOFinfo;
567 //TPC & TOF (a la' Yifei)
568 // convention: -1 = kFALSE, 1 = kTRUE, 0 = not identified
571 if(fTPC && CheckStatus(track,"TPC")) {
574 if(!TPCRawAsym(track,specie)) tTPCinfo=-1;
576 if(specie==2 && !IsPionRaw(track,"TPC")) tTPCinfo=-1;
577 if(specie==3 && !IsKaonRaw(track,"TPC")) tTPCinfo=-1;
578 if(specie==4 && !IsProtonRaw(track,"TPC")) tTPCinfo=-1;
584 if(fTPC && !CheckStatus(track,"TOF")) return tTPCinfo;
586 if(specie==2 && !IsPionRaw(track,"TOF")) tTOFinfo=-1;
587 if(specie==3 && !IsKaonRaw(track,"TOF")) tTOFinfo=-1;
588 if(specie==4 && !IsProtonRaw(track,"TOF")) tTOFinfo=-1;
591 if(tTOFinfo==1 && tTPCinfo==1) return 1;
593 if(tTPCinfo+tTOFinfo==0 && fITS){
594 if(!CheckStatus(track,"ITS")) return tTPCinfo+tTOFinfo;
596 if(specie==2 && IsPionRaw(track,"ITS")) tITSinfo=1;
597 if(specie==3 && IsKaonRaw(track,"ITS")) tITSinfo=1;
598 if(specie==4 && IsProtonRaw(track,"ITS")) tITSinfo=1;
607 //TPC for p<fPLimit[0], TOF for p>=fPLimit[0] (a la' Andrea A.)
608 // convention (temporary): -1 = kFALSE, 1 = kTRUE, 0 = not identified
610 if(fTPC && fTOF) if(!CheckStatus(track,"TPC") && !CheckStatus(track,"TOF")) return 0;
612 Double_t ptrack=track->P();
617 if(ptrack>=fPLimit[0] && ptrack<fPLimit[1] && fTPC) {
618 if(!CheckStatus(track,"TPC")) return 0;
620 if(TPCRawAsym(track,specie)) tTPCinfo=1;
622 if(specie==2 && IsPionRaw(track,"TPC")) tTPCinfo=1;
623 if(specie==3 && IsKaonRaw(track,"TPC")) tTPCinfo=1;
624 if(specie==4 && IsProtonRaw(track,"TPC")) tTPCinfo=1;
630 if(ptrack>=fPLimit[1] && fTOF){
631 if(!CheckStatus(track,"TOF")) return 0;
632 if(specie==2 && IsPionRaw(track,"TOF")) tTOFinfo=1;
633 if(specie==3 && IsKaonRaw(track,"TOF")) tTOFinfo=1;
634 if(specie==4 && IsProtonRaw(track,"TOF")) tTOFinfo=1;
639 if(ptrack<fPLimit[0] && fITS){
640 if(!CheckStatus(track,"ITS")) return 0;
641 if(specie==2 && IsPionRaw(track,"ITS")) tITSinfo=1;
642 if(specie==3 && IsKaonRaw(track,"ITS")) tITSinfo=1;
643 if(specie==4 && IsProtonRaw(track,"ITS")) tITSinfo=1;
652 //----------------------------------
653 Int_t AliAODPidHF::MakeRawPid(AliAODTrack *track, Int_t specie){
654 // general method to compute PID
656 return MatchTPCTOF(track,fMatch,specie,fCompat);
658 if(fTPC && !fTOF && !fITS) {
661 tTPCres=ApplyPidTPCRaw(track,specie);
663 if(TPCRawAsym(track,specie)) {
669 if(tTPCres==specie){return 1;}else{return tTPCres;};
671 AliError("You should enable just one detector if you don't want to match");
674 if(fTOF && !fTPC && !fITS) {
675 Int_t tTOFres=ApplyPidTOFRaw(track,specie);
676 if(tTOFres==specie){return 1;}else{return tTOFres;};
678 AliError("You should enable just one detector if you don't want to match");
682 if(fITS && !fTPC && !fTOF) {
683 Int_t tITSres=ApplyPidITSRaw(track,specie);
684 if(tITSres==specie){return 1;}else{return tITSres;};
686 AliError("You should enable just one detector if you don't want to match");
692 //--------------------------------------------
693 void AliAODPidHF::SetBetheBloch(AliTPCPIDResponse tpcResp) const{
695 Double_t alephParameters[5];
697 alephParameters[0] = 2.15898e+00/50.;
698 alephParameters[1] = 1.75295e+01;
699 alephParameters[2] = 3.40030e-09;
700 alephParameters[3] = 1.96178e+00;
701 alephParameters[4] = 3.91720e+00;
707 alephParameters[0] =1.34490e+00/50;
708 alephParameters[1] = 2.69455e+01;
709 alephParameters[2] = TMath::Exp(-2.97552+01);
710 alephParameters[3] = 2.35339e+00;
711 alephParameters[4] = 5.98079e+00;
715 alephParameters[0] = 1.25202/50.;
716 alephParameters[1] = 2.74992e+01;
717 alephParameters[2] = TMath::Exp(-3.31517e+01);
718 alephParameters[3] = 2.46246;
719 alephParameters[4] = 6.78938;
722 alephParameters[0] = 0.0283086/0.97;
723 alephParameters[1] = 2.63394e+01;
724 alephParameters[2] = 5.04114e-11;
725 alephParameters[3] = 2.12543e+00;
726 alephParameters[4] = 4.88663e+00;
732 tpcResp.SetBetheBlochParameters(alephParameters[0],alephParameters[1],alephParameters[2],alephParameters[3],alephParameters[4]);
738 //-----------------------
739 Bool_t AliAODPidHF::IsTOFPiKexcluded(AliAODTrack *track,Double_t nsigmaK){
742 if(!CheckStatus(track,"TOF")) return 0;
744 Double_t time[AliPID::kSPECIESN];
745 Double_t sigmaTOFPid[AliPID::kSPECIES];
746 AliAODPid *pidObj = track->GetDetPid();
747 pidObj->GetIntegratedTimes(time);
748 Double_t sigTOF=pidObj->GetTOFsignal();
749 pidObj->GetTOFpidResolution(sigmaTOFPid);
750 Double_t sigmaTOFtrack;
751 if (sigmaTOFPid[3]>0) sigmaTOFtrack=sigmaTOFPid[3];
752 else sigmaTOFtrack=fTOFSigma; // backward compatibility for old AODs
754 if((sigTOF-time[3])>nsigmaK*sigmaTOFtrack)return kTRUE;// K, Pi excluded (->LIKELY A PROTON)