5 new TGeoManager(
"genfitGeom",
"GENFIT geometry");
8 unsigned int medInd(0);
22 TGeoMaterial *_siliconMat =
new TGeoMaterial(
"siliconMat",28.0855,14.,2.329);
23 _siliconMat->SetRadLen(1.);
25 TGeoMedium *_silicon =
new TGeoMedium(
"silicon",medInd++,_siliconMat,mPar);
27 TGeoMixture *_airMat =
new TGeoMixture(
"airMat",3);
28 _airMat->AddElement(14.01,7.,.78);
29 _airMat->AddElement(16.00,8.,.21);
30 _airMat->AddElement(39.95,18.,.01);
31 _airMat->SetDensity(1.2
e-3);
33 TGeoMedium *_air =
new TGeoMedium(
"air",medInd++,_airMat,mPar);
35 TGeoMixture *_vacuumMat =
new TGeoMixture(
"vacuumMat",3);
36 _vacuumMat->AddElement(14.01,7.,.78);
37 _vacuumMat->AddElement(16.00,8.,.21);
38 _vacuumMat->AddElement(39.95,18.,.01);
39 _vacuumMat->SetDensity(1.2
e-15);
41 TGeoMedium *_vacuum =
new TGeoMedium(
"vacuum",medInd++,_vacuumMat,mPar);
46 TGeoMedium *vacuum = gGeoManager->GetMedium(
"vacuum");
48 TGeoMedium *air = gGeoManager->GetMedium(
"air");
50 TGeoMedium *sil = gGeoManager->GetMedium(
"silicon");
53 TGeoVolume *top = gGeoManager->MakeBox(
"TOPPER", air, 1000., 1000., 1000.);
54 gGeoManager->SetTopVolume(top);
59 for (
unsigned int i=1;
i<5; ++
i){
60 TGeoVolume *redBullCan = gGeoManager->MakeTube(
"redBullCan", sil,
i*distance,
i*distance+thickness, 20.);
61 redBullCan->SetLineColor(kRed);
62 top->AddNode(redBullCan, 1, gGeoIdentity);
67 gGeoManager->CloseGeometry();
70 gGeoManager->SetVisLevel(10);
72 TFile *
outfile = TFile::Open(
"genfitGeom.root",
"RECREATE");