39{
41
42
43
44
45
46
47 double densityOfAir=0.1, densityOfPolystyrene=0.2;
48 const GeoMaterial *air = new GeoMaterial("Air Two",densityOfAir);
49 const GeoMaterial *poly = new GeoMaterial("std::Polystyrene",densityOfPolystyrene);
50
51
52
53
54 const GeoBox *toyBox = new GeoBox(800*GeoModelKernelUnits::cm, 800*GeoModelKernelUnits::cm, 1000*GeoModelKernelUnits::cm);
55
56 const GeoLogVol *toyLog = new GeoLogVol("ToyLog", toyBox, air);
57
58 GeoPhysVol *toyPhys = new GeoPhysVol(toyLog);
59
61
62
63
64 GeoBox *sPass = new GeoBox(5.0*GeoModelKernelUnits::cm, 30*GeoModelKernelUnits::cm, 30*GeoModelKernelUnits::cm);
65 GeoLogVol *lPass = new GeoLogVol("Passive", sPass, poly);
66 GeoPhysVol *pPass = new GeoPhysVol(lPass);
67
68 GeoBox *sIPass = new GeoBox(4*GeoModelKernelUnits::cm, 25*GeoModelKernelUnits::cm, 25*GeoModelKernelUnits::cm);
69 GeoLogVol *lIPass = new GeoLogVol("InnerPassive", sIPass, air);
70 GeoPhysVol *pIPass = new GeoPhysVol(lIPass);
71
72 pPass->add(pIPass);
73 toyPhys->add(pPass);
74
75
76
77
78
79 GeoNameTag *
tag =
new GeoNameTag(
"Toy");
80 world->add(tag);
81 world->add(toyPhys);
82
83}