]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STRUCT/AliSHIL.cxx
Coveriry (used variable detUsed)
[u/mrichter/AliRoot.git] / STRUCT / AliSHIL.cxx
index 70a9cc65d2e30def7502e520417cf9aed28024a4..350999f200a23f56d665c97fc5b24e918672e63c 100644 (file)
@@ -29,6 +29,8 @@
 //                                                                           //
 ///////////////////////////////////////////////////////////////////////////////
 
+#include <TGeoGlobalMagField.h>
+
 #include "AliSHIL.h"
 #include "AliRun.h"
 #include "AliMagF.h"
@@ -71,10 +73,10 @@ void AliSHIL::CreateMaterials()
   //
   // Defines materials for the muon shield
   //
-  Int_t   isxfld1 = gAlice->Field()->Integ();
-  Int_t   isxfld2 = gAlice->Field()->PrecInteg();
+  Int_t   isxfld1 = ((AliMagF*)TGeoGlobalMagField::Instance()->GetField())->Integ();
+  Int_t   isxfld2 = ((AliMagF*)TGeoGlobalMagField::Instance()->GetField())->PrecInteg();
 
-  Float_t sxmgmx = gAlice->Field()->Max();
+  Float_t sxmgmx = ((AliMagF*)TGeoGlobalMagField::Instance()->GetField())->Max();
 // Steel  
   Float_t asteel[4] = { 55.847,51.9961,58.6934,28.0855 };
   Float_t zsteel[4] = { 26.,24.,28.,14. };
@@ -254,12 +256,6 @@ void AliSHIL::CreateMaterials()
 
 }
 
-//_____________________________________________________________________________
-void AliSHIL::DrawModule () const
-{
-    // Drawing options
-}
-
 //_____________________________________________________________________________
 void AliSHIL::Init()
 {