It lets you view the directory structure of ROOT files, as well as quickly create histograms of ntuple branches. It’s so useful that I use it a lot during the day, maybe 20 times or more. Using it then becomes a little tedious, as its instantiation is a little more verbose than I care for, particularly when I’m typing it all day.
So I cobbled something together which requires minimal effort.
This starts ROOT and brings up a
There are probably a few ways to do this, but I went for a shell function and a ROOT macro.
In a file my shell looks at, such as
.zshrc, I have the function
This calls a macro
newBrowser.C in a hidden folder
.macros in my home directory.
All the macro does is create a
TBrowser object, as you might expect.
As I really am lazy, I alias the
tbrowser function to
tb; again, in a file my shell looks at.
As an aside, if you haven’t already created an alias to hide that obnoxious ROOT splash screen, I’d recommend it.