diff --git a/.gitignore b/.gitignore index 0540524..d10a5ec 100644 --- a/.gitignore +++ b/.gitignore @@ -22,6 +22,7 @@ QMTest/ InstallArea/ patches/ test_results/ +install/ *-slc[56]-*/ i686-winxp-vc9-dbg/ diff --git a/DRreco/src/DRcalib2D.cpp b/DRreco/src/DRcalib2D.cpp index d3befff..b3690e1 100644 --- a/DRreco/src/DRcalib2D.cpp +++ b/DRreco/src/DRcalib2D.cpp @@ -26,7 +26,7 @@ StatusCode DRcalib2D::initialize() { return StatusCode::FAILURE; } - pSeg = dynamic_cast(m_geoSvc->lcdd()->readout(m_readoutName).segmentation().segmentation()); + pSeg = dynamic_cast(m_geoSvc->getDetector()->readout(m_readoutName).segmentation().segmentation()); readCSV(m_calibPath); diff --git a/DRreco/src/DRcalib3D.cpp b/DRreco/src/DRcalib3D.cpp index 73aa588..c98808f 100644 --- a/DRreco/src/DRcalib3D.cpp +++ b/DRreco/src/DRcalib3D.cpp @@ -30,7 +30,7 @@ StatusCode DRcalib3D::initialize() { return StatusCode::FAILURE; } - pSeg = dynamic_cast(m_geoSvc->lcdd()->readout(m_readoutName).segmentation().segmentation()); + pSeg = dynamic_cast(m_geoSvc->getDetector()->readout(m_readoutName).segmentation().segmentation()); auto veloFile = std::make_unique(m_veloFile.value().c_str(),"READ"); m_veloC.reset( static_cast(veloFile->Get(m_cherenProf.value().c_str())) ); diff --git a/DRsim/DRsimG4Components/src/SimG4SaveDRcaloHits.cpp b/DRsim/DRsimG4Components/src/SimG4SaveDRcaloHits.cpp index 78e8941..7995f04 100644 --- a/DRsim/DRsimG4Components/src/SimG4SaveDRcaloHits.cpp +++ b/DRsim/DRsimG4Components/src/SimG4SaveDRcaloHits.cpp @@ -25,8 +25,8 @@ StatusCode SimG4SaveDRcaloHits::initialize() { 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; diff --git a/DRsim/DRsimG4Full/src/components/SimG4DRcaloActions.cpp b/DRsim/DRsimG4Full/src/components/SimG4DRcaloActions.cpp index 780fa85..6b53e3e 100644 --- a/DRsim/DRsimG4Full/src/components/SimG4DRcaloActions.cpp +++ b/DRsim/DRsimG4Full/src/components/SimG4DRcaloActions.cpp @@ -19,7 +19,7 @@ StatusCode SimG4DRcaloActions::initialize() { return StatusCode::FAILURE; } - pSeg = dynamic_cast(m_geoSvc->lcdd()->readout(m_readoutName).segmentation().segmentation()); + pSeg = dynamic_cast(m_geoSvc->getDetector()->readout(m_readoutName).segmentation().segmentation()); return StatusCode::SUCCESS; } diff --git a/Detector/DRsensitive/src/SDWrapper.cpp b/Detector/DRsensitive/src/SDWrapper.cpp index fdc020f..2cf61cc 100644 --- a/Detector/DRsensitive/src/SDWrapper.cpp +++ b/Detector/DRsensitive/src/SDWrapper.cpp @@ -5,9 +5,9 @@ namespace dd4hep { namespace sim { - static G4VSensitiveDetector* create_DRcaloSiPM_sd(const std::string& aDetectorName, dd4hep::Detector& aLcdd) { - std::string readoutName = aLcdd.sensitiveDetector(aDetectorName).readout().name(); - return new drc::DRcaloSiPMSD(aDetectorName,readoutName,aLcdd.sensitiveDetector(aDetectorName).readout().segmentation()); + static G4VSensitiveDetector* create_DRcaloSiPM_sd(const std::string& aDetectorName, dd4hep::Detector& aDet) { + std::string readoutName = aDet.sensitiveDetector(aDetectorName).readout().name(); + return new drc::DRcaloSiPMSD(aDetectorName,readoutName,aDet.sensitiveDetector(aDetectorName).readout().segmentation()); } } }