Skip to content
Snippets Groups Projects
Commit 0b2add87 authored by scott snyder's avatar scott snyder
Browse files

LumiBlockComps: Fix test for existence of a given lumi channel.

Fix crash if data for a given lumi channel are missing.

See ATLASRECTS-5000.
parent a2075ee5
No related branches found
No related tags found
1 merge request!24222CoolLumiUtilities+LumiBlockComps: Fix crashes on cosmics..
This commit is part of merge request !24222. Comments created here will be created in the context of that merge request.
...@@ -110,9 +110,9 @@ LuminosityCondAlg::updateAvgLumi (const CondAttrListCollection& lumiData, ...@@ -110,9 +110,9 @@ LuminosityCondAlg::updateAvgLumi (const CondAttrListCollection& lumiData,
bunchInstLumiBlob = nullptr; bunchInstLumiBlob = nullptr;
const coral::AttributeList& attrList = lumiData.attributeList (m_lumiChannel); const coral::AttributeList& attrList = lumiData.attributeList (m_lumiChannel);
if (attrList["Valid"].isNull()) { if (attrList.size() == 0 || attrList["Valid"].isNull()) {
ATH_MSG_ERROR ("Can't find luminosity information for channel " << m_lumiChannel); ATH_MSG_DEBUG ("Can't find luminosity information for channel " << m_lumiChannel);
return StatusCode::FAILURE; return StatusCode::SUCCESS;
} }
if (msgLvl (MSG::DEBUG)) { if (msgLvl (MSG::DEBUG)) {
......
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