13void histobrowser(
const char *
name =
"HLT Histos")
19 gEve->GetBrowser()->StartEmbedding(0);
20 g_hlt_browser =
gEve->GetBrowser()->MakeFileBrowser();
21 gEve->GetBrowser()->StopEmbedding(
name);
30 h =
new TH1F(
"Foo",
"Bar", 51, 0, 1);
31 for (
Int_t i = 0; i < 500; ++i)
34 g_hlt_browser->
Add(
l);
37 h =
new TH1F(
"Fooes",
"Baros", 51, 0, 1);
38 for (
Int_t i = 0; i < 2000; ++i) {
43 g_hlt_browser->
Add(
f);
45 h =
new TH1F(
"Fooesoto",
"Barosana", 51, 0, 1);
46 for (
Int_t i = 0; i < 4000; ++i) {
47 h->Fill(
gRandom->Gaus(.25, .02), 0.04);
49 h->Fill(
gRandom->Gaus(.75, .02), 0.04);
51 g_hlt_browser->
Add(
h);
58 m->AddLine(
"{ g_hlt_canvas->Clear();"
59 " g_hlt_canvas->cd();"
60 " g_hlt_canvas->Update(); }");
61 m->SetName(
"Clear Canvas");
62 g_hlt_browser->
Add(
m);
65 m->AddLine(
"{ g_hlt_canvas->Clear();"
66 " g_hlt_canvas->Divide(2,2);"
67 " g_hlt_canvas->cd(1);"
68 " g_hlt_canvas->Update(); }");
69 m->SetName(
"Split Canvas");
70 g_hlt_browser->
Add(
m);
74 gEve->GetBrowser()->StartEmbedding(1);
76 gEve->GetBrowser()->StopEmbedding(
"HLT Canvas");
int Int_t
Signed integer 4 bytes (int).
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.