ROOT Version: 6.26/00
Platform: CentOS
Compiler: gcc 8.5
Hi,
I have a number of questions regarding the Book function of RDataFrame. I finally managed to do what I wanted to do (read custom classes from a tree and fill multiple histograms using those classes) by creating a helper-class that creates and fills those histograms (loosely based on the tutorial df018, but returning a TList with TH1* and TH2*). There are however a few issues I came across:
- Unlike the tutorial (which uses THn histograms) I use TH1 and TH2 histograms and get warnings about potential memory leaks because the histograms all have the same name for each slot. The results however look correct, so there doesn’t seem to be any real issue with this. My questions is whether there is a way to turn these warnings off, or is this an actual issue that I should solve (e.g. by appending the slot number to each histogram name)?
- I tried printing out a status bar as shown in one of the tutorials, but the code fails with a logic error because “This action does not support callbacks!”. Is there a way to show the progress of the Book action? Also is there a way to display the percent of entries processed instead of a progress bar?
- Is this the correct way of using the Book action? Meaning is there a huge difference between creating and filling histograms in the Book action instead of using Histo1D or Histo2D combined with defining custom columns calculated from the branches of the input tree?
Thank you for any tips!