]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - T0/AliT0v0.cxx
Fixing a warning that was a bug
[u/mrichter/AliRoot.git] / T0 / AliT0v0.cxx
index 33cd73e74aad5ac8051fa9cfcf2b6f690fcfad75..292a9370806d1efc06af7dea1f167648a27a43b7 100644 (file)
@@ -31,6 +31,7 @@
 #include <Riostream.h>
 #include <stdlib.h>
 
+#include <TGeoGlobalMagField.h>
 #include <TLorentzVector.h>
 #include <TMath.h>
 #include <TVirtualMC.h>
@@ -433,8 +434,8 @@ void AliT0v0::CreateGeometry()
 //------------------------------------------------------------------------
 void AliT0v0::CreateMaterials()
 {
-   Int_t isxfld   = gAlice->Field()->Integ();
-   Float_t sxmgmx = gAlice->Field()->Max();
+   Int_t isxfld   = ((AliMagF*)TGeoGlobalMagField::Instance()->GetField())->Integ();
+   Float_t sxmgmx = ((AliMagF*)TGeoGlobalMagField::Instance()->GetField())->Max();
    Float_t a,z,d,radl,absl,buf[1];
    Int_t nbuf;