ATLAS Offline Software
Loading...
Searching...
No Matches
CaloClusterProcessor.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2015 CERN for the benefit of the ATLAS collaboration
3*/
4
5
13
15#include "CaloEvent/CaloClusterContainer.h"
16#include "GaudiKernel/ThreadLocalContext.h"
17
18
28 const std::string& name,
29 const IInterface* parent)
30 : AthAlgTool (type, name, parent)
31{
32 declareInterface<CaloClusterCollectionProcessor> (this);
33 declareInterface<CaloClusterProcessor> (this);
34}
35
36
45StatusCode CaloClusterProcessor::execute (const EventContext& ctx,
46 xAOD::CaloClusterContainer* collection) const
47{
48 for (xAOD::CaloCluster* clu : *collection) {
49 ATH_CHECK( execute (ctx, clu) );
50 }
51 return StatusCode::SUCCESS;
52}
#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.