@@ -285,12 +285,12 @@ struct bayesPid {
285285 // bethe = fTPCResponse.GetExpectedSignal(track, type, AliTPCPIDResponse::kdEdxDefault, fUseTPCEtaCorrection, fUseTPCMultiplicityCorrection, fUseTPCPileupCorrection);
286286 // sigma = fTPCResponse.GetExpectedSigma(track, type, AliTPCPIDResponse::kdEdxDefault, fUseTPCEtaCorrection, fUseTPCMultiplicityCorrection, fUseTPCPileupCorrection);
287287
288- if (abs (dedx - bethe) > fRange * sigma) {
289- // Probability[kTPC][pid] = exp(-0.5 * fRange * fRange) / sigma; // BUG fix
290- Probability[kTPC ][pid] = exp (-0.5 * fRange * fRange );
288+ if (std:: abs (dedx - bethe) > fRange * sigma) {
289+ // Probability[kTPC][pid] = std:: exp(-0.5 * fRange * fRange) / sigma; // BUG fix
290+ Probability[kTPC ][pid] = std:: exp (-0.5 * fRange * fRange );
291291 } else {
292- // Probability[kTPC][pid] = exp(-0.5 * (dedx - bethe) * (dedx - bethe) / (sigma * sigma)) / sigma; //BUG fix
293- Probability[kTPC ][pid] = exp (-0.5 * (dedx - bethe) * (dedx - bethe) / (sigma * sigma));
292+ // Probability[kTPC][pid] = std:: exp(-0.5 * (dedx - bethe) * (dedx - bethe) / (sigma * sigma)) / sigma; //BUG fix
293+ Probability[kTPC ][pid] = std:: exp (-0.5 * (dedx - bethe) * (dedx - bethe) / (sigma * sigma));
294294 mismatch = false ;
295295 }
296296 if (Probability[kTPC ][pid] <= 0 .f ) {
@@ -329,7 +329,7 @@ struct bayesPid {
329329 const float mismPropagationFactor[10 ] = {1 ., 1 ., 1 ., 1 ., 1 ., 1 ., 1 ., 1 ., 1 ., 1 .};
330330 // In the O2 this cannot be done because the cluster information is missing in the AOD
331331 // if (!fNoTOFmism) { // this flag allows to disable mismatch for iterative procedure to get prior probabilities
332- // mismPropagationFactor[3] = 1 + exp(1 - 1.12 * pt); // it has to be aligned with the one in AliPIDCombined
332+ // mismPropagationFactor[3] = 1 + std:: exp(1 - 1.12 * pt); // it has to be aligned with the one in AliPIDCombined
333333 // mismPropagationFactor[4] = 1 + 1. / (4.71114 - 5.72372 * pt + 2.94715 * pt * pt); // it has to be aligned with the one in AliPIDCombined
334334
335335 // int nTOFcluster = 0;
@@ -343,10 +343,10 @@ struct bayesPid {
343343 // nTOFcluster = 80;
344344 // break;
345345 // case kPPB: // pPb 5.05 ATeV
346- // nTOFcluster = int(308 - 2.12 * fCurrCentrality + exp(4.917 - 0.1604 * fCurrCentrality));
346+ // nTOFcluster = int(308 - 2.12 * fCurrCentrality + std:: exp(4.917 - 0.1604 * fCurrCentrality));
347347 // break;
348348 // case kPBPB: // PbPb 2.76 ATeV
349- // nTOFcluster = int(exp(9.4 - 0.022 * fCurrCentrality));
349+ // nTOFcluster = int(std:: exp(9.4 - 0.022 * fCurrCentrality));
350350 // break;
351351 // }
352352 // }
@@ -377,9 +377,9 @@ struct bayesPid {
377377 const float sig = /* responseTOFPID.GetExpectedSigma(Response[kTOF], track)*/ +0 .f ;
378378
379379 if (nsigmas < fTOFtail ) {
380- Probability[kTOF ][pid] = exp (-0.5 * nsigmas * nsigmas) / sig;
380+ Probability[kTOF ][pid] = std:: exp (-0.5 * nsigmas * nsigmas) / sig;
381381 } else {
382- Probability[kTOF ][pid] = exp (-(nsigmas - fTOFtail * 0.5 ) * fTOFtail ) / sig;
382+ Probability[kTOF ][pid] = std:: exp (-(nsigmas - fTOFtail * 0.5 ) * fTOFtail ) / sig;
383383 }
384384
385385 Probability[kTOF ][pid] += fgTOFmismatchProb * mismPropagationFactor[pid];
@@ -557,7 +557,7 @@ struct bayesPidQa {
557557 double lmin = TMath::Log10 (min);
558558 double ldelta = (TMath::Log10 (max) - lmin) / (static_cast <double >(kNBins ));
559559 for (int i = 0 ; i < kNBins ; i++) {
560- binp[i] = exp (TMath::Log (10 ) * (lmin + i * ldelta));
560+ binp[i] = std:: exp (TMath::Log (10 ) * (lmin + i * ldelta));
561561 }
562562 binp[kNBins ] = max + 1 ;
563563 h->GetXaxis ()->Set (kNBins , binp);
0 commit comments