]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STRUCT/AliBODY.cxx
added scalar product to the plots
[u/mrichter/AliRoot.git] / STRUCT / AliBODY.cxx
index 38c5b4e568ff8272eb2de1ed309ce4fb6b662f55..b9f1715d71b7958070eef8cb3ffa80ca44f2a53b 100644 (file)
@@ -36,6 +36,7 @@
 //                                                                           //
 ///////////////////////////////////////////////////////////////////////////////
 
+#include <TGeoGlobalMagField.h>
 #include <TVirtualMC.h>
 
 #include "AliBODY.h"
@@ -110,11 +111,11 @@ void AliBODY::CreateGeometry()
     dALIC[5]=0;
     dALIC[6]=2000;
 
-    dALIC[7]=3000;
+    dALIC[7]=15000;
     dALIC[8]=0;
     dALIC[9]=2000;
     gMC->Gsvolu("ALIC","PGON",idtmed[1],dALIC,10);
-  } else if ( gAlice->GetModule("CRT")) {
+  } else if ( gAlice->GetModule("ACORDE")) {
     //
     // If the Cosmic Ray Trigger  is present we need a large box
     // 
@@ -126,7 +127,7 @@ void AliBODY::CreateGeometry()
       
   } else {
     //
-    // If the ZDC and CRT are not present make just a BOX
+    // If the ZDC and ACORDE are not present make just a BOX
     //
     dALIC[0]=2000;
     dALIC[1]=2000;
@@ -139,8 +140,8 @@ void AliBODY::CreateGeometry()
 void AliBODY::CreateMaterials()
 {
 // Create materials and media
-  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