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

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