]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STRUCT/AliBODY.cxx
added methods to define the set of cuts used in the V0 and cascade re-vertexers ...
[u/mrichter/AliRoot.git] / STRUCT / AliBODY.cxx
index afdb878ac3eb73aab9bc0f4de687784456f8a278..be8d03f3af0bc78602b6145cfff6c2ed83537d18 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]=2500;
-
-    dALIC[7]=15000;
-    dALIC[8]=0;
-    dALIC[9]=2500;
-    gMC->Gsvolu("ALIC","PGON",idtmed[1],dALIC,10);
+    dALIC[0]=2500.;
+    dALIC[1]=2500.;
+    dALIC[2]=15000.;
+    TVirtualMC::GetMC()->Gsvolu("ALIC","BOX ",idtmed[1],dALIC,3);
   } else if ( gAlice->GetModule("ACORDE")) {
     //
     // If the Cosmic Ray Trigger  is present we need a large box
@@ -123,7 +112,7 @@ void AliBODY::CreateGeometry()
     dALIC[0]=13000.;
     dALIC[1]=5000.;
     dALIC[2]=13000.;
-    gMC->Gsvolu("ALIC","BOX ",idtmed[1],dALIC,3);
+    TVirtualMC::GetMC()->Gsvolu("ALIC","BOX ",idtmed[1],dALIC,3);
       
   } else {
     //
@@ -132,7 +121,7 @@ void AliBODY::CreateGeometry()
     dALIC[0]=2000;
     dALIC[1]=2000;
     dALIC[2]=3000;
-    gMC->Gsvolu("ALIC","BOX ",idtmed[1],dALIC,3);
+    TVirtualMC::GetMC()->Gsvolu("ALIC","BOX ",idtmed[1],dALIC,3);
   }
 }