Additional protection
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 14 Jul 2005 09:26:40 +0000 (09:26 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 14 Jul 2005 09:26:40 +0000 (09:26 +0000)
RICH/AliRICHTracker.cxx

index b83fca4e934ff2361489686c48e053ff1a464ddb..99f0160e23799245ba1684a3368aedf5c180411f 100644 (file)
@@ -102,7 +102,8 @@ void AliRICHTracker::RecWithESD(AliESD *pESD)
             sigmaPID[iPart] += 1/(sigma*sigma);
           }
         }
-        sigmaPID[iPart] = 1/TMath::Sqrt(sigmaPID[iPart])*0.001;
+       if (sigmaPID[iPart]>0)
+         sigmaPID[iPart] = 1/TMath::Sqrt(sigmaPID[iPart])*0.001;
         AliDebug(1,Form("sigma for %s is %f rad",AliPID::ParticleName(iPart),sigmaPID[iPart]));
       }
       CalcProb(thetaCerenkov,pTrack->GetP(),sigmaPID,richPID);