diff --git a/MuonSpectrometer/MuonValidation/MuonDQA/MuonRawDataMonitoring/RpcRawDataMonitoring/src/RPCStandaloneTracksMon.cxx b/MuonSpectrometer/MuonValidation/MuonDQA/MuonRawDataMonitoring/RpcRawDataMonitoring/src/RPCStandaloneTracksMon.cxx index 4f6f5b4e93d26890fb0cd6eec72de671c22f7166..1c9da2c033ffe030123e254c12c8e665cec67774 100755 --- a/MuonSpectrometer/MuonValidation/MuonDQA/MuonRawDataMonitoring/RpcRawDataMonitoring/src/RPCStandaloneTracksMon.cxx +++ b/MuonSpectrometer/MuonValidation/MuonDQA/MuonRawDataMonitoring/RpcRawDataMonitoring/src/RPCStandaloneTracksMon.cxx @@ -863,6 +863,13 @@ StatusCode RPCStandaloneTracksMon::fillHistograms() std::list<muctpi_rdo> muctpi_rdo_roi_list; muctpi_rdo_roi_list.clear(); SG::ReadHandle<MuCTPI_RDO> muctpiRDO(m_muCTPI_RDO_key); + if (!muctpiRDO.isValid()) { + // FIXME: q222 was building a configuration in which this monitoring + // tool is enabled without the MuCTPI_RDO being available. + // Remove this once that is fixed. + ATH_MSG_WARNING ( "Cannot retrieve the MuCTPI" ); + return StatusCode::SUCCESS; + } // Create some dummy LVL1 muon thresholds: std::vector< TrigConf::TriggerThreshold* > dummy_thresholds;