few coverity corrections
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 21 Oct 2010 12:18:31 +0000 (12:18 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 21 Oct 2010 12:18:31 +0000 (12:18 +0000)
PWG4/PartCorrDep/AliAnaBtag.cxx
PWG4/PartCorrDep/AliAnaCalorimeterQA.cxx

index af64c2b..2a721db 100644 (file)
@@ -883,8 +883,8 @@ AliAODMCParticle* AliAnaBtag::GetMCParticle(Int_t ipart)
   if(GetReader()->ReadAODMCParticles()){\r
     //Get the list of MC particles                                                                                                                           \r
     mcparticles0 = GetReader()->GetAODMCParticles(0);\r
-    if(!mcparticles0 && GetDebug() > 0) {\r
-      printf("AliAnaBtag::MakeAnalysisFillHistograms() -  Standard MCParticles not available!\n");\r
+    if(!mcparticles0) {\r
+      if(GetDebug() > 0)printf("AliAnaBtag::MakeAnalysisFillHistograms() -  Standard MCParticles not available!\n");\r
     }\r
     else{\r
       Int_t npart0 = mcparticles0->GetEntriesFast();\r
index 8902f88..cb85899 100755 (executable)
@@ -3998,10 +3998,9 @@ void  AliAnaCalorimeterQA::Terminate(TList* outputList)
                }
                else 
                        htmp->Draw("same HE");
-               
-    delete [] hNCellsCluster1D;
-    
        }
+  delete [] hNCellsCluster1D;
+
        snprintf(name,buffersize,"QA_%s_NumberCaloClustersAndCaloCells.eps",fCalorimeter.Data());
        cN->Print(name); printf("Print plot %s\n",name);