probably a beginners question:
I have a (simplified) macro:
------------------------------------------------------------
#include <iostream.h>
int t1 (const char* b_node="etphp02")
{
gROOT->Reset();
cv1 = new TCanvas("cv1","Backup history",100,100,600,600);
// and so on
}
---------------------------------------------------
typing .x t1.C works
I would like to call it from a control panel:
-----------------------------------------------------
{
gROOT->Reset("a");
bar = new TControlBar("vertical");
bar->AddButton("t1", ".x t1.C()", "Blabla");
bar->Show();
gROOT->SaveContext();
}
--------------------------------------------------------------
this o n l y works if I call directly from the command line before
using it from the control bar. What do I have to put in addition?
======================
Unrelated to this: Is there a way to have log scales when drawing
histograms?
Cheers,
----------------------------------------------------------------------------
Otto Schaile Sektion Physik der LMU Muenchen
Phone: (+49 89)289 14070 Am Coulombwall 1, D-85748 Garching, Germany
FAX: (+49 89)289 14072 EMail: Otto.Schaile@Physik.Uni-Muenchen.DE