#include <iostream>#include <fstream>#include <stdio.h>#include <stdlib.h>#include "unistd.h"#include "TROOT.h"#include "TApplication.h"#include "TGClient.h"#include "HistoDisplay.h"Go to the source code of this file.
Functions | |
| void | InitGui () |
| TROOT | root ("GUI","GUI test environement", initfuncs) |
| int | main (int margc, char **margv) |
Variables | |
| VoidFuncPtr_t | initfuncs [] = { InitGui, 0 } |
|
|
|
|
||||||||||||
|
COMMAND LINE CALIB CONSTANTS BEAM RUN KEY Cerenkov ADC cuts: ATTENUATION PARAMS FILE + TREE Definition at line 32 of file HistoDisplayMain.cc. References port. 00033 {
00034 // TROOT root("GUI", "GUI test environement", initfuncs);
00035
00036 int argc=1;
00037
00038 // char **argv;
00039 // argv[1]="HistoDisplayMain";
00040
00041 char *argv[2];
00042 argv[0]=new char[20];
00043 argv[1]=new char[20];
00044 sprintf(argv[1],"HistoDisplayMain");
00045
00046 // cout << argc << endl;
00047 // cout << **argv << endl;
00048
00049 const char *socketserver="localhost";
00050 std::string ss;
00051 Int_t port=9091;
00052 int copt;
00053
00054
00055 while ((copt=getopt(margc,margv,"s:p:h")) != EOF) {
00056
00057 switch (copt) {
00058
00059
00060 case 'h':
00061
00062 printf(" usage: %s\n", margv[0]);
00063 printf(" -s: IP address of OM socket server to connect to\n");
00064 printf(" default = localhost\n");
00065 printf(" -p: socket server port\n");
00066 printf(" default = 9091:");
00067 printf("\n -h: print this message\n");
00068
00069
00070 exit(1);
00071 break;
00072
00073
00074 case 's':
00075
00076 socketserver=optarg;
00077 break;
00078
00079 case 'p':
00080
00081 port=atoi(optarg);
00082 break;
00083
00084 default:
00085
00086 socketserver="localhost";
00087 port=9091;
00088
00089
00090 printf("Using default socket server parameters - localhost:9091\n");
00091
00092 break;
00093
00094 }
00095 }
00096
00097
00098 cout << "ss=" << socketserver << " port=" << port << endl;
00099
00100 TApplication theApp("App", &argc, argv);
00101
00102
00103 HistoDisplay Displays(gClient->GetRoot(), 200, 400, socketserver, port);
00104
00105 theApp.Run();
00106
00107 return 0;
00108
00109 }
|
|
||||||||||||||||
|
|
|
|
Definition at line 27 of file HistoDisplayMain.cc. |
1.3.9.1