]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/MakeFMDFullMisAlignment.C
Using AliGeomManager in the macros (Raffaele)
[u/mrichter/AliRoot.git] / FMD / MakeFMDFullMisAlignment.C
index 3703439377775e606abab7e75376b5257f4ed47f..c37269dc7637e5aef815ff95f21e63cc17c0a86d 100644 (file)
@@ -1,7 +1,12 @@
 void MakeFMDFullMisAlignment(){
   // Create TClonesArray of full misalignment objects for FMD
   //
-  if(!gGeoManager) TGeoManager::Import("geometry.root");
+  if(!AliGeomManager::GetGeometry()){
+    if(!(AliCDBManager::Instance())->IsDefaultStorageSet())
+      AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT");
+      AliCDBManager::Instance()->SetRun(0);
+    AliGeomManager::LoadGeometry();
+  }
   // needed for the constructors with local coordinates not to fail
   
   gSystem->Load("libFMDutil.so");