 |
ATLAS Offline Software
|
Go to the documentation of this file.
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;
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()
An algorithm that can be simultaneously executed in multiple threads.
SG::WriteHandleKey< xAOD::CaloClusterContainer > m_outputKey
Name of output CaloClusterContainer, e.g. DFHIClusters.
Description of a calorimeter cluster.
virtual StatusCode initialize()
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
value_type push_back(value_type pElem)
Add an element to the end of the collection.
virtual StatusCode execute(const EventContext &ctx) const
HIClusterCopier(const std::string &name, ISvcLocator *pSvcLocator)
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]