]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
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 913163f117e5b1c5f6a9aa765059b9103debd1f2..a5c5f5e0957ccc6c6119262206ef4eaa62d7cd90 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);