Fix to allow specifying initial file
authorcholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 27 Oct 2008 08:15:58 +0000 (08:15 +0000)
committercholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 27 Oct 2008 08:15:58 +0000 (08:15 +0000)
EVE/macros/display.C

index 566e466..3bd05cc 100644 (file)
@@ -359,8 +359,8 @@ public:
   }
   //____________________________________________________________________
   /** Get the static instance */
-  static Display* Instance() { 
-    if (!fgInstance) fgInstance = new Display();
+  static Display* Instance(const char* file=0) { 
+    if (!fgInstance) fgInstance = new Display(file);
     return fgInstance;
   }
 protected:
@@ -383,11 +383,11 @@ Display* Display::fgInstance = 0;
 
 
 //____________________________________________________________________
-Display* display()
+Display* display(const char* file="")
 {
-  TGeoManager::Import("geometry.root");
+  // TGeoManager::Import(geom);
 
-  Display* d = Display::Instance();
+  Display* d = Display::Instance(file);
   return d;
 
 }