Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
BrieucF committed Dec 19, 2023
1 parent 5d4fd63 commit 7965793
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions DCHdigi/src/DCHsimpleDigitizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ StatusCode DCHsimpleDigitizer::initialize() {
}

// check if readout exists
if (m_geoSvc->lcdd()->readouts().find(m_readoutName) == m_geoSvc->lcdd()->readouts().end()) {
if (m_geoSvc->getDetector()->readouts().find(m_readoutName) == m_geoSvc->getDetector()->readouts().end()) {
error() << "Readout <<" << m_readoutName << ">> does not exist." << endmsg;
return StatusCode::FAILURE;
}
// set the cellID decoder
m_decoder = m_geoSvc->lcdd()->readout(m_readoutName).idSpec().decoder();
m_decoder = m_geoSvc->getDetector()->readout(m_readoutName).idSpec().decoder();
// retrieve the volume manager
m_volman = m_geoSvc->lcdd()->volumeManager();
m_volman = m_geoSvc->getDetector()->volumeManager();

return StatusCode::SUCCESS;
}
Expand All @@ -60,7 +60,7 @@ StatusCode DCHsimpleDigitizer::execute() {
auto cellDetElement = m_volman.lookupDetElement(cellID);
// retrieve the wire (in DD4hep 1.23 there is no easy way to access the volume daughters we have to pass by detElements, in later versions volumes can be used)
const std::string& wireDetElementName =
Form("superLayer_%d_layer_%d_phi_%d_wire", m_decoder->get(cellID, "superLayer"),
Form("superLayer_%ld_layer_%ld_phi_%ld_wire", m_decoder->get(cellID, "superLayer"),
m_decoder->get(cellID, "layer"), m_decoder->get(cellID, "phi"));
dd4hep::DetElement wireDetElement = cellDetElement.child(wireDetElementName);
// get the transformation matrix used to place the wire
Expand Down
8 changes: 4 additions & 4 deletions DCHdigi/src/DCHsimpleDigitizerExtendedEdm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ StatusCode DCHsimpleDigitizerExtendedEdm::initialize() {
}

// check if readout exists
if (m_geoSvc->lcdd()->readouts().find(m_readoutName) == m_geoSvc->lcdd()->readouts().end()) {
if (m_geoSvc->getDetector()->readouts().find(m_readoutName) == m_geoSvc->getDetector()->readouts().end()) {
error() << "Readout <<" << m_readoutName << ">> does not exist." << endmsg;
return StatusCode::FAILURE;
}
// set the cellID decoder
m_decoder = m_geoSvc->lcdd()->readout(m_readoutName).idSpec().decoder();
m_decoder = m_geoSvc->getDetector()->readout(m_readoutName).idSpec().decoder();
// retrieve the volume manager
m_volman = m_geoSvc->lcdd()->volumeManager();
m_volman = m_geoSvc->getDetector()->volumeManager();

return StatusCode::SUCCESS;
}
Expand All @@ -60,7 +60,7 @@ StatusCode DCHsimpleDigitizerExtendedEdm::execute() {
auto cellDetElement = m_volman.lookupDetElement(cellID);
// retrieve the wire (in DD4hep 1.23 there is no easy way to access the volume daughters we have to pass by detElements, in later versions volumes can be used)
const std::string& wireDetElementName =
Form("superLayer_%d_layer_%d_phi_%d_wire", m_decoder->get(cellID, "superLayer"),
Form("superLayer_%ld_layer_%ld_phi_%ld_wire", m_decoder->get(cellID, "superLayer"),
m_decoder->get(cellID, "layer"), m_decoder->get(cellID, "phi"));
dd4hep::DetElement wireDetElement = cellDetElement.child(wireDetElementName);
// get the transformation matrix used to place the wire
Expand Down

0 comments on commit 7965793

Please sign in to comment.