Skip to content

Commit

Permalink
Simplify getting the readouts
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Oct 24, 2023
1 parent 536d2d2 commit 10c2881
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions SimG4Components/src/InspectHitsCollectionsTool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ StatusCode InspectHitsCollectionsTool::initialize() {
<< "Make sure you have GeoSvc and SimSvc in the right order in the configuration." << endmsg;
return StatusCode::FAILURE;
}
auto lcdd = m_geoSvc->getDetector();
auto allReadouts = lcdd->readouts();
auto allReadouts = m_geoSvc->getDetector()->readouts();
for (auto& readoutName : m_readoutNames) {
if (allReadouts.find(readoutName) == allReadouts.end()) {
error() << "Readout " << readoutName << " not found! Please check tool configuration." << endmsg;
Expand Down

0 comments on commit 10c2881

Please sign in to comment.