52 Int_t NIronSlabs = 12;
54 TGeoVolume* top = gGeoManager->GetTopVolume();
55 TGeoMedium* Fe = gGeoManager->GetMedium(
"iron");
59 TGeoUniformMagField* magField =
61 TGeoUniformMagField* RetField =
64 TGeoBBox* Layer =
new TGeoBBox(225, 400,
IronLenght / 2);
65 TGeoVolume* volLayer =
new TGeoVolume(
"volLayer", Layer, Fe);
66 for (Int_t i = 0; i < NIronSlabs; i++) {
68 top->AddNode(volLayer, i,
new TGeoTranslation(0, 0, d));
70 volLayer->SetField(magField);
72 cout <<
"************************************" << endl;
74 cout <<
" NIronSlabs = " << NIronSlabs << endl;
75 cout <<
" zLastSlab = " <<
zLastSlab << endl;
82 TGeoVolume* volLayer2 =
new TGeoVolume(
"volLayer2", Layer, Fe);
83 for (Int_t i = 0; i < NIronSlabs; i++) {
85 top->AddNode(volLayer2, i,
new TGeoTranslation(0, 0, d2));
87 volLayer2->SetField(RetField);
89 cout <<
"************************************" << endl;