]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
fix for c++11 warning
authorshahoian <ruben.shahoyan@cern.ch>
Mon, 20 Oct 2014 16:31:12 +0000 (18:31 +0200)
committershahoian <ruben.shahoyan@cern.ch>
Mon, 20 Oct 2014 16:31:23 +0000 (18:31 +0200)
STEER/STEERBase/AliPIDCombined.cxx

index f172f75ba6520b5b527b140b6182853c28e58b10..22cc3743c304f7c5d1c95d4e7f7b185ca05233ce 100644 (file)
@@ -137,9 +137,9 @@ UInt_t AliPIDCombined::ComputeProbabilities(const AliVTrack *track, const AliPID
        for (Int_t i=0;i<fSelectedSpecies;i++){
          p[i] *= detProb[i];
          if(detBit == AliPIDResponse::kDetTOF){
-           Float_t pt = track->Pt();
-           Float_t mismPropagationFactor[] = {1.,1.,1.,float(1 + TMath::Exp(1 - 1.12*pt)),
-                                              float(1 + 1./(4.71114 - 5.72372*pt + 2.94715*pt*pt)),1.,1.,1.,1.,1.}; // correction for kaons and protons which has to be alligned with the one in AliPIDResponse
+           Double_t pt = track->Pt();
+           Double_t mismPropagationFactor[] = {1.,1.,1.,1. + TMath::Exp(1. - 1.12*pt),
+                                               1. + 1./(4.71114 - 5.72372*pt + 2.94715*pt*pt),1.,1.,1.,1.,1.}; // correction for kaons and protons which has to be alligned with the one in AliPIDResponse
            pMismTOF[i] *= fTOFmismProb*mismPropagationFactor[i];
          }
          else pMismTOF[i] *= detProb[i];