Skip to content

Commit

Permalink
Change lcdd() -> getDetector()
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Oct 24, 2023
1 parent 1079ed7 commit 536d2d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Detector/DetComponents/src/RedoSegmentation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ StatusCode RedoSegmentation::initialize() {
m_segmentationType=2;
else
m_segmentationType=0;
m_oldSegmentation = m_geoSvc->lcdd()->readout(m_oldReadoutName).segmentation().segmentation();
m_oldSegmentation = m_geoSvc->getDetector()->readout(m_oldReadoutName).segmentation().segmentation();
info() << "Old segmentation is of type:\t" << m_oldSegmentation->type() << endmsg;
if (m_oldSegmentation->type() == "FCCSWGridModuleThetaMerged")
m_oldSegmentationType=2;
Expand Down
4 changes: 2 additions & 2 deletions SimG4Components/src/InspectHitsCollectionsTool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +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->lcdd();
auto lcdd = m_geoSvc->getDetector();
auto allReadouts = lcdd->readouts();
for (auto& readoutName : m_readoutNames) {
if (allReadouts.find(readoutName) == allReadouts.end()) {
Expand Down Expand Up @@ -62,7 +62,7 @@ StatusCode InspectHitsCollectionsTool::saveOutput(const G4Event& aEvent) {
info() << "\tcollection #: " << iter_coll << "\tname: " << collect->GetName()
<< "\tsize: " << collect->GetSize() << endmsg;
size_t n_hit = collect->GetSize();
auto decoder = m_geoSvc->lcdd()->readout(collect->GetName()).idSpec().decoder();
auto decoder = m_geoSvc->getDetector()->readout(collect->GetName()).idSpec().decoder();
for (size_t iter_hit = 0; iter_hit < n_hit; iter_hit++) {
hitT = dynamic_cast<k4::Geant4PreDigiTrackHit*>(collect->GetHit(iter_hit));
if (hitT) {
Expand Down

0 comments on commit 536d2d2

Please sign in to comment.