ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Calorimeter
CaloUtils
src
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
14
#include "
CaloUtils/CaloClusterProcessor.h
"
15
#include "CaloEvent/CaloClusterContainer.h"
16
17
26
CaloClusterProcessor::CaloClusterProcessor
(
const
std::string&
type
,
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
44
StatusCode
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
}
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
CaloClusterProcessor.h
Base class for cluster processing tools called from CaloClusterMaker that operate on individual clust...
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
CaloClusterProcessor::CaloClusterProcessor
CaloClusterProcessor(const std::string &type, const std::string &name, const IInterface *parent)
Constructor.
Definition
CaloClusterProcessor.cxx:26
CaloClusterProcessor::execute
virtual StatusCode execute(const EventContext &ctx, xAOD::CaloCluster *cluster) const =0
Execute on a single cluster.
xAOD::CaloCluster
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
Definition
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloCluster.h:19
xAOD::CaloClusterContainer
CaloClusterContainer_v1 CaloClusterContainer
Define the latest version of the calorimeter cluster container.
Definition
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloClusterContainer.h:17
type
Generated on
for ATLAS Offline Software by
1.17.0