I’m trying to get the number of entries in the under and overflow bins of my RHist (RH1F in particular).
Ideally, I would like to replicate the THIF’s statbox using RHist1StatBox , but thus far I haven’t discovered how to change its contents.
Additionally, the default statistics don’t look correct, for example in the output of rh1_large.cxx (as a new user I can’t post a link, but it’s included in the default tutorials under rcanvas/) shown below.
Not all methods for new RHist classes are implemented yet.
As you can see, on the client side (JavaScript) stats box is not working correctly.
Idea was that C++ provides methods to fill stat box content for the RHist - including overflow/underflow bins content (if any). But it is rather question to @Axel - when and how this development will be continued.
For the moment it is not possible to add custom content to RHistStatBox.
Whoaa don’t use Experimental::RHist for anything by experimentation I’ll try to address the issue you mention here in 2023, but for now we don’t have the cycles to make progress here.
Following your suggestion, and since RHist1StatBox is marked as final, I’ve created a class derived from RHistStatBox<1> and implemented a FillStatistic method that fulfills my needs.
Though I’m sure this is neither the best solution nor execution, I leave my code below for anyone who stumbles upon this question.
I admit I may have jumped the gun a bit too early on RHist.
Nevertheless, as a someone with little experience in both C++ and ROOT, namely a year of working with ROOT6, I’m finding the new v7 interfaces easier to work with, will therefore continue using them for now.