I have a one-dimensional histogram that i want to import. This is my line of code,
TFile *file1 = new TFile(“15-03.root”, “READ”);
TH1 *hist = (TH1F *)file1->Get(“tree_sig”);
RooRealVar mass(“mass_toptop”,“mass_toptop”, 8000,12000);
RooDataHist data(“data”,“dataset”, mass, hist);
But i get the following error,
[#0] ERROR:InputArguments – RooDataHist::ctor(data) ERROR: dimension of input histogram must match number of dimension variables
libc++abi: terminating with uncaught exception of type std::invalid_argument: RooDataHist::ctor(data) ERROR: dimension of input histogram must match number of dimension variables
Attached is the tree data that i want to import.