-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Classic TRootBrowser: Histogramming leafs which are functions fails #13233
Description
Check duplicate issues.
- Checked for duplicates
Description
Using a ROOT version >= 6.24.06 (older versions above 6.24 may also be affected), double-clicking on leafs e.g. of a TLorentzVector stored in a TTree (so for example, X()) within a classic TRootBrowser does not fill the histogram anymore.
Reproducer
Create a new file with the following ROOT macro:
{
TFile f("tree.root", "RECREATE");
TTree tree("NOMINAL", "NOMINAL");
TLorentzVector my_vector;
auto branch = tree.Branch("my_vector", &my_vector);
for (UInt_t i=0; i<100; ++i) {
my_vector.SetXYZT(i,i,i,i);
tree.Fill();
}
tree.Write();
}
Then, enforce the old TRootBrowser is used, e.g.:
echo "Browser.Name: TRootBrowser" >> ~/.rootrc
Finally, open the file inside a TBrowser. Then, click on the ROOT file, NOMINAL, my_vector, and finally double-click on X().
With the new ROOT::Experimental::RWebBrowserImp browser, this works, with the classic TRootBrowser in recent ROOT versions, the histogram stays empty, with a manual Draw() command, it works.
ROOT version
------------------------------------------------------------------
| Welcome to ROOT 6.28/04 https://root.cern |
| (c) 1995-2022, The ROOT Team; conception: R. Brun, F. Rademakers |
| Built for linuxx8664gcc on May 08 2023, 02:44:07 |
| From tags/v6-28-04@v6-28-04 |
| With |
| Try '.help'/'.?', '.demo', '.license', '.credits', '.quit'/'.q' |
------------------------------------------------------------------
Installation method
Gentoo (Portage)
Operating system
Gentoo Linux
Additional context
can also be reproduced with 6.24.06 from CVMFS, but not older versions < 6.24.00.