root [0] .x aticdemos.C
Error: Can't call TControlBar::TControlBar() in current scope
FILE:/export/data/aticd1/jay1/ROOT/jay/track-cint/mmi/./aticdemos.C LINE:4
Warning: Undeclared data member bar1
FILE:/export/data/aticd1/jay1/ROOT/jay/track-cint/mmi/./aticdemos.C LINE:4
*** Interpreter error recovered ***
My code is(aticdemos.C):
{
gROOT->Reset(); // gROOT->Reset("a"); It does NOT work.
bar = new TControlBar("vertical","main menu");
bar1 = new TControlBar("horizontal","Tracking","Tracking Incident X(Y)
Position");
bar->AddButton("Utility",".L utility.C", "Load utility functions
first");
bar->AddButton("Total Ed",".x toted.C", "Plot 1D histogram of total
energy deposit");
bar->AddButton("Start!",".x start.C", "Read 1st event from
aticdata.root");
bar->AddButton("Event++",".x nextevent.C", "Next Event read");
bar->AddButton("Which Event?",".x whichevent.C", "A Selected Event
read");
bar->AddControlBar(bar1);
bar->AddButton("HITS-DISPLAY",".x evdisp.C", "DISPLAY HITS");
bar->AddButton("Quit!",".q", "Exit from ROOT");
bar1->AddButton("Calculation",".x track.C","Calculating Incident X(Y)
Position");
bar1->AddButton("DISP-Y BGO",".x disp_y_bgo.C","Display Y-BGO &
Tracking");
bar1->AddButton("DISP-X BGO",".x disp_x_bgo.C","Display X-BGO &
Tracking");
bar1->AddButton("DISP-Y SCN",".x disp_y_scn.C","Display Y-SCN &
Tracking");
bar1->AddButton("DISP-X SCN",".x disp_x_scn.C","Display X-SCN &
Tracking");
bar1->AddButton("DISP-SI HITS",".x disp_si_hits.C","Display SI HITS");
bar->Show();
gROOT->SaveContext();
}
Do you have any idea about it?
I cannot use TControlbar under TControlbar ?
--- Thannks in advance. Jayoung