]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - macros/g4ConfigCommon.C
fatal error in case OCDB entry with alignment objects is not found for one or more...
[u/mrichter/AliRoot.git] / macros / g4ConfigCommon.C
index 0791ba8df2a6446eda7bcb75e5312ee47a7a7011..8be566616830c2a0d7931244e0a3ee3f9746ebfd 100644 (file)
@@ -80,8 +80,7 @@ void ConfigCommon(Bool_t setRootGeometry = kTRUE)
   // ============================= 
 
     // Field (L3 0.4 T)
-    AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 2, 1., 10., 1);
-    gAlice->SetField(field);    
+    TGeoGlobalMagField::Instance()->SetField(new AliMagF("Maps","Maps", 2, 1., 1., 10., AliMagF::k5kG));
 
     Int_t   iABSO  =  1;
     Int_t   iDIPO  =  1;