]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HMPID/AliHMPIDCluster.cxx
InstanceNoGeo() modified to run without Geometry (test beam...)
[u/mrichter/AliRoot.git] / HMPID / AliHMPIDCluster.cxx
index 7ce3a5d68adb896d174b976612b3aa12bf077b2d..4a54c1b3cb49e8c320b1542e540d64ca72d1a101 100644 (file)
@@ -36,7 +36,7 @@ void AliHMPIDCluster::CoG()
   if(fDigs==0) return;                                      //no digits in this cluster
   fX=fY=fQRaw=0;                                            //init summable parameters
   Int_t maxQpad=-1,maxQ=-1;                                 //to calculate the pad with the highest charge
-  AliHMPIDDigit *pDig;
+  AliHMPIDDigit *pDig=0x0;
   for(Int_t iDig=0;iDig<fDigs->GetEntriesFast();iDig++){    //digits loop
     pDig=(AliHMPIDDigit*)fDigs->At(iDig);                   //get pointer to next digit
 
@@ -144,7 +144,7 @@ void AliHMPIDCluster::FitFunc(Int_t &iNpars, Double_t* deriv, Double_t &chi2, Do
     }
   }
   //delete array...
-  for(Int_t i=0;i<iNpars;i++) delete derivPart[i]; delete derivPart;
+  for(Int_t i=0;i<iNpars;i++) delete [] derivPart[i]; delete [] derivPart;
   
 }//FitFunction()
 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++