9 #include <boost/test/unit_test.hpp>
27 BOOST_AUTO_TEST_SUITE(ActSvg)
47 std::make_unique<Acts::CylinderVolumeBounds>(rInner, rOuter,
zHalfL);
52 portalGenerator, tContext,
"CylinderVolume", nominal,
58 surfaceOptions.
style = portalStyle;
61 std::vector<Acts::Svg::ProtoPortal> protoPortals;
63 std::for_each(cylinderVolume->portals().begin(),
64 cylinderVolume->portals().end(), [&](
const auto&
p) {
66 tContext, *
p, portalOptions));
70 std::vector<actsvg::svg::object> zrPortals;
72 std::for_each(protoPortals.begin(), protoPortals.end(), [&](
const auto&
p) {
79 std::vector<actsvg::svg::object> xyPortals;
81 std::for_each(protoPortals.begin(), protoPortals.end(), [&](
const auto&
p) {
108 auto cylinderBoundsI =
109 std::make_unique<Acts::CylinderVolumeBounds>(rInner, rMiddle,
zHalfL);
111 auto cylinderBoundsO =
112 std::make_unique<Acts::CylinderVolumeBounds>(rMiddle, rOuter,
zHalfL);
122 std::vector<std::shared_ptr<Acts::Experimental::DetectorVolume>> rVolumes = {
123 cylinderVolumeI, cylinderVolumeO};
126 tContext, rVolumes, {});
128 std::set<const Acts::Experimental::Portal*> portals;
129 for (
auto&
v : rVolumes) {
130 for (
auto&
p :
v->portals()) {
134 std::vector<Acts::Svg::ProtoPortal> protoPortals;
141 surfaceOptions.
style = portalStyle;
144 for (
const auto& portal : portals) {
145 protoPortals.push_back(
149 std::vector<actsvg::svg::object> zrPortals;
151 std::for_each(protoPortals.begin(), protoPortals.end(), [&](
const auto&
p) {
158 BOOST_AUTO_TEST_SUITE_END()