ATLAS Offline Software
Loading...
Searching...
No Matches
CaloClusterProcessor.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5
13
15#include "CaloEvent/CaloClusterContainer.h"
16
17
27 const std::string& name,
28 const IInterface* parent)
29 : AthAlgTool (type, name, parent)
30{
31 declareInterface<CaloClusterCollectionProcessor> (this);
32 declareInterface<CaloClusterProcessor> (this);
33}
34
35
44StatusCode CaloClusterProcessor::execute (const EventContext& ctx,
45 xAOD::CaloClusterContainer* collection) const
46{
47 for (xAOD::CaloCluster* clu : *collection) {
48 ATH_CHECK( execute (ctx, clu) );
49 }
50 return StatusCode::SUCCESS;
51}
#define ATH_CHECK
Evaluate an expression and check for errors.
Base class for cluster processing tools called from CaloClusterMaker that operate on individual clust...
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
CaloClusterProcessor(const std::string &type, const std::string &name, const IInterface *parent)
Constructor.
virtual StatusCode execute(const EventContext &ctx, xAOD::CaloCluster *cluster) const =0
Execute on a single cluster.
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
CaloClusterContainer_v1 CaloClusterContainer
Define the latest version of the calorimeter cluster container.