24 #include "DD4hep/DetFactoryHelper.h"
26 using namespace dd4hep;
31 std::string
name = x_det.nameStr();
33 DetElement airTube(name, x_det.id());
36 airTubeExtension->addType(
"beampipe",
"layer");
43 xml_dim_t
dim = x_det.dimensions();
45 double inner_r = dim.rmin();
46 double outer_r = dim.rmax();
47 double z_half = dim.zhalf();
51 Tube tubeSolid(inner_r, outer_r, z_half);
53 Volume tube_vol(name +
"_inner_cylinder_air", tubeSolid,
54 lcdd.material(
"Air"));
56 Volume mother = lcdd.pickMotherVolume(airTube);
58 pv = mother.placeVolume(tube_vol);
60 pv.addPhysVolID(
"system", x_det.id());
62 airTube.setPlacement(pv);