Skip to content

Commit

Permalink
Merge branch 'main' into physmon-ttbar-tracksummary
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq[bot] authored Oct 5, 2023
2 parents 365efff + 6474bd2 commit 8c99917
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Core/src/Geometry/CylinderVolumeBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,15 @@ Acts::CylinderVolumeBuilder::trackingVolume(
wConfig.cVolumeConfig = analyzeContent(gctx, centralLayers, centralVolumes);
wConfig.pVolumeConfig = analyzeContent(gctx, positiveLayers, {}); // TODO

bool hasLayers = wConfig.nVolumeConfig.present ||
wConfig.cVolumeConfig.present ||
wConfig.pVolumeConfig.present;

if (!hasLayers) {
ACTS_INFO("No layers present, returning nullptr");
return nullptr;
}

std::string layerConfiguration = "|";
if (wConfig.nVolumeConfig) {
// negative layers are present
Expand Down
9 changes: 8 additions & 1 deletion Core/src/Geometry/TrackingGeometryBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,14 @@ Acts::TrackingGeometryBuilder::trackingGeometry(
for (auto& volumeBuilder : m_cfg.trackingVolumeBuilders) {
// assign a new highest volume (and potentially wrap around the given
// highest volume so far)
highestVolume = volumeBuilder(gctx, highestVolume, nullptr);
auto volume = volumeBuilder(gctx, highestVolume, nullptr);
if (!volume) {
ACTS_INFO(
"Received nullptr volume from builder, keeping previous highest "
"volume");
} else {
highestVolume = std::move(volume);
}
}

// create the TrackingGeometry & decorate it with the material
Expand Down

0 comments on commit 8c99917

Please sign in to comment.