80 new TGeoManager(
"E02_geometry",
"E02 VMC example geometry");
88 TGeoElement* elN =
new TGeoElement(
"Nitrogen",
"N", z = 7., a = 14.01);
89 TGeoElement* elO =
new TGeoElement(
"Oxygen",
"O", z = 8., a = 16.00);
93 TGeoMixture* matAir =
new TGeoMixture(
"Air", 2, density = 1.29e-03);
94 matAir->AddElement(elN, 0.7);
95 matAir->AddElement(elO, 0.3);
97 TGeoMaterial* matLead =
98 new TGeoMaterial(
"Lead", a = 207.19, z = 82., density = 11.35);
100 TGeoMaterial* matXe =
101 new TGeoMaterial(
"XenonGas", a = 131.29, z = 54., density = 5.458e-03);
103 Double_t atmosphere = 6.32421e+08;
104 Double_t pressure = 1. * atmosphere;
105 Double_t temperature = 293.15;
106 matXe->SetPressure(pressure);
107 matXe->SetTemperature(temperature);
108 matXe->SetState(TGeoMaterial::kMatStateGas);
121 for (Int_t i = 8; i < 20; ++i) param[i] = 0.;
124 new TGeoMedium(
"Air",
fImedAir, matAir, param);
127 new TGeoMedium(
"Lead",
fImedPb, matLead, param);
130 new TGeoMedium(
"XenonGas",
fImedXe, matXe, param);
157 world[0] = halfWorldLength;
158 world[1] = halfWorldLength;
159 world[2] = halfWorldLength;
160 TGeoVolume* top = gGeoManager->Volume(
"WRLD",
"BOX",
fImedAir, world, 3);
161 gGeoManager->SetTopVolume(top);
168 target[0] = targetSize;
169 target[1] = targetSize;
170 target[2] = targetSize;
171 gGeoManager->Volume(
"TARG",
"BOX", targetMater, target, 3);
175 Double_t posZ = -(targetSize + trackerSize);
176 gGeoManager->Node(
"TARG", 1,
"WRLD", posX, posY, posZ, 0, kTRUE, ubuf);
181 <<
" of lead " << endl;
188 tracker[0] = trackerSize;
189 tracker[1] = trackerSize;
190 tracker[2] = trackerSize;
191 gGeoManager->Volume(
"TRAK",
"BOX",
fImedAir, tracker, 3);
196 gGeoManager->Node(
"TRAK", 1,
"WRLD", posX, posY, posZ, 0, kTRUE, ubuf);
210 gGeoManager->Volume(
"CHMB",
"BOX", chamberMater, chamber, 0);
228 "CHMB", i,
"TRAK", pos[0], pos[1], pos[2], 0, kTRUE, dim, 3);
231 cout <<
"There are " <<
fNofChambers <<
" chambers in the tracker region. "
240 gGeoManager->CloseGeometry();
243 gMC->SetRootGeometry();