]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
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 af64c2b337e095ad3ae5d724cd713fae4e939ea1..2a721db8fa615f444fd3caf8bd3bdfaa5845f71f 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 8902f88803ec34addbdde0fdf989693c1f9d7b0b..cb85899ca8c5611f155ac5d0155a2af48b52c293 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);