]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STRUCT/AliBODY.cxx
Protection if trigger TClonesArray is empty (Ch.F.)
[u/mrichter/AliRoot.git] / STRUCT / AliBODY.cxx
index 1a4eaba44e69f13caca3a2822461a1833fe3aac5..8ee2a74ebcefd2f8d011e0cd3deb61f3054795be 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/*
-$Log$
-Revision 1.7  2000/06/11 12:32:51  morsch
-Coding rule violations corrected
-
-Revision 1.6  1999/09/29 09:24:30  fca
-Introduction of the Copyright and cvs Log
-
-*/
+/* $Id$ */
 
 ///////////////////////////////////////////////////////////////////////////////
 //                                                                           //
@@ -44,10 +36,11 @@ Introduction of the Copyright and cvs Log
 //                                                                           //
 ///////////////////////////////////////////////////////////////////////////////
 
-#include "AliRun.h"
-#include "AliMC.h"
-#include "AliMagF.h"
+#include <TVirtualMC.h>
+
 #include "AliBODY.h"
+#include "AliMagF.h"
+#include "AliRun.h"
 
 ClassImp(AliBODY)
  
@@ -112,16 +105,28 @@ void AliBODY::CreateGeometry()
     dALIC[1]=360;
     dALIC[2]=4;
     dALIC[3]=2;
-    dALIC[4]=-3000;
+
+    dALIC[4]=-15000;
     dALIC[5]=0;
     dALIC[6]=2000;
-    dALIC[7]=15000;
+
+    dALIC[7]=3000;
     dALIC[8]=0;
     dALIC[9]=2000;
     gMC->Gsvolu("ALIC","PGON",idtmed[1],dALIC,10);
+  } else if ( gAlice->GetModule("CRT")) {
+    //
+    // If the Cosmic Ray Trigger  is present we need a large box
+    // 
+    //
+    dALIC[0]=13000.;
+    dALIC[1]=5000.;
+    dALIC[2]=13000.;
+    gMC->Gsvolu("ALIC","BOX ",idtmed[1],dALIC,3);
+      
   } else {
     //
-    // If the ZDC is not present make just a BOX
+    // If the ZDC and CRT are not present make just a BOX
     //
     dALIC[0]=2000;
     dALIC[1]=2000;
@@ -147,7 +152,7 @@ void AliBODY::CreateMaterials()
 }
  
 //_____________________________________________________________________________
-void AliBODY::DrawModule()
+void AliBODY::DrawModule() const
 {
   //
   // Draw a view of the Alice outside box