Coverity 19426
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 22 Feb 2012 22:00:18 +0000 (22:00 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 22 Feb 2012 22:00:18 +0000 (22:00 +0000)
PWGJE/AliFragmentationFunctionCorrections.cxx

index 913163f..a5c5f5e 100644 (file)
@@ -1495,8 +1495,7 @@ void AliFragmentationFunctionCorrections::UnfoldHistos(const Int_t nIter, const
       = Unfold(hnHist,hnResponse,hnFlatEfficiency,nIter,useCorrelatedErrors,hnPrior);  
      
     TH1F* hUnfolded = (TH1F*) hnUnfolded->Projection(0); 
-    if(hist)
-      hUnfolded->SetNameTitle(hist->GetName(),hist->GetTitle());
+    hUnfolded->SetNameTitle(hist->GetName(),hist->GetTitle());
     
     if(type == kFlagPt) fCorrFF[fNCorrectionLevels-1]->AddCorrHistos(i,hUnfolded,0,0);
     if(type == kFlagZ)  fCorrFF[fNCorrectionLevels-1]->AddCorrHistos(i,0,hUnfolded,0);