9 #include <boost/test/unit_test.hpp>
30 using namespace Acts::UnitLiterals;
48 auto surfaceArrayCreator = std::make_shared<const SurfaceArrayCreator>(
53 auto layerCreator = std::make_shared<const LayerCreator>(
57 auto layerArrayCreator = std::make_shared<const LayerArrayCreator>(
62 auto tVolumeArrayCreator = std::make_shared<const TrackingVolumeArrayCreator>(
67 cvhConfig.trackingVolumeArrayCreator = tVolumeArrayCreator;
68 auto cylinderVolumeHelper = std::make_shared<const CylinderVolumeHelper>(
74 bplConfig.centralLayerRadii = std::vector<double>(1, 3_mm);
75 bplConfig.centralLayerHalflengthZ = std::vector<double>(1, 40_mm);
76 bplConfig.centralLayerThickness = std::vector<double>(1, 0.8_mm);
77 auto beamPipeBuilder = std::make_shared<const PassiveLayerBuilder>(
82 bpvConfig.volumeName =
"BeamPipe";
83 bpvConfig.layerBuilder = beamPipeBuilder;
84 bpvConfig.layerEnvelopeR = {1_mm, 1_mm};
85 bpvConfig.buildToRadiusZero =
true;
86 bpvConfig.volumeSignature = 0;
87 auto beamPipeVolumeBuilder = std::make_shared<const CylinderVolumeBuilder>(
92 layerBuilderConfig.centralLayerRadii = {10_mm, 20_mm, 30_mm};
93 layerBuilderConfig.centralLayerHalflengthZ = {40_mm, 40_mm, 40_mm};
94 layerBuilderConfig.centralLayerThickness = {1_mm, 1_mm, 1_mm};
95 auto layerBuilder = std::make_shared<const PassiveLayerBuilder>(
101 cvbConfig.volumeName =
"CentralBarrel";
102 cvbConfig.layerBuilder = layerBuilder;
103 cvbConfig.layerEnvelopeR = {1_mm, 1_mm};
104 cvbConfig.buildToRadiusZero =
false;
105 cvbConfig.volumeSignature = 0;
106 auto centralVolumeBuilder = std::make_shared<const CylinderVolumeBuilder>(
112 [=](
const auto& context,
const auto& inner,
const auto&) {
113 return beamPipeVolumeBuilder->trackingVolume(context, inner);
115 tgbConfig.trackingVolumeBuilders.push_back(
116 [=](
const auto& context,
const auto& inner,
const auto&) {
117 return centralVolumeBuilder->trackingVolume(context, inner);
119 tgbConfig.trackingVolumeHelper = cylinderVolumeHelper;