]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Build the geometry used by the old display only on demand
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 11 Jan 2007 15:05:19 +0000 (15:05 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 11 Jan 2007 15:05:19 +0000 (15:05 +0000)
STEER/AliRun.cxx

index 058b780e3a45aadb0baa11adfe188d58cecb56a0..f3dfa3163df12280e01dd5aef9d805bd40f88861 100644 (file)
@@ -172,8 +172,6 @@ AliRun::AliRun(const char *name, const char *title):
 
   // Add to list of browsable  
   gROOT->GetListOfBrowsables()->Add(this,name);
-  // Create the TNode geometry for the event display
-  BuildSimpleGeometry();
   
   // Create default mag field
   SetField();
@@ -474,7 +472,10 @@ TGeometry *AliRun::GetGeometry()
   // Import Alice geometry from current file
   // Return pointer to geometry object
   //
-  if (!fGeometry) fGeometry = dynamic_cast<TGeometry*>(gDirectory->Get("AliceGeom"));
+  //PH  if (!fGeometry) fGeometry = dynamic_cast<TGeometry*>(gDirectory->Get("AliceGeom"));
+
+  // Create the TNode geometry for the event display
+  if (!fGeometry) BuildSimpleGeometry();
   //
   // Unlink and relink nodes in detectors
   // This is bad and there must be a better way...