Skip to content

Commit

Permalink
Collect DetectorElements also for confined TrackingVolumes
Browse files Browse the repository at this point in the history
  • Loading branch information
jhrdinka authored and Robert Langenberg committed Oct 4, 2017
1 parent 6315fb9 commit 32fd609
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Core/src/Detector/TrackingVolume.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,9 @@ Acts::TrackingVolume::closeGeometry(
for (auto& volumesIter : m_confinedVolumes->arrayObjects()) {
auto mutableVolumesIter
= std::const_pointer_cast<TrackingVolume>(volumesIter);
// collect the detector elements for the contained volumes
auto detElements = mutableVolumesIter->detectorElements();
m_detectorElements.insert(detElements.begin(), detElements.end());
mutableVolumesIter->closeGeometry(volumeMap, vol);
}
}
Expand Down

0 comments on commit 32fd609

Please sign in to comment.