Hi,
I am unable to get a simple plot of a branch “BDT_response_l” of a TTree whose value ranges from -1 to +1 using RooPlot.
Am I missing anything (PS:I have not performed any fit yet. Just wanted to see the original data first)
TFile* file1 = new TFile("nfile_10trees.root","READ");
TTree* tree = (TTree*)(file1->Get("tree"));
RooRealVar BDT_response_l("BDT_response_l", "BDT_response_l",-1,1);
RooDataSet data_set("data_set","data_set",tree,BDT_response_l);
data_set.Print();
RooPlot* frame1 = BDT_response_l.frame();
data_set.plotOn(frame1);
frame1->Draw();
Output is
RooDataSet::data_set[BDT_response_l] = 4976 entries
Thanks!