]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STRUCT/AliBODY.cxx
//
[u/mrichter/AliRoot.git] / STRUCT / AliBODY.cxx
index b9f1715d71b7958070eef8cb3ffa80ca44f2a53b..3347e42fbf37116405e860cfb29e3b701a6ecaa1 100644 (file)
@@ -38,6 +38,7 @@
 
 #include <TGeoGlobalMagField.h>
 #include <TVirtualMC.h>
+#include <TArrayI.h>
 
 #include "AliBODY.h"
 #include "AliMagF.h"
@@ -99,22 +100,10 @@ void AliBODY::CreateGeometry()
   //
   if(gAlice->GetModule("ZDC")) {
     //
-    // If the ZDC is present we have an asymmetric box
-    // made by a four sides polygone
-    //
-    dALIC[0]=45;
-    dALIC[1]=360;
-    dALIC[2]=4;
-    dALIC[3]=2;
-
-    dALIC[4]=-15000;
-    dALIC[5]=0;
-    dALIC[6]=2000;
-
-    dALIC[7]=15000;
-    dALIC[8]=0;
-    dALIC[9]=2000;
-    gMC->Gsvolu("ALIC","PGON",idtmed[1],dALIC,10);
+    dALIC[0]=2500.;
+    dALIC[1]=2500.;
+    dALIC[2]=15000.;
+    gMC->Gsvolu("ALIC","BOX ",idtmed[1],dALIC,3);
   } else if ( gAlice->GetModule("ACORDE")) {
     //
     // If the Cosmic Ray Trigger  is present we need a large box
@@ -148,7 +137,7 @@ void AliBODY::CreateMaterials()
   Float_t aAir[4]={12.0107,14.0067,15.9994,39.948};
   Float_t zAir[4]={6.,7.,8.,18.};
   Float_t wAir[4]={0.000124,0.755267,0.231781,0.012827};
-  Float_t dAir = 1.20479E-3;
+  Float_t dAir = 1.20479E-3 * 960./1014.;
   Float_t dAir1 = 1.20479E-10;
   //
   AliMixture(1,"Vacuum  $",aAir,zAir,dAir1,4,wAir);
@@ -160,36 +149,3 @@ void AliBODY::CreateMaterials()
   AliMedium(3,"Be pipe $",3,0,isxfld,sxmgmx,10,0.1,0.1,0.01,0.01);
 }
  
-//_____________________________________________________________________________
-void AliBODY::DrawModule() const
-{
-  //
-  // Draw a view of the Alice outside box
-  //
-  // Set everything unseen
-  gMC->Gsatt("*", "seen", -1);
-  // 
-  // Set ALIC mother visible
-  gMC->Gsatt("ALIC","SEEN",1);
-  //
-  // Set the volumes visible
-  //
-  gMC->Gdopt("hide","off");
-  if(gAlice->GetModule("ZDC")) {
-    //
-    // ZDC is present
-    //
-    gMC->DefaultRange();
-    gMC->Gdraw("alic", 40, 30, 0, 15, 10, .0014, .0014);
-    gMC->Gdhead(1111, "Aice Main body with Zero Degree Calorimeter");
-  } else {
-    //
-    // ZDC is not present
-    //
-    gMC->Gdraw("alic", 40, 30, 0, 10, 9, .0027, .0027);
-    gMC->Gdhead(1111, "Aice Main body");
-  }
-  gMC->Gdman(18, 4, "MAN");
-}
-