]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - AliGeant4/aligeant4.cxx
Merging the VirtualMC branch to the main development branch (HEAD)
[u/mrichter/AliRoot.git] / AliGeant4 / aligeant4.cxx
index a298ab1d4fc104e7b9a50501ce027200b5b99129..ed165d2b4e18d724a52f7961503315772cab2cdb 100644 (file)
@@ -7,26 +7,8 @@
 #include "TGeant4.h"
 #include "TG4RunManager.h"
 
-#include <TROOT.h>
-#include <TRint.h>
-
-extern void InitGui();
-
-#include <globals.hh>
-
 int main(int argc, char** argv) 
 {
-  // ROOT  ===================
-#ifdef G4VIS_USE_OPACS
-  // Root graphics does not work when OPACS graphics is build 
-  TROOT aTROOT("Alice","Alice G4 prototype Root I/O");
-#else
-  VoidFuncPtr_t initfuncs[] = { InitGui, 0 };
-  TROOT aTROOT("Alice","Alice G4 prototype Root I/O",initfuncs);
-#endif
-
-  // ALICE ======================
-
   // AliRun
   AliRun* run
     = new AliRun("gAlice","The Alice run manager");
@@ -40,9 +22,8 @@ int main(int argc, char** argv)
   // Geant4 ======================
 
   // TGeant4
-  TGeant4* geant4 
-    = new TGeant4("TGeant4", "The Geant4 Monte Carlo",
-                   runConfiguration, argc, argv );
+  new TGeant4("TGeant4", "The Geant4 Monte Carlo",
+              runConfiguration, argc, argv );
   G4cout << "TGeant4 has been created." << G4endl;
   
   // start UI ===================