Skip to content

Commit

Permalink
using getDetector() instead of lcdd()
Browse files Browse the repository at this point in the history
  • Loading branch information
kjvbrt committed Mar 13, 2024
1 parent bad574d commit 681b7eb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Detector/DetComponent/src/SimG4SaveFluxHits.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ StatusCode SimG4SaveFluxHits::initialize() {
<< "Make sure you have GeoSvc and SimSvc in the right order in the configuration." << endmsg;
return StatusCode::FAILURE;
}
auto lcdd = m_geoSvc->lcdd();
auto allReadouts = lcdd->readouts();
auto det = m_geoSvc->getDetector();
auto allReadouts = det->readouts();
for (auto& readoutName : m_readoutNames) {
if (allReadouts.find(readoutName) == allReadouts.end()) {
error() << "Readout " << readoutName << " not found! Please check tool configuration." << endmsg;
Expand Down Expand Up @@ -93,9 +93,9 @@ StatusCode SimG4SaveFluxHits::saveOutput(const G4Event& aEvent) {
collect = collections->GetHC(iter_coll);
if (std::find(m_readoutNames.begin(), m_readoutNames.end(), collect->GetName()) != m_readoutNames.end()) {
// Add CellID encoding string to collection metadata
// auto lcdd = m_geoSvc->lcdd();
// auto allReadouts = lcdd->readouts();
// auto idspec = lcdd->idSpecification(collect->GetName());
// auto det = m_geoSvc->getDetector();
// auto allReadouts = det->readouts();
// auto idspec = det->idSpecification(collect->GetName());
// auto field_str = idspec.fieldDescription();
// auto& coll_md = m_podioDataSvc->getProvider().getCollectionMetaData( m_cellID.get()->getID() );
// coll_md.setValue("CellIDEncodingString", field_str);
Expand Down

0 comments on commit 681b7eb

Please sign in to comment.