#include "TG3Application.h"
#include "TGeant3TGeo.h"
#include "TRint.h"
Go to the source code of this file.
Functions | |
void | uginit_ () |
void | uglast_ () |
int | main (int argc, char **argv) |
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 10 of file gmain.cxx.
References uginit_(), and uglast_().
00011 { 00012 // Create an interactive ROOT application 00013 //TG3Application g3("G3","dummy"); 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 // and enter the event loop... 00034 theApp.Run(kTRUE); 00035 00036 uglast_(); 00037 00038 return 0; 00039 }
void uginit_ | ( | ) |
Referenced by main().
void uglast_ | ( | ) |
Referenced by main().