]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - test/vmctest/lego/g3Config.C
In vmctest:
[u/mrichter/AliRoot.git] / test / vmctest / lego / g3Config.C
diff --git a/test/vmctest/lego/g3Config.C b/test/vmctest/lego/g3Config.C
new file mode 100644 (file)
index 0000000..3a46863
--- /dev/null
@@ -0,0 +1,28 @@
+// $Id$
+//
+// Configuration macro for running aliroot with Geant3
+// with primary events read from external file.
+//
+// By I. Hrivnacova, IPN Orsay
+
+void Config(const TString& det)
+{
+  cout << "Running g3Config.C ... " << endl;
+
+  // AliRoot setup
+  //
+  gROOT->LoadMacro("$ALICE_ROOT/test/vmctest/lego/commonConfig.C");
+  commonConfig(det);
+
+  // Load Geant3 + Geant3 VMC libraries
+  //
+#if defined(__CINT__)
+    gSystem->Load("libgeant321");
+#endif
+
+  // Create TGeant3
+  //  
+  new  TGeant3TGeo("C++ Interface to Geant3");
+
+  cout << "Running g3Config.C finished ... " << endl;
+}