source: trunk/Cosy/starg.cc@ 18122

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