Hi experts,
I have a RooWorkSpace “w” storied in a root file and inside the RooWorkSpace it has several RooDataHist, How can I read and draw these RooDataHist? I try as following, but it can’t work.
Thank you
Best regards
RooAbsData *aterm_hist=w->data(“ttbar_Atermdatahist”);
RooPlot *plotmhist=w->var(“mass_tt”)->frame();
aterm_hist->plotOn(plotmhist, RooFit::LineColor(kBlack),RooFit::LineWidth(1));