00001 #include "TG3Application.h"
00002 #include "TGeant3TGeo.h"
00003 #include "TRint.h"
00004 extern "C"
00005 {
00006 void uginit_();
00007 void uglast_();
00008 }
00009
00010 int main(int argc, char **argv)
00011 {
00012
00013
00014 TG3Application g3;
00015 if (argc > 1 && !strcmp(argv[1],"TGeant3")) {
00016 new TGeant3("g",0);
00017 printf("+-----------------------------------------------------------+\n");
00018 printf("| |\n");
00019 printf("| Running %s with TGeant3 <=========\n",argv[0]);
00020 } else {
00021 new TGeant3TGeo("g",0);
00022 printf("+-----------------------------------------------------------+\n");
00023 printf("| |\n");
00024 printf("| Running %s with TGeant3TGeo <=========\n",argv[0]);
00025 }
00026 printf("| |\n");
00027 printf("+-----------------------------------------------------------+\n");
00028
00029 uginit_();
00030
00031 TRint theApp("Rint", &argc, argv);
00032
00033
00034 theApp.Run(kTRUE);
00035
00036 uglast_();
00037
00038 return 0;
00039 }