]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCcalibPID.cxx
Revert of a harmful change (A.Goel)
[u/mrichter/AliRoot.git] / TPC / AliTPCcalibPID.cxx
index bdf45b925db5112d709d2d334f1bbc01ef186b42..334eda43f1430758164b4ee99af32f2c5fe35735 100644 (file)
@@ -256,6 +256,7 @@ void AliTPCcalibPID::Process(AliESDEvent *event) {
    Printf("ERROR: esdFriend not available");
    return;
   }  
+  if (esdFriend->TestSkipBit()) return;
   //
   // track loop
   //
@@ -499,7 +500,7 @@ void AliTPCcalibPID::BinLogX(THnSparse *h, Int_t axisDim) {
    newBins[i] = factor * newBins[i-1];
   }
   axis->Set(bins, newBins);
-  delete newBins;
+  delete [] newBins;
   
 }
 
@@ -862,7 +863,7 @@ void AliTPCcalibPID::DumpTree(THnSparse * hndim, const char * outname){
   //
   Double_t position[10];
   Double_t value; 
-  Int_t *bins = new Int_t[10];
+  Int_t bins[1000];
   //
   //
   const Float_t rmsy0=0.5, rmsz0=1;