Demonstrates how to use EVE as a histogram browser.
void histobrowser(
const char*
name=
"HLT Histos")
{
h =
new TH1F(
"Foo",
"Bar", 51, 0, 1);
for (
Int_t i=0; i<500; ++i)
h =
new TH1F(
"Fooes",
"Baros", 51, 0, 1);
for (
Int_t i=0; i<2000; ++i) {
}
h =
new TH1F(
"Fooesoto",
"Barosana", 51, 0, 1);
for (
Int_t i=0; i<4000; ++i) {
}
m->AddLine(
"{ g_hlt_canvas->Clear();"
" g_hlt_canvas->cd();"
" g_hlt_canvas->Update(); }");
m->SetName(
"Clear Canvas");
m->AddLine(
"{ g_hlt_canvas->Clear();"
" g_hlt_canvas->Divide(2,2);"
" g_hlt_canvas->cd(1);"
" g_hlt_canvas->Update(); }");
m->SetName(
"Split Canvas");
}
R__EXTERN TEveManager * gEve
R__EXTERN TRandom * gRandom
TGFileBrowser * MakeFileBrowser(Bool_t make_default=kFALSE)
Create a file-browser.
TEveBrowser * GetBrowser() const
static TEveManager * Create(Bool_t map_window=kTRUE, Option_t *opt="FIV")
If global TEveManager* gEve is not set initialize it.
<div class="legacybox"><h2>Legacy Code</h2> TFolder is a legacy interface: there will be no bug fixes...
System file browser, used as TRootBrowser plug-in.
void Add(TObject *obj, const char *name=nullptr, Int_t check=-1) override
Add items to the browser.
1-D histogram with a float per channel (see TH1 documentation)
Class supporting a collection of lines with C++ code.
virtual Double_t Gaus(Double_t mean=0, Double_t sigma=1)
Samples a random number from the standard Normal (Gaussian) Distribution with the given mean and sigm...
void StartEmbedding(Int_t pos=kRight, Int_t subpos=-1) override
Start embedding external frame in the tab "pos" and tab element "subpos".
void StopEmbedding(const char *name=nullptr) override
- Author
- Matevz Tadel
Definition in file histobrowser.C.