//////////////////////////////////////////////////////////////// //For ROOT////////////////////////////////////////////////////// #include <TROOT.h> #include <TCanvas.h> #include <TPad.h> #include <TApplication.h> extern void InitGui(); VoidFuncPtr_t initfuncs[] = { InitGui, 0 }; TROOT root("rint", "The ROOT Interactive Interface", initfuncs); //////////////////////////////////////////////////////////////// int main() { TApplication* pRootApp = new TApplication("RootApp",0,0); TCanvas* T = new TCanvas("c1","bla",200,10,600,400); TPad *pad1 = new TPad("pad1","The ultra pad",0.05,0.52,0.95,0.97); pad1->Draw(); T->Modified(); T->Update(); while(1); return 0; }
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:16 MET