Skip to content
Snippets Groups Projects
Commit cbdd80be authored by Yohei Yamaguchi's avatar Yohei Yamaguchi
Browse files

protect for events not containing NSW

parent 354ad7ac
No related branches found
No related tags found
No related merge requests found
......@@ -61,15 +61,18 @@ StatusCode TrigL2MuonSA::MmDataPreparator::prepareData(const TrigRoiDescriptor*
std::vector<IdentifierHash> mmHashList_cache;
// Get MM container
const Muon::MMPrepDataContainer* mmPrds;
if(m_mmPrepContainerKey.empty()) {
ATH_MSG_INFO("no mmPrepContainerKey");
return StatusCode::SUCCESS;
}
auto mmPrepContainerHandle = SG::makeHandle(m_mmPrepContainerKey);
mmPrds = mmPrepContainerHandle.cptr();
if (!mmPrepContainerHandle.isValid()) {
ATH_MSG_ERROR("Cannot retrieve MM PRD Container key: " << m_mmPrepContainerKey.key());
return StatusCode::FAILURE;
} else {
ATH_MSG_DEBUG("MM PRD Container retrieved with key: " << m_mmPrepContainerKey.key());
}
const Muon::MMPrepDataContainer* mmPrds = mmPrepContainerHandle.cptr();
if (m_use_RoIBasedDataAccess) {
// ATH_MSG_ERROR("RoI based data access is not available yet");
......
......@@ -61,15 +61,18 @@ StatusCode TrigL2MuonSA::StgcDataPreparator::prepareData(const TrigRoiDescriptor
std::vector<IdentifierHash> stgcHashList_cache;
// Get sTGC container
const Muon::sTgcPrepDataContainer* stgcPrds;
if(m_stgcPrepContainerKey.empty()) {
ATH_MSG_INFO("no stgcPrepContainerKey");
return StatusCode::SUCCESS;
}
auto stgcPrepContainerHandle = SG::makeHandle(m_stgcPrepContainerKey);
stgcPrds = stgcPrepContainerHandle.cptr();
if (!stgcPrepContainerHandle.isValid()) {
ATH_MSG_ERROR("Cannot retrieve sTgc PRD Container key: " << m_stgcPrepContainerKey.key());
return StatusCode::FAILURE;
} else {
ATH_MSG_DEBUG("sTgc PRD Container retrieved with key: " << m_stgcPrepContainerKey.key());
}
const Muon::sTgcPrepDataContainer* stgcPrds = stgcPrepContainerHandle.cptr();
if (m_use_RoIBasedDataAccess) {
// ATH_MSG_ERROR("RoI based data access is not available yet");
......
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