#include <TApplication.h>
#include <TGClient.h>
#include <TROOT.h>
#include <TSystem.h>
#include <TEnv.h>
#include <TString.h>
#include <TMath.h>
#include <TGFrame.h>
#include <TGLayout.h>
#include <TGFileDialog.h>
#include <iostream>
#include <stdlib.h>
#include "BesVisClient/BesClient.h"
#include "BesVisLib/BesVisDisplay.h"
Go to the source code of this file.
Functions | |
int | main (int argc, char **argv) |
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 31 of file main.cxx.
References s, and boss::theApp.
00031 { 00032 00033 printf("\nWELCOME to BES3 Event Display\n\n"); 00034 00035 gEnv->SetValue("Gui.BackgroundColor", "#d6def7"); 00036 gEnv->SetValue("Gui.SelectBackgroundColor", "#ffeec2"); 00037 gEnv->SetValue("Gui.SelectForegroundColor", "black"); 00038 00039 if (getenv("BESVISLIBROOT") == 0){ 00040 setenv("BESVISLIBROOT", "/ihepbatch/bes/tianhl/workarea/630/EventDisplay/BesVisLib/BesVisLib-00-00-02", 1); 00041 } 00042 gEnv->SetValue("+Gui.IconPath", ":${BESVISLIBROOT}/icons"); 00043 00044 TApplication theApp("App", &argc, argv); 00045 00046 if (gROOT->IsBatch()) { 00047 fprintf(stderr, "%s: cannot run in batch mode\n", argv[0]); 00048 return 1; 00049 } 00050 00051 int width = 800; 00052 int height = 500; 00053 BesClient client(gClient->GetRoot(), "BesVis", width, height, "", theApp.Argc(), theApp.Argv()); 00054 try{ 00055 theApp.Run(); 00056 } 00057 catch (const char *s){ 00058 std::cout << s << std::endl; 00059 } 00060 00061 return 0; 00062 }