Skip to content
Snippets Groups Projects
Commit 94c1867d authored by Johannes Junggeburth's avatar Johannes Junggeburth :dog2:
Browse files

Prevent Identifier crash if Geometry is without Mdt

parent 7997a647
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,8 @@ Identifier ActsMuonAlignCondAlg::alignmentId(const MuonGMR4::MuonReadoutElement*
return m_idHelperSvc->chamberId(re->identify());
} else if (re->detectorType() == ActsTrk::DetectorType::Rpc) {
/// The BML eta 7 stations have their own alignment.
if (std::abs(re->stationEta()) == 7 && m_idHelperSvc->stationNameString(re->identify()) == "BML") {
if (!m_idHelperSvc->hasMDT() ||
(std::abs(re->stationEta()) == 7 && m_idHelperSvc->stationNameString(re->identify()) == "BML")) {
return m_idHelperSvc->rpcIdHelper().elementID(re->stationName(), re->stationEta(), re->stationPhi(), 1);
/// The rest shares the same alignmnet constants with the Mdts
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment