Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

gmain.cxx

Go to the documentation of this file.
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    // 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 }

Generated on Mon Feb 15 11:06:46 2010 for loon by  doxygen 1.3.9.1