@@ -82,6 +82,7 @@ std::vector<Acts::TGeoLayerBuilder::Config> makeLayerBuilderConfigs(
8282 lConfig.volumeName = volume.subVolumeName .at (ncp);
8383 lConfig.sensorNames = volume.sensitiveNames .at (ncp);
8484 lConfig.localAxes = volume.sensitiveAxes .at (ncp);
85+ lConfig.envelope = {config.layerEnvelopeR , config.layerEnvelopeR };
8586
8687 auto rR = volume.rRange .at (ncp);
8788 auto rMin = rR.lower .value_or (0 .);
@@ -203,8 +204,8 @@ std::shared_ptr<const Acts::TrackingGeometry> buildTGeoDetector(
203204 bpvConfig.trackingVolumeHelper = cylinderVolumeHelper;
204205 bpvConfig.volumeName = " BeamPipe" ;
205206 bpvConfig.layerBuilder = beamPipeBuilder;
206- bpvConfig.layerEnvelopeR = {1 . * Acts::UnitConstants::mm ,
207- 1 . * Acts::UnitConstants::mm };
207+ bpvConfig.layerEnvelopeR = {config. beampipeEnvelopeR ,
208+ config. beampipeEnvelopeR };
208209 bpvConfig.buildToRadiusZero = true ;
209210 auto beamPipeVolumeBuilder =
210211 std::make_shared<const Acts::CylinderVolumeBuilder>(
@@ -266,8 +267,8 @@ std::shared_ptr<const Acts::TrackingGeometry> buildTGeoDetector(
266267 volumeConfig.trackingVolumeHelper = cylinderVolumeHelper;
267268 volumeConfig.volumeName = lbc.configurationName ;
268269 volumeConfig.buildToRadiusZero = volumeBuilders.empty ();
269- volumeConfig.layerEnvelopeR = {1 . * Acts::UnitConstants::mm ,
270- 5 . * Acts::UnitConstants::mm };
270+ volumeConfig.layerEnvelopeR = {config. layerEnvelopeR ,
271+ config. layerEnvelopeR };
271272 auto ringLayoutConfiguration =
272273 [&](const std::vector<Acts::TGeoLayerBuilder::LayerConfig>& lConfigs)
273274 -> void {
0 commit comments