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

Last change on this file since 6886 was 4865, checked in by rwagner, 20 years ago
*** empty log message ***
File size: 824 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 environment"); //, 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.