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 
TGeoMaterial * fe56_mat
Definition: make_fe_box.C:6
TGeoMedium * fe56_med
Definition: make_fe_box.C:7
TFile f("./boxg.root","recreate")
TGeoManager * gm
Definition: make_fe_box.C:4
TGeoVolume * top
Definition: make_fe_box.C:9