New file: initialization script for reve when launched from root.exe (there is unsolv...
authormtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 12 Oct 2006 13:55:55 +0000 (13:55 +0000)
committermtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 12 Oct 2006 13:55:55 +0000 (13:55 +0000)
EVE/macros/reve_sa_init.C [new file with mode: 0644]

diff --git a/EVE/macros/reve_sa_init.C b/EVE/macros/reve_sa_init.C
new file mode 100644 (file)
index 0000000..5356ad7
--- /dev/null
@@ -0,0 +1,21 @@
+// Stand-Alone reve initialization.
+// If class Reve::RGTopFrame is not know it attempts to load
+// "libReve".
+
+void reve_sa_init(int mode=1)
+{
+  TClass* c = gROOT->GetClass("Reve::RGTopFrame");
+  if (!c) {
+    Info("reve_sa_init", "tring to load libReve.");
+    //gSystem->Load("libTreePlayer");
+    //gSystem->Load("libGeomPainter");
+    //gSystem->Load("libGed");
+    gSystem->Load("libRGL");
+    gSystem->Load("libEG");
+    if (gSystem->Load("libReve") == -1)
+      Warning("reve_sa_init", "loading of libReve failed.");
+  }
+
+  Reve::SetupEnvironment();
+  Reve::RGTopFrame::SpawnGui(mode);
+}