Skip to content
Snippets Groups Projects
Commit 1d6a841b authored by Scott Snyder's avatar Scott Snyder Committed by Vakhtang Tsulaia
Browse files

CoolLumiUtilities: Handle zero-sized blob in BunchLumisCondAlg.

Zero-sized blobs in the input to BunchLumisCondAlg can occur in cosmics
data --- don't treat that as an error.

See ATLASRECTS-5000.
parent c3d5b185
No related branches found
No related tags found
No related merge requests found
...@@ -235,8 +235,8 @@ BunchLumisCondAlg::execute (const EventContext& ctx) const ...@@ -235,8 +235,8 @@ BunchLumisCondAlg::execute (const EventContext& ctx) const
const coral::Blob& blob = attrList["BunchRawInstLum"].data<coral::Blob>(); const coral::Blob& blob = attrList["BunchRawInstLum"].data<coral::Blob>();
if (blob.size() == 0) { if (blob.size() == 0) {
ATH_MSG_ERROR( "BunchRawInstLumi blob found with zero size for channel " << channel << "!" ); ATH_MSG_DEBUG( "BunchRawInstLumi blob found with zero size for channel " << channel << "!" );
return StatusCode::FAILURE; continue;
} }
// Make sure the scale factor exists (needed below to unpack integer blob schemes) // Make sure the scale factor exists (needed below to unpack integer blob schemes)
......
...@@ -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