15 return StatusCode::SUCCESS;
19 if (!calibContainer.
isValid()) {
21 return StatusCode::FAILURE;
23 std::vector<const MuonGMR4::MdtReadoutElement*> mdtMls =
m_detMgr->getAllMdtReadoutElements();
24 std::set<MuonCalib::MdtFullCalibData::RtRelationPtr> testedRt{};
29 return StatusCode::FAILURE;
31 if (
false && testedRt.insert(calibData->
rtRelation).second) {
36 const std::optional<double> t = calibData->
rtRelation->tr()->driftTime(
r);
41 const double backR = calibData->
rtRelation->rt()->radius(*t);
43 ATH_MSG_FATAL(
"The drift radius "<<
r<<
" is mapped back to "<<backR<<
". Difference: "<<std::abs(
r -backR)
45 return StatusCode::FAILURE;
51 return StatusCode::SUCCESS;
const boost::regex re(r_e)
#define ATH_CHECK
Evaluate an expression and check for errors.
const ServiceHandle< StoreGateSvc > & detStore() const
const MuonGMR4::MuonDetectorManager * m_detMgr
Gaudi::Property< double > m_mapTolerance
Compatibility window.
SG::ReadCondHandleKey< MuonCalib::MdtCalibDataContainer > m_readKey
Gaudi::Property< double > m_stepR
Step width to scan the compatibility of the R-t relation.
virtual StatusCode execute(const EventContext &ctx) const override final
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
virtual StatusCode initialize() override final
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
class which holds the full set of calibration constants for a given tube