Skip to content

Commit

Permalink
Fix from Francesco Noferini
Browse files Browse the repository at this point in the history
  • Loading branch information
shahor02 committed Oct 15, 2014
1 parent 6dc2560 commit 7865658
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions STEER/STEERBase/AliPIDCombined.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ UInt_t AliPIDCombined::ComputeProbabilities(const AliVTrack *track, const AliPID
Float_t kaonTOFfactor = 0.1;
if(pt > 0.29){
kaonTOFfactor = 1 - TMath::Exp(-TMath::Power(pt,4.19618E-07)/4.96502e-01)*TMath::Power(pt,-1.50705);
if(pt < 0.4) kaonTOFfactor *= 1-1.29854e-04/TMath::Power(pt,7.5);
}

Float_t protonTOFfactor = 0.1;
Expand Down Expand Up @@ -351,7 +350,6 @@ void AliPIDCombined::GetPriors(const AliVTrack *track,Double_t* p,const AliPIDRe
Float_t kaonTOFfactor = 0.1;
if(pt > 0.29){
kaonTOFfactor = 1 - TMath::Exp(-TMath::Power(pt,4.19618E-07)/4.96502e-01)*TMath::Power(pt,-1.50705);
if(pt < 0.4) kaonTOFfactor *= 1-1.29854e-04/TMath::Power(pt,7.5);
}
Float_t protonTOFfactor = 0.1;
if(pt > 0.4) protonTOFfactor = 1 - TMath::Exp(-TMath::Power(pt,3.30978)/8.57396E-02)*TMath::Power(pt,-4.42661E-01);
Expand Down Expand Up @@ -401,7 +399,7 @@ void AliPIDCombined::ComputeBayesProbabilities(Double_t* probabilities, const Do
if (sum <= 0) {

AliError("Invalid probability densities or priors");
for (Int_t i = 0; i < fSelectedSpecies; i++) probabilities[i] = -1;
for (Int_t i = 0; i < fSelectedSpecies; i++) probabilities[i] = 1./fSelectedSpecies;
return;
}
for (Int_t i = 0; i < fSelectedSpecies; i++) {
Expand Down

0 comments on commit 7865658

Please sign in to comment.