7#include "CaloEvent/CaloCluster.h"
16 return StatusCode::SUCCESS;
22 if (!clusterContainerWidthEta.isValid()) {
24 return StatusCode::SUCCESS;
28 if (!clusterContainerWidthPhi.isValid()) {
30 return StatusCode::SUCCESS;
33 for (
const auto *
const thisCluster : *clusterContainerWidthEta) {
40 std::vector<double>
eta,
phi;
41 size_t ncells = theCellLinks->
size();
46 eta.push_back(cell->eta());
47 phi.push_back(cell->phi());
51 clusterContainerWidthEta(*thisCluster) =
width.etaVariance;
52 clusterContainerWidthPhi(*thisCluster) =
width.phiVariance;
56 return StatusCode::SUCCESS;
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
An algorithm that can be simultaneously executed in multiple threads.
Data object for each calorimeter readout cell.
const_iterator to loop over cells belonging to a cluster
Bookkeeping of cells that make up a cluster Simplified replacement for CaloCellLink,...
const_iterator end() const
const end method
size_t size() const
size method
const_iterator begin() const
const begin method
StatusCode initialize() override
PFClusterWidthCalculator m_clusterWidthCalculator
PFClusterWidthDecorator(const std::string &name, ISvcLocator *pSvcLocator)
SG::WriteDecorHandleKey< xAOD::CaloClusterContainer > m_clusterContainerWidthEtaKey
SG::WriteDecorHandleKey< xAOD::CaloClusterContainer > m_clusterContainerWidthPhiKey
StatusCode execute(const EventContext &ctx) const override
Handle class for adding a decoration to an object.