]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - T0/AliT0v0.cxx
lookup table
[u/mrichter/AliRoot.git] / T0 / AliT0v0.cxx
index 33cd73e74aad5ac8051fa9cfcf2b6f690fcfad75..ccd64261997a78f53b4db1c37926621a7bed8ba6 100644 (file)
@@ -31,6 +31,7 @@
 #include <Riostream.h>
 #include <stdlib.h>
 
+#include <TGeoGlobalMagField.h>
 #include <TLorentzVector.h>
 #include <TMath.h>
 #include <TVirtualMC.h>
@@ -433,8 +434,8 @@ void AliT0v0::CreateGeometry()
 //------------------------------------------------------------------------
 void AliT0v0::CreateMaterials()
 {
-   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 a,z,d,radl,absl,buf[1];
    Int_t nbuf;
 
@@ -525,30 +526,6 @@ void AliT0v0::CreateMaterials()
    AliDebugClass(1,": ++++++++++++++Medium set++++++++++");
 
 }
-//---------------------------------------------------------------------
-void AliT0v0::DrawModule() const
-{
-//
-// Draw a shaded view of the Forward multiplicity detector version 0
-//
-  
-  //Set ALIC mother transparent
-  gMC->Gsatt("ALIC","SEEN",0);
-  //
-  //Set volumes visible
-  gMC->Gsatt("0STA","SEEN",0);
-  gMC->Gsatt("0PMT","SEEN",1);
-  gMC->Gsatt("0DIV","SEEN",1);
-  //
-  gMC->Gdopt("hide","on");
-  gMC->Gdopt("shad","on");
-  gMC->SetClipBox(".");
-  gMC->SetClipBox("*",0,1000,-1000,1000,-1000,1000);
-  gMC->DefaultRange();
-  gMC->Gdraw("alic",40,30,0,12,9.5,.7,0.7);
-  gMC->Gdhead(1111,"T-Zero detector");
-  gMC->Gdopt("hide","off");
-}
 
 //-------------------------------------------------------------------
 void AliT0v0::Init()