Fix (ChiaraB)
authorprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 2 Jul 2012 12:50:43 +0000 (12:50 +0000)
committerprino <prino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 2 Jul 2012 12:50:43 +0000 (12:50 +0000)
PWGHF/vertexingHF/AliHFMassFitter.cxx

index f358003..fde788d 100644 (file)
@@ -1767,7 +1767,7 @@ void AliHFMassFitter::PlotFit(TVirtualPad* pd,Double_t nsigma,Int_t writeFitInfo
     pinfo2->AddText(str);
     str=Form("B (%.0f#sigma) %.0f #pm %.0f",nsigma,bkg,errbkg);
     pinfo2->AddText(str);
-    str=Form("S/B (%.0f#sigma) %.4f ",nsigma,signal/bkg);
+    if(bkg>0) str=Form("S/B (%.0f#sigma) %.4f ",nsigma,signal/bkg); 
     pinfo2->AddText(str);
 
     pd->cd();