]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STRUCT/AliSHIL.cxx
Correctly add histograms from Ylm functions
[u/mrichter/AliRoot.git] / STRUCT / AliSHIL.cxx
index c98468b3fdea2e1476550dff4d804c3722239097..031b77e1e542675b2e0bd6118486860fb0c28e3b 100644 (file)
@@ -29,6 +29,8 @@
 //                                                                           //
 ///////////////////////////////////////////////////////////////////////////////
 
+#include <TGeoGlobalMagField.h>
+
 #include "AliSHIL.h"
 #include "AliRun.h"
 #include "AliMagF.h"
@@ -52,9 +54,9 @@ AliSHIL::AliSHIL(const char *name, const char *title)
   //
   // Standard constructor for muon shield
   //
-  SetMarkerColor(7);
-  SetMarkerStyle(2);
-  SetMarkerSize(0.4);
+  //PH  SetMarkerColor(7);
+  //PH  SetMarkerStyle(2);
+  //PH  SetMarkerSize(0.4);
 }
  
 //_____________________________________________________________________________
@@ -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. };