22 return StatusCode::SUCCESS;
30 if(inputClusterHandle.
isValid()) {
34 return StatusCode::FAILURE;
43 std::unique_ptr<xAOD::CaloClusterContainer> copiedClusters = std::make_unique<xAOD::CaloClusterContainer>();
44 std::unique_ptr<xAOD::CaloClusterAuxContainer> copiedClustersAux = std::make_unique<xAOD::CaloClusterAuxContainer>();
46 copiedClusters->setStore (copiedClustersAux.get());
49 std::unique_ptr<xAOD::CaloCluster> copiedCl = std::make_unique<xAOD::CaloCluster>(*cl);
50 outputClusterColl->push_back(std::move(copiedCl));
53 return StatusCode::SUCCESS;
58 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
An algorithm that can be simultaneously executed in multiple threads.
static StatusCode AddContainerWriteHandle(SG::WriteHandle< xAOD::CaloClusterContainer > &clusColl)
Creates a new xAOD::CaloClusterContainer in the given WriteHandle + CaloClusterAuxContainer and recor...
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_inputKey
Name of input CaloClusterContainer, e.g HIClusters.
virtual StatusCode finalize()
virtual StatusCode execute(const EventContext &ctx) const
SG::WriteHandleKey< xAOD::CaloClusterContainer > m_outputKey
Name of output CaloClusterContainer, e.g. DFHIClusters.
virtual StatusCode initialize()
HIClusterCopier(const std::string &name, ISvcLocator *pSvcLocator)
virtual bool isValid() override final
Can the handle be successfully dereferenced?
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.