Dear all,
I have a Roofit job that used to read unbinned data in the following way:
RooDataSet data = RooDataSet::read(filename, mass);
where filename is an ASCII file containing the variable mass, and I fit the unbinned distribution of this variable.
filename is declared in the following way:
void MassFit(const char filename = “mass.dat”, const char* plotOpt = “NEU”)
Now since I have now a huge quantity of events, I would like to do an unbinned fit of the histogram of this variable. Actually I have a set of such histograms in a root file such as for instance mass.root, containing histograms “mass cond 1”, “mass cond 2”, etc…
I suppose I can still access the root file in the same way:
void MassFit(const char* filename = “mass.root”, const char* plotOpt = “NEU”)
right?
But then I am lost. I basically know that I should use RooDataHist instead of RooDataSet, but from what I found in this forum or on various tutorials I could not figure out how to do that.
After that, if I understood correctly, the fit procedure is exactly the same. Is that right?
Can you help?
Thanks and best regards,
Elizabeth