00001 // macro to instantiate the Geant3 from within 00002 // STAR C++ framework and get the starsim prompt 00003 // To use it do 00004 // root4star starsim.C 00005 class St_geant_Maker; 00006 void starsim() { 00007 gROOT->Macro("Load.C"); 00008 gSystem->Load("libSt_g2t"); 00009 gSystem->Load("libStarMagField.so"); 00010 gSystem->Load("St_geant_Maker"); 00011 (new St_geant_Maker())->Init(); 00012 printf ("\n\n . . . . Switching to the starsim interactive session:\n"); 00013 TGiant3::Geant3()->GetKuipPrompt(); 00014 printf ("\n----------\nRestore the ROOT interactive session\n"); 00015 }
1.5.9