Skip to content

Commit

Permalink
fixing CI
Browse files Browse the repository at this point in the history
  • Loading branch information
asalzburger committed Sep 19, 2023
1 parent 12c21f8 commit 18d045b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Core/src/Detector/DetectorVolumeBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

#include "Acts/Detector/DetectorVolume.hpp"
#include "Acts/Detector/interface/IExternalStructureBuilder.hpp"
#include "Acts/Detector/interface/IGeometryIdGenerator.hpp"
#include "Acts/Detector/interface/IInternalStructureBuilder.hpp"
#include "Acts/Geometry/VolumeBounds.hpp"
#include "Acts/Navigation/DetectorVolumeFinders.hpp"
Expand Down Expand Up @@ -81,6 +82,14 @@ Acts::Experimental::DetectorVolumeBuilder::construct(
for (auto [ip, p] : enumerate(dVolume->portalPtrs())) {
portalContainer[ip] = p;
}

// Assign the geometry ids if configured to do so
if (m_cfg.geoIdGenerator != nullptr) {
ACTS_DEBUG("Assigning geometry ids to the detector volume");
auto cache = m_cfg.geoIdGenerator->generateCache();
m_cfg.geoIdGenerator->assignGeometryId(cache, *dVolume);
}

// Add to the root volume collection if configured
rootVolumes.push_back(dVolume);
// The newly built volume is the single produced volume
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,9 @@ BOOST_AUTO_TEST_CASE(DetectorVolumeBuilder_VolumeWithSurface) {

BOOST_CHECK(volumes.size() == 1u);
BOOST_CHECK(volumes.front()->surfaces().size() == 1u);

BOOST_CHECK(volumes.front()->surfaces().front()->geometryId().passive() ==
1u);

BOOST_CHECK(volumes.front()->volumes().empty());

BOOST_CHECK(portals.size() == 4u);
Expand Down

0 comments on commit 18d045b

Please sign in to comment.