Disable connecting line in plots

Hello,

I want to disable the line that connects points that defaults from a RooPlot derived from a pullhist. I’m not sure if this is a roofit particular–I’ve managed to manipulate the RooPlot object using TH1 commands–so if you even know how to disable this stupid line in a TH1 that would also be appreciated:

  RooPlot *frame2_bg = d0Mass.frame() ; // same way you made 'frame'
    frame2_bg->SetTitle("");
    frame2_bg->SetTickLength(0);
    frame2_bg->SetTickLength(0, "Y");
    //    frame2_bg->SetLineWidth(0);
    frame2_bg->SetDrawOption("hist");
    frame2_bg->addObject(pBG_d0Mass->pullHist());

james

Hi James,

A pull histogram is a RooCurve and by inheritance a TGraph,
so the plot options of TGraph apply (see TGraph section of the
ROOT manual). You can specify the draw options associated
with your pull hist when you insert the object into the RooPlot

frame2_bg->addObject(pBG_d0Mass->pullHist(),“DRAWOPTIONS”);

Wouter