source: trunk/MagicSoft/Cosy/starg.cc@ 4805

Last change on this file since 4805 was 4076, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 825 bytes
Line 
1#include <iostream.h>
2
3#include <TROOT.h>
4#include <TApplication.h>
5
6#include "MStarguider.h"
7
8/* ---------------------------------------------------------------------- */
9//extern void InitGui();
10//VoidFuncPtr_t initfuncs[] = { InitGui, 0 };
11
12TROOT root("GUI", "GUI test environement"); //, initfuncs);
13
14int main(int argc, char **argv)
15{
16 TApplication *app=new TApplication("Starguider", &argc, argv);
17
18 Int_t channel = 0;
19 for (int i=0; i<argc; i++)
20 {
21 TString arg(argv[i]);
22 if (arg=="-d")
23 channel = -1;
24 if (arg=="-1")
25 channel = 1;
26 if (arg=="-0")
27 channel = 0;
28 }
29
30 PixClient *client=new MStarguider(MObservatory::kMagic1, channel);
31 app->Run(kTRUE);
32 delete client;
33
34 cout << "Application end... Exit." << endl;
35 return 0;
36}
Note: See TracBrowser for help on using the repository browser.