23 #include "DD4hep/DetFactoryHelper.h"
25 using namespace dd4hep;
30 std::string
name = x_det.nameStr();
32 DetElement airTube(name, x_det.id());
35 airTubeExtension->addType(
"beampipe",
"layer");
42 xml_dim_t
dim = x_det.dimensions();
44 double inner_r = dim.rmin();
45 double outer_r = dim.rmax();
46 double z_half = dim.zhalf();
50 Tube tubeSolid(inner_r, outer_r, z_half);
52 Volume tube_vol(name +
"_inner_cylinder_air", tubeSolid,
53 lcdd.material(
"Air"));
55 Volume mother = lcdd.pickMotherVolume(airTube);
57 pv = mother.placeVolume(tube_vol);
59 pv.addPhysVolID(
"system", x_det.id());
61 airTube.setPlacement(pv);