9 #include <boost/test/unit_test.hpp>
21 using namespace Acts::UnitLiterals;
39 auto surfaceArrayCreator = std::make_shared<const SurfaceArrayCreator>(
44 auto layerCreator = std::make_shared<const LayerCreator>(
48 auto layerArrayCreator = std::make_shared<const LayerArrayCreator>(
53 auto tVolumeArrayCreator = std::make_shared<const TrackingVolumeArrayCreator>(
58 cvhConfig.trackingVolumeArrayCreator = tVolumeArrayCreator;
59 auto cylinderVolumeHelper = std::make_shared<const CylinderVolumeHelper>(
65 bplConfig.centralLayerRadii = std::vector<double>(1, 3
_mm);
66 bplConfig.centralLayerHalflengthZ = std::vector<double>(1, 40
_mm);
67 bplConfig.centralLayerThickness = std::vector<double>(1, 0.8_mm);
68 auto beamPipeBuilder = std::make_shared<const PassiveLayerBuilder>(
73 bpvConfig.volumeName =
"BeamPipe";
74 bpvConfig.layerBuilder = beamPipeBuilder;
75 bpvConfig.layerEnvelopeR = {1
_mm, 1
_mm};
76 bpvConfig.buildToRadiusZero =
true;
77 bpvConfig.volumeSignature = 0;
78 auto beamPipeVolumeBuilder = std::make_shared<const CylinderVolumeBuilder>(
83 layerBuilderConfig.centralLayerRadii = {10
_mm, 20
_mm, 30_mm};
84 layerBuilderConfig.centralLayerHalflengthZ = {40
_mm, 40
_mm, 40_mm};
85 layerBuilderConfig.centralLayerThickness = {1
_mm, 1
_mm, 1_mm};
86 auto layerBuilder = std::make_shared<const PassiveLayerBuilder>(
92 cvbConfig.volumeName =
"CentralBarrel";
93 cvbConfig.layerBuilder = layerBuilder;
94 cvbConfig.layerEnvelopeR = {1
_mm, 1
_mm};
95 cvbConfig.buildToRadiusZero =
false;
96 cvbConfig.volumeSignature = 0;
97 auto centralVolumeBuilder = std::make_shared<const CylinderVolumeBuilder>(
103 [=](
const auto&
context,
const auto& inner,
const auto&) {
104 return beamPipeVolumeBuilder->trackingVolume(
context, inner);
106 tgbConfig.trackingVolumeBuilders.push_back(
107 [=](
const auto&
context,
const auto& inner,
const auto&) {
108 return centralVolumeBuilder->trackingVolume(
context, inner);
110 tgbConfig.trackingVolumeHelper = cylinderVolumeHelper;