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.);
24 TGeoMedium *_silicon =
new TGeoMedium(
"silicon",medInd++,_siliconMat,mPar);
26 TGeoMixture *_airMat =
new TGeoMixture(
"airMat",3);
27 _airMat->AddElement(14.01,7.,.78);
28 _airMat->AddElement(16.00,8.,.21);
29 _airMat->AddElement(39.95,18.,.01);
30 _airMat->SetDensity(1.2
e-3);
31 TGeoMedium *_air =
new TGeoMedium(
"air",medInd++,_airMat,mPar);
33 TGeoMixture *_vacuumMat =
new TGeoMixture(
"vacuumMat",3);
34 _vacuumMat->AddElement(14.01,7.,.78);
35 _vacuumMat->AddElement(16.00,8.,.21);
36 _vacuumMat->AddElement(39.95,18.,.01);
37 _vacuumMat->SetDensity(1.2
e-15);
38 TGeoMedium *_vacuum =
new TGeoMedium(
"vacuum",medInd++,_vacuumMat,mPar);
43 TGeoMedium *vacuum = gGeoManager->GetMedium(
"vacuum");
45 TGeoMedium *air = gGeoManager->GetMedium(
"air");
47 TGeoMedium *sil = gGeoManager->GetMedium(
"silicon");
50 TGeoVolume *top = gGeoManager->MakeBox(
"TOPPER", air, 1000., 1000., 1000.);
51 gGeoManager->SetTopVolume(top);
56 for (
unsigned int i=1; i<5; ++i){
57 TGeoVolume *redBullCan = gGeoManager->MakeTube(
"redBullCan", sil, i*distance, i*distance+thickness, 20.);
58 redBullCan->SetLineColor(kRed);
59 top->AddNode(redBullCan, 1, gGeoIdentity);
64 gGeoManager->CloseGeometry();
67 gGeoManager->SetVisLevel(10);
69 TFile *outfile = TFile::Open(
"genfitGeom.root",
"RECREATE");