diff --git a/InnerDetector/InDetConditions/PixelConditionsServices/src/PixelByteStreamErrorsSvc.cxx b/InnerDetector/InDetConditions/PixelConditionsServices/src/PixelByteStreamErrorsSvc.cxx index 5b32be3258b083c3f52bce86e29b6f6a08d4cb65..ece504a6762a1cb2e99dfb66a5dffe48fe959dbd 100644 --- a/InnerDetector/InDetConditions/PixelConditionsServices/src/PixelByteStreamErrorsSvc.cxx +++ b/InnerDetector/InDetConditions/PixelConditionsServices/src/PixelByteStreamErrorsSvc.cxx @@ -345,13 +345,6 @@ StatusCode PixelByteStreamErrorsSvc::recordData() { } StatusCode sc = StatusCode::SUCCESS; - if (cont->size()==m_max_hashes) { - m_BSErrContWrite = SG::makeHandle(m_BSErrContWriteKey); - sc = m_BSErrContWrite.record(std::move(cont)); - } - - -/* if (cont->size()==m_pixel_id->wafer_hash_max()) { m_checkError = -1; } @@ -360,7 +353,6 @@ StatusCode PixelByteStreamErrorsSvc::recordData() { m_BSErrContWrite = SG::makeHandle(m_BSErrContWriteKey); sc = m_BSErrContWrite.record(std::move(cont)); } -*/ if (sc.isFailure() ){ ATH_MSG_ERROR("Failed to record/overwrite BSErrors to SG"); diff --git a/InnerDetector/InDetEventCnv/PixelRawDataByteStreamCnv/src/PixelRawDataProviderTool.cxx b/InnerDetector/InDetEventCnv/PixelRawDataByteStreamCnv/src/PixelRawDataProviderTool.cxx index 3f9692fe921adba2d6d82db87a93bc20554fecbb..fdf4c005515879ccd56de5b814e382422c18bd50 100644 --- a/InnerDetector/InDetEventCnv/PixelRawDataByteStreamCnv/src/PixelRawDataProviderTool.cxx +++ b/InnerDetector/InDetEventCnv/PixelRawDataByteStreamCnv/src/PixelRawDataProviderTool.cxx @@ -130,6 +130,8 @@ StatusCode PixelRawDataProviderTool::convert(std::vector<const ROBFragment*>& ve } } } - CHECK(m_bsErrSvc->recordData()); + if (isNewEvent) { + CHECK(m_bsErrSvc->recordData()); + } return StatusCode::SUCCESS; }