23 return StatusCode::SUCCESS;
30 long unsigned int nLVL1IDErrors{
m_bsErrTool->getErrorSet(SCT_ByteStreamErrors::LVL1IDError, ctx).size()};
31 long unsigned int nROBFragmentErrors{
m_bsErrTool->getErrorSet(SCT_ByteStreamErrors::ROBFragmentError, ctx).size()};
33 if ((nLVL1IDErrors > 500) or (nROBFragmentErrors > 1000)) {
34 bool setOK_xAOD{
false};
40 ATH_MSG_ERROR(
"Failed to retrieve EventInfo containers or to update error state");
41 return StatusCode::RECOVERABLE;
45 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
An algorithm that can be simultaneously executed in multiple threads.
virtual StatusCode execute(const EventContext &ctx) const override
Execute.
SCTEventFlagWriter(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
SG::ReadHandleKey< xAOD::EventInfo > m_xAODEvtInfoKey
Read handle for the xAOD event info.
ToolHandle< ISCT_ByteStreamErrorsTool > m_bsErrTool
Tool that keeps track of modules that give rise to errors in the bytestream.
virtual StatusCode initialize() override
Initialize.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
@ Error
The sub-detector issued an error.