minor
authorgvolpe <gvolpe@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 25 Mar 2013 18:13:07 +0000 (18:13 +0000)
committergvolpe <gvolpe@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 25 Mar 2013 18:13:07 +0000 (18:13 +0000)
HMPID/AliHMPIDPid.cxx

index c653c7c..6642730 100644 (file)
@@ -74,11 +74,8 @@ void AliHMPIDPid::FindPid(AliESDtrack *pTrk,Double_t nmean,Int_t nsp,Double_t *p
     Double_t thetaCerTh = TMath::ACos(cosThetaTh);                                                                           //  theoretical Theta Cherenkov
     Double_t sigmaRing = Resolution(iPart,thetaCerTh,pTrk);
     
-    if(sigmaRing==0) {
-      for(Int_t jPart=0;jPart<nsp;jPart++) prob[jPart]=1.0/(Float_t)nsp;
-      delete pPid ; pPid=0x0; delete [] h; return;
-    } 
-    
+    if(sigmaRing==0) continue; 
+   
     if(TMath::Abs(thetaCerExp-thetaCerTh)<4*sigmaRing) desert = kFALSE;                                                                //   
     h[iPart] =TMath::Gaus(thetaCerTh,thetaCerExp,sigmaRing,kTRUE);
     hTot    +=h[iPart]; //total height of all theoretical heights for normalization