Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
GENIE
src
contrib
geo
make_fe_box.C
Go to the documentation of this file.
1
{
2
gSystem->Load(
"libGeom"
);
3
4
TGeoManager *
gm
=
new
TGeoManager(
"world"
,
""
);
5
6
TGeoMaterial *
fe56_mat
=
new
TGeoMaterial(
"fe56"
, 56, 26, 7.87);
7
TGeoMedium *
fe56_med
=
new
TGeoMedium (
"fe56"
, 1, fe56_mat);
8
9
TGeoVolume *
top
= gm->MakeBox(
"Top"
,fe56_med,20000,20000,20000);
10
gm->SetTopVolume(top);
11
gm->CloseGeometry();
12
13
TFile
f
(
"./boxg.root"
,
"recreate"
);
14
gm->Write();
15
f
.Close();
16
}
17
fe56_mat
TGeoMaterial * fe56_mat
Definition:
make_fe_box.C:6
fe56_med
TGeoMedium * fe56_med
Definition:
make_fe_box.C:7
f
TFile f("./boxg.root","recreate")
gm
TGeoManager * gm
Definition:
make_fe_box.C:4
top
TGeoVolume * top
Definition:
make_fe_box.C:9
Generated by
1.8.11