8 run.SetMaterials(
"media.geo")
12 cave= ROOT.ShipCave(
"CAVE")
13 cave.SetGeometryFileName(
"cave.geo")
16 if ship_geo.muShieldDesign==1:
17 MuonShield = ROOT.ShipMuonShield(
"MuonShield",ship_geo.muShieldDesign,
"ShipMuonShield",ship_geo.muShield.z,ship_geo.muShield.dZ0,ship_geo.muShield.length,\
19 elif ship_geo.muShieldDesign==2:
20 MuonShield = ROOT.ShipMuonShield(
"MuonShield",ship_geo.muShieldDesign,
"ShipMuonShield",ship_geo.muShield.z,ship_geo.muShield.dZ0,ship_geo.muShield.dZ1,\
21 ship_geo.muShield.dZ2,ship_geo.muShield.dZ3,ship_geo.muShield.dZ4,ship_geo.muShield.dZ5,ship_geo.muShield.dZ6,ship_geo.muShield.LE)
22 elif ship_geo.muShieldDesign==3
or ship_geo.muShieldDesign==4
or ship_geo.muShieldDesign==5 :
23 MuonShield = ROOT.ShipMuonShield(
"MuonShield",ship_geo.muShieldDesign,
"ShipMuonShield",ship_geo.muShield.z,ship_geo.muShield.dZ0,ship_geo.muShield.dZ1,\
24 ship_geo.muShield.dZ2,ship_geo.muShield.dZ3,ship_geo.muShield.dZ4,ship_geo.muShield.dZ5,ship_geo.muShield.dZ6,\
25 ship_geo.muShield.dZ7,ship_geo.muShield.dZ8,ship_geo.muShield.dXgap,ship_geo.muShield.LE,ship_geo.Yheight*4./10.)
27 run.AddModule(MuonShield)
31 for x
in run.GetListOfModules(): detElements[x.GetName()]=x