Fix for missing TGeoManager
authorcholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 16 Sep 2010 14:35:02 +0000 (14:35 +0000)
committercholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 16 Sep 2010 14:35:02 +0000 (14:35 +0000)
EVE/EveDet/AliEveFMDLoader.cxx

index 0a53e57..d888f76 100644 (file)
@@ -113,15 +113,18 @@ AliEveFMDLoader::AliEveFMDLoader(const char* name, Bool_t useBoxes,
   
   
   // Initialize the FMD geometry manager 
-  AliEveEventManager::AssertGeometry();
+  TGeoManager* geoMan  = AliEveEventManager::AssertGeometry();
+  if (!geoMan) return;
+  geoMan->GetTopVolume()->cd(0);
+
   AliFMDGeometry* geom = AliFMDGeometry::Instance();
   geom->Init();
   geom->InitTransformations();
 
   AliFMDParameters* pars = AliFMDParameters::Instance();
   // pars->UseRcuTrailer(!old);
-  pars->UseCompleteHeader(old);
-  pars->SetSampleRate(4);
+  // pars->UseCompleteHeader(old);
+  // pars->SetSampleRate(4);
   pars->Init(kFALSE, 0);
 
   // Get shapes