7#include "GaudiKernel/EventContext.h"
20 const std::string& name,
21 const IInterface* parent)
24 declareInterface<IEMClusterTool>(
this);
44 return StatusCode::SUCCESS;
63 std::make_unique<CaloClusterCellLinkContainer>()));
81 outputClusterContainer,
82 outputClusterContainerCellLink);
84 return StatusCode::SUCCESS;
89 const EventContext& ctx,
96 if (!eg->caloCluster()) {
97 ATH_MSG_DEBUG(
"egamma object does not have a cluster associated");
104 (*cluster)=*(eg->caloCluster());
110 ClusterLink_t clusterLink(cluster, *outputClusterContainer, ctx);
111 const std::vector<ClusterLink_t> clusterLinks{ clusterLink };
112 eg->setCaloClusterLinks(clusterLinks);
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition of CaloDetDescrManager.
Handle class for recording to StoreGate.
xAOD::ElectronContainer * electronContainer
xAOD::PhotonContainer * photonContainer
static StatusCode AddContainerWriteHandle(SG::WriteHandle< xAOD::CaloClusterContainer > &clusColl)
Creates a new xAOD::CaloClusterContainer in the given WriteHandle + CaloClusterAuxContainer and recor...
static StatusCode finalizeClusters(SG::WriteHandle< CaloClusterCellLinkContainer > &h, xAOD::CaloClusterContainer *pClusterColl)
Finalize clusters (move CaloClusterCellLink to a separate container).
value_type push_back(value_type pElem)
Add an element to the end of the collection.
ElementLink implementation for ROOT usage.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
pointer_type ptr()
Dereference the pointer.
ElementLink< xAOD::CaloClusterContainer > ClusterLink_t
PhotonContainer_v1 PhotonContainer
Definition of the current "photon container version".
ElectronContainer_v1 ElectronContainer
Definition of the current "electron container version".
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
Egamma_v1 Egamma
Definition of the current "egamma version".
CaloClusterContainer_v1 CaloClusterContainer
Define the latest version of the calorimeter cluster container.