5#ifndef DERIVATIONFRAMEWORK_ClusterEnergyPerLayerDecorator_H
6#define DERIVATIONFRAMEWORK_ClusterEnergyPerLayerDecorator_H
15#include "GaudiKernel/EventContext.h"
16#include "GaudiKernel/ToolHandle.h"
30 using base_class::base_class;
32 virtual StatusCode
initialize()
override final;
33 virtual StatusCode
addBranches(
const EventContext& ctx)
const override final;
36 Gaudi::Property<std::vector<unsigned int>>
m_layers{
this,
"layers", { 0, 1, 2, 3 } };
45 "SG key of electron container"
52 "SG key of the cell container"
57 "CaloFillRectangularClusterTool",
59 "Handle of the CaloFillRectangularClusterTool"
65 "SGKey_photons_decorations",
67 "SG keys for photon decorations"
73 "SGKey_electrons_decorations",
75 "SG keys for electrons decorations"
Base class for cluster processing tools called from CaloClusterMaker that operate on individual clust...
Calculates the per-layer position, size, etc. of a cluster. Optionally, fills the cluster with cells ...
Property holding a SG store/key/clid from which a ReadHandle is made.
Container class for CaloCell.
Decorate egamma objects with the energy per layer for a rectangular cluster of size neta X nphi built...
Gaudi::Property< std::vector< unsigned int > > m_layers
SG::ReadHandleKey< CaloCellContainer > m_SGKey_caloCells
ToolHandle< CaloClusterProcessor > m_caloFillRectangularTool
virtual StatusCode addBranches(const EventContext &ctx) const override final
std::vector< float > decorateObject(const EventContext &ctx, const xAOD::Egamma *egamma, const CaloCellContainer *cellCont) const
virtual StatusCode initialize() override final
SG::ReadHandleKey< xAOD::EgammaContainer > m_SGKey_photons
const CaloFillRectangularCluster * m_tool
SG::WriteDecorHandleKeyArray< xAOD::EgammaContainer > m_SGKey_electrons_decorations
SG::ReadHandleKey< xAOD::EgammaContainer > m_SGKey_electrons
SG::WriteDecorHandleKeyArray< xAOD::EgammaContainer > m_SGKey_photons_decorations
Property holding a SG store/key/clid from which a ReadHandle is made.
DecorHandleKeyArray< WriteDecorHandle< T, S >, WriteDecorHandleKey< T >, Gaudi::DataHandle::Writer > WriteDecorHandleKeyArray
Egamma_v1 Egamma
Definition of the current "egamma version".