]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
o small fix
authorwiechula <wiechula@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 20 Nov 2013 11:29:19 +0000 (11:29 +0000)
committerwiechula <wiechula@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 20 Nov 2013 11:29:19 +0000 (11:29 +0000)
TPC/Upgrade/macros/AnaDelta.C

index 4e809077e281f0458118c21bac29c2c4348aee8d..508d27d6a10c005441da8adcc9e85d9649bff38c 100644 (file)
@@ -374,6 +374,8 @@ void DumpHn(THn *hn, TTreeSRedirector &stream)
           meanErr2 = hProj->GetMeanError();
           rms2     = hProj->GetRMS();
           rmsErr2  = hProj->GetRMSError();
+        } else {
+          delete hProj;
         }
         
         stream << "d" <<
@@ -397,7 +399,6 @@ void DumpHn(THn *hn, TTreeSRedirector &stream)
 
 //        Double_t x[nbins]={cr, cphi, cz};
 //        if (meanErr<0.3) hnRes.Fill(x,mean);
-        delete hProj;
       }
     }
     stream.GetFile()->cd();