BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
EventDisplay/BesVisClient/BesVisClient-00-04-10/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-10/src/main.cxx.

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