BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
EventDisplay/BesVisClient/BesVisClient-00-04-04/src/main.cxx File Reference
#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)
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 31 of file EventDisplay/BesVisClient/BesVisClient-00-04-04/src/main.cxx.

31 {
32
33 printf("\nWELCOME to BES3 Event Display\n\n");
34
35 gEnv->SetValue("Gui.BackgroundColor", "#d6def7");
36 gEnv->SetValue("Gui.SelectBackgroundColor", "#ffeec2");
37 gEnv->SetValue("Gui.SelectForegroundColor", "black");
38
39 if (getenv("BESVISLIBROOT") == 0){
40 setenv("BESVISLIBROOT", "/ihepbatch/bes/tianhl/workarea/630/EventDisplay/BesVisLib/BesVisLib-00-00-02", 1);
41 }
42 gEnv->SetValue("+Gui.IconPath", ":${BESVISLIBROOT}/icons");
43
44 TApplication theApp("App", &argc, argv);
45
46 if (gROOT->IsBatch()) {
47 fprintf(stderr, "%s: cannot run in batch mode\n", argv[0]);
48 return 1;
49 }
50
51 int width = 800;
52 int height = 500;
53 BesClient client(gClient->GetRoot(), "BesVis", width, height, "", theApp.Argc(), theApp.Argv());
54 try{
55 theApp.Run();
56 }
57 catch (const char *s){
58 std::cout << s << std::endl;
59 }
60
61 return 0;
62}
XmlRpcServer s
Definition: HelloServer.cpp:11