]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STRUCT/AliABSO.cxx
.so cleanup: removed .so in some log messages
[u/mrichter/AliRoot.git] / STRUCT / AliABSO.cxx
index a84227ee4addd8d72408dbb370a95d7dc076425a..baddc17a75427d7b5b348d37af4d54b644b1796a 100644 (file)
@@ -36,6 +36,9 @@
 //                                                                           //
 ///////////////////////////////////////////////////////////////////////////////
 
+#include <TGeoGlobalMagField.h>
+#include <TArrayI.h>
+
 #include "AliABSO.h"
 #include "AliRun.h"
 #include "AliMagF.h"
@@ -49,6 +52,15 @@ AliABSO::AliABSO()
   //
   // Default constructor
   //
+    for (Int_t i = 0; i < 2; i++) 
+    {
+       fNLayers[i] = 0;
+       for (Int_t j = 0; j < 15; j++) 
+       {
+           fZLayers[i][j] = 0.;
+           fMLayers[i][j] = 0;
+       }
+    }
 }
  
 //_____________________________________________________________________________
@@ -58,9 +70,15 @@ AliABSO::AliABSO(const char *name, const char *title)
   //
   // Standard constructor
   //
-  //PH  SetMarkerColor(7);
-  //PH  SetMarkerStyle(2);
-  //PH  SetMarkerSize(0.4);
+    for (Int_t i = 0; i < 2; i++) 
+    {
+       fNLayers[i] = 0;
+       for (Int_t j = 0; j < 15; j++) 
+       {
+           fZLayers[i][j] = 0.;
+           fMLayers[i][j] = 0;
+       }
+    }
 }
  
 //_____________________________________________________________________________
@@ -71,23 +89,14 @@ void AliABSO::CreateGeometry()
   //
 }
 
-//_____________________________________________________________________________
-void AliABSO::DrawModule() const
-{
-  //
-  // Draw a shaded view of the muon absorber
-  //
-}
-
-
 //_____________________________________________________________________________
 void AliABSO::CreateMaterials()
 {
   //
   // Define materials for muon absorber
   //
-  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();
 //
 // Air
 //