00001 #ifdef STANDALONE
00002
00003 #include <TROOT.h>
00004 #include <TApplication.h>
00005 #include <TSystem.h>
00006 #include <iostream.h>
00007
00008 #include "gui.h"
00009
00010 const UInt_t width = 700;
00011 const UInt_t height = 500;
00012
00013 TROOT root("elast_root", "Elast");
00014
00015 int main(int argc, char** argv)
00016 {
00017 TApplication* elastApp = 0;
00018
00019 if (gROOT->IsBatch()) {
00020 fprintf(stderr, "%s: cannot run in batch mode\n", argv[0]);
00021 return 1;
00022 }
00023
00024 elastApp = new TApplication("Elast", &argc, argv);
00025
00026 new MainFrame(gClient->GetRoot(), width, height);
00027
00028 elastApp->Run();
00029
00030 return 0;
00031 }
00032
00033 #endif //STANDALONE