]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STRUCT/AliPIPEv1.cxx
cosmetics
[u/mrichter/AliRoot.git] / STRUCT / AliPIPEv1.cxx
index f43b321dbd38fb6b0bd2c1b9a925c0a7ccd848bf..75ec264151738b7f830a2bd3828513a5f4db4616 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/*
-$Log$
-Revision 1.6  1999/09/29 09:24:30  fca
-Introduction of the Copyright and cvs Log
-
-*/
+/* $Id$ */
 
 ///////////////////////////////////////////////////////////////////////////////
 //                                                                           //
-//  Beam pipe class                                                          //
+//  Beam pipe class. Test version                                            //
 //                                                                           //
 //Begin_Html
 /*
@@ -32,9 +27,11 @@ Introduction of the Copyright and cvs Log
 //                                                                           //
 ///////////////////////////////////////////////////////////////////////////////
 
+#include <TVirtualMC.h>
+
+#include "AliMagF.h"
 #include "AliPIPEv1.h"
 #include "AliRun.h"
-#include "AliMC.h"
  
 ClassImp(AliPIPEv1)
  
@@ -243,43 +240,6 @@ void AliPIPEv1::CreateGeometry()
   }
 }
 
-//_____________________________________________________________________________
-void AliPIPEv1::DrawModule()
-{
-  //
-  // Draw a shaded view of the Beam Pipe
-  //
-
-  // Set everything unseen
-  gMC->Gsatt("*", "seen", -1);
-  // 
-  // Set ALIC mother transparent
-  gMC->Gsatt("ALIC","SEEN",0);
-  //
-  // Set the volumes visible
-  gMC->Gsatt("QQMO","seen",1);
-  gMC->Gsatt("QDT1","seen",1);
-  gMC->Gsatt("QTB1","seen",1);
-  gMC->Gsatt("QDT2","seen",1);
-  gMC->Gsatt("QTB2","seen",1);
-  gMC->Gsatt("QDT5","seen",1);
-  gMC->Gsatt("QTB5","seen",1);
-  gMC->Gsatt("QDT7","seen",1);
-  gMC->Gsatt("QTB7","seen",1);
-  gMC->Gsatt("QN63","seen",1);
-  //
-  gMC->Gdopt("hide", "on");
-  gMC->Gdopt("shad", "on");
-  gMC->Gsatt("*", "fill", 7);
-  gMC->SetClipBox(".");
-  gMC->SetClipBox("*", 0, 3000, -3000, 3000, -6000, 6000);
-  gMC->DefaultRange();
-  gMC->Gdraw("alic", 40, 30, 0, 3, 5, .04, .04);
-  gMC->Gdhead(1111, "Beam Pipe");
-  gMC->Gdman(16, 6, "MAN");
-  gMC->Gdopt("hide","off");
-}
-
 //_____________________________________________________________________________
 void AliPIPEv1::CreateMaterials()
 {
@@ -287,8 +247,8 @@ void AliPIPEv1::CreateMaterials()
   // Create materials for beam pipe
   //
 
-  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();
   
   Float_t asteel[4] = { 55.847,51.9961,58.6934,28.0855 };
   Float_t zsteel[4] = { 26.,24.,28.,14. };