24 return StatusCode::SUCCESS;
30 auto detector_element_status =
m_condSummaryTool->getDetectorElementStatus(ctx,
nullptr);
31 if (writeHandle.
record( std::move(detector_element_status) ).isFailure()) {
33 return StatusCode::FAILURE;
35 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Handle class for recording to StoreGate.
An algorithm that can be simultaneously executed in multiple threads.
SG::WriteHandleKey< InDet::SiDetectorElementStatus > m_writeKey
virtual StatusCode initialize() override
SiDetectorElementStatusAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode execute(const EventContext &ctx) const override
ToolHandle< IDetectorElementStatusTool > m_condSummaryTool
virtual const std::string & key() const override final
Return the StoreGate ID for the referenced object.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.