11#include "GaudiKernel/TypeNameString.h"
17 const std::string& name,
18 const IInterface* parent)
23 declareInterface<IegammaSwTool>(
this);
52 return StatusCode::SUCCESS;
61 if (cluster ==
nullptr)
62 return StatusCode::SUCCESS;
65 switch (requestedSize) {
104 "Inexisting cluster type and calibration requested: " << requestedSize);
105 return StatusCode::FAILURE;
108 return StatusCode::SUCCESS;
120 if (cluster ==
nullptr) {
121 return StatusCode::SUCCESS;
143 << egType <<
" isBarrel: " << isBarrel);
144 return StatusCode::FAILURE;
167 << egType <<
" isBarrel: " << isBarrel);
168 return StatusCode::FAILURE;
172 return StatusCode::SUCCESS;
177 const ToolHandleArray<CaloClusterProcessor>&
tools,
180 auto firstTool =
tools.begin();
181 auto lastTool =
tools.end();
183 for (; firstTool != lastTool; ++firstTool) {
184 ATH_CHECK((*firstTool)->execute(ctx, cluster));
186 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Calculate total energy, position, etc. for a given layer of a cluster.
ClusterSize clusterSize() const
Get cluster size.
ClusterSize
Enumeration to identify different cluster sizes.
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.