* 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
/*
// //
///////////////////////////////////////////////////////////////////////////////
+#include <TVirtualMC.h>
+
+#include "AliMagF.h"
#include "AliPIPEv1.h"
#include "AliRun.h"
-#include "AliMC.h"
ClassImp(AliPIPEv1)
}
}
-//_____________________________________________________________________________
-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()
{
// 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. };