19 CHECK( AthReentrantAlgorithm::initialize() );
24 return StatusCode::FAILURE;
31 return StatusCode::SUCCESS;
36 return StatusCode::SUCCESS;
42 auto clustr=std::make_unique<xAOD::AFPSiHitsClusterContainer>();
43 auto clustrAux=std::make_unique<xAOD::AFPSiHitsClusterAuxContainer>();
44 clustr->setStore(clustrAux.get());
47 ATH_MSG_WARNING(
"Pixel clusters creation failed. Aborting cluster reconstruction.");
50 auto clustr2=std::make_unique<xAOD::AFPSiHitsClusterContainer>();
51 auto clustr2Aux=std::make_unique<xAOD::AFPSiHitsClusterAuxContainer>();
52 clustr2->setStore(clustr2Aux.get());
54 ATH_CHECK( cluster2Container.
record(std::move(clustr2), std::move(clustr2Aux)) );
56 return StatusCode::SUCCESS;
60 ATH_CHECK( clusterContainer.
record(std::move(clustr), std::move(clustrAux)) );
62 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
#define CHECK(...)
Evaluate an expression and check for errors.
AFPSiCluster(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode execute(const EventContext &ctx) const override
virtual ~AFPSiCluster() override
virtual StatusCode finalize() override
SG::WriteHandleKey< xAOD::AFPSiHitsClusterContainer > m_clusterContainerKey
ToolHandle< IAFPSiClusterTool > m_clusterRecoTool
virtual StatusCode initialize() override
An algorithm that can be simultaneously executed in multiple threads.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.