#include <Riostream.h>
+#include <TGeoManager.h>
+#include <TGeoGlobalMagField.h>
#include <TSystem.h>
#include <TVirtualMC.h>
+#include <TArrayI.h>
#include "AliConst.h"
#include "AliMagF.h"
ptube[2] = hlenQb28;
gMC->Gsvolu("QA28","TUBE", idtmed[kAirHigh], ptube, 3);
- gMC->Gsatt("QA28", "SEEN", 0);
+ gGeoManager->SetVolumeAttribute("QA28", "SEEN", 0);
// Al-Be (40-60 wgt%, rho=2.7 g/cm**3) beam pipe
//
// This section is under study (A.M. 1/2/2002)
gMC->Gspos("QI34", 1, "QBPM", 0.0, -17.90, zPump,idrotm[2002], "ONLY");
gMC->Gspos("QI35", 1, "QBPM", 0.0, -24.35, zPump,idrotm[2002], "ONLY");
- gMC->Gsatt("QBPM", "SEEN", 1);
- gMC->Gsatt("QBEM", "SEEN", 1);
+ gGeoManager->SetVolumeAttribute("QBPM", "SEEN", 1);
+ gGeoManager->SetVolumeAttribute("QBEM", "SEEN", 1);
}
//
AliDebugClass(1,"Create PIPEv0 materials");
- 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();
// Steel (Inox)
Float_t asteel[4] = { 55.847,51.9961,58.6934,28.0855 };
Float_t zsteel[4] = { 26.,24.,28.,14. };