57 TList* media = gGeoManager->GetListOfMedia();
60 TGeoMedium* medium = (TGeoMedium*)obj;
61 medium->SetParam(1, 2);
62 medium->SetParam(2, 10);
63 medium->SetParam(6, .001);
73 TGeoVolume* magneticVolume = gGeoManager->FindVolumeFast(
"magneticLogical");
75 magneticVolume->SetField(magField);
78 std::cerr <<
"The Tube volume was not found in geometry." << std::endl;
79 std::cerr <<
"Local magnetic field has not been set." << std::endl;
84 gMC->SetRootGeometry();