16 #include <TGeoManager.h>
17 #include <TGeoMaterial.h>
18 #include <TGeoMedium.h>
22 #include <TObjArray.h>
40 TGeoVolume* top = gGeoManager->GetTopVolume();
42 TGeoMedium* Carbon = gGeoManager->GetMedium(
"C");
44 TGeoMaterial* matCarbon =
new TGeoMaterial(
"C", 12.011, 6.0, 2.265);
45 Carbon =
new TGeoMedium(
"C", 3, matCarbon);
48 TGeoMaterial* matVacuum =
new TGeoMaterial(
"Vacuum", 0, 0, 0);
49 TGeoMedium* Vacuum =
new TGeoMedium(
"Vacuum", 4, matVacuum);
52 Double_t z[] = {-100, 300};
53 Double_t r[] = {2.5, 2.5};
54 Double_t Thickness = 0.05;
55 TGeoPcon* shape =
new TGeoPcon(0., 360., nSects);
56 for (Int_t iSect = 0; iSect < nSects; iSect++) {
57 shape->DefineSection(iSect, z[iSect], r[iSect], r[iSect] + Thickness);
61 TGeoVolume* pipe =
new TGeoVolume(
"MyPipe", shape, Carbon);
64 TGeoPcon* Vshape =
new TGeoPcon(0., 360., nSects);
65 for (Int_t iSect = 0; iSect < nSects; iSect++) {
66 Vshape->DefineSection(iSect, z[iSect], r[iSect], r[iSect]);
70 TGeoVolume* Vpipe =
new TGeoVolume(
"MyPipe", shape, Vacuum);
72 top->AddNode(pipe, 1);
73 top->AddNode(Vpipe, 1);
virtual void ConstructGeometry()
ClassImp(FairEventBuilder)
virtual FairModule * CloneModule() const