I created a PDF as a sum of two gaussians and an exponential and using this PDF generated a dataset, I don’t understand:
- How to generate the binned dataset, here [ROOT: RooDataHist Class Reference] I saw that there’s a constructor for RooDataHist which takes as argument the RooDataSet object I have but I don’t understand how to pass to said constructor either the number of bins or their dimension.
- How do I downscale the RooDataSet or RooDataHist object so that it has the same height as the PDF instead of being proportional to the number of entries?
ROOT Version: 6.22/06
Platform: Ubuntu 20.10
Compiler: g++ (Ubuntu 10.2.0-13ubuntu1) 10.2.0