ATLAS Offline Software
Loading...
Searching...
No Matches
egammaSwTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef EGAMMATOOLS_EGAMMASWTOOL_H
6#define EGAMMATOOLS_EGAMMASWTOOL_H
15
17
20#include "GaudiKernel/EventContext.h"
22
23class egammaSwTool final
24 : public AthAlgTool
25 , virtual public IegammaSwTool
26{
27
28public:
30 egammaSwTool(const std::string& type,
31 const std::string& name,
32 const IInterface* parent);
33
35 virtual ~egammaSwTool() = default;
36
38 virtual StatusCode initialize() override;
40 virtual StatusCode execute(const EventContext& ctx,
41 xAOD::CaloCluster* cluster) const override final;
42 virtual StatusCode execute(const EventContext& ctx,
43 xAOD::CaloCluster* cluster,
45 bool isBarrel) const override final;
46
47private:
48 StatusCode processTools(const EventContext& ctx,
49 const ToolHandleArray<CaloClusterProcessor>& tools,
50 xAOD::CaloCluster* cluster) const;
51
57 ToolHandleArray<CaloClusterProcessor> m_clusterCorrectionPointersEle55{
58 this,
59 "ClusterCorrectionToolsEle55",
60 {}
61 };
62 ToolHandleArray<CaloClusterProcessor> m_clusterCorrectionPointersEle35{
63 this,
64 "ClusterCorrectionToolsEle35",
65 {}
66 };
67 ToolHandleArray<CaloClusterProcessor> m_clusterCorrectionPointersEle37{
68 this,
69 "ClusterCorrectionToolsEle37",
70 {}
71 };
72 ToolHandleArray<CaloClusterProcessor> m_clusterCorrectionPointersGam35{
73 this,
74 "ClusterCorrectionToolsGam35",
75 {}
76 };
77 ToolHandleArray<CaloClusterProcessor> m_clusterCorrectionPointersGam55{
78 this,
79 "ClusterCorrectionToolsGam55",
80 {}
81 };
82 ToolHandleArray<CaloClusterProcessor> m_clusterCorrectionPointersGam37{
83 this,
84 "ClusterCorrectionToolsGam37",
85 {}
86 };
87 ToolHandleArray<CaloClusterProcessor> m_clusterCorrectionPointersEconv55{
88 this,
89 "ClusterCorrectionToolsEconv55",
90 {}
91 };
92 ToolHandleArray<CaloClusterProcessor> m_clusterCorrectionPointersEconv35{
93 this,
94 "ClusterCorrectionToolsEconv35",
95 {}
96 };
97 ToolHandleArray<CaloClusterProcessor> m_clusterCorrectionPointersEconv37{
98 this,
99 "ClusterCorrectionToolsEconv37",
100 {}
101 };
102 // SuperCluster
103 ToolHandleArray<CaloClusterProcessor>
105 this,
106 "ClusterCorrectionToolsSuperClusterEle35",
107 {}
108 };
109 ToolHandleArray<CaloClusterProcessor>
111 this,
112 "ClusterCorrectionToolsSuperClusterEconv35",
113 {}
114 };
115 ToolHandleArray<CaloClusterProcessor>
117 this,
118 "ClusterCorrectionToolsSuperClusterGam35",
119 {}
120 };
121 //
122 ToolHandleArray<CaloClusterProcessor>
124 this,
125 "ClusterCorrectionToolsSuperClusterEle55",
126 {}
127 };
128 ToolHandleArray<CaloClusterProcessor>
130 this,
131 "ClusterCorrectionToolsSuperClusterGam55",
132 {}
133 };
134 ToolHandleArray<CaloClusterProcessor>
136 this,
137 "ClusterCorrectionToolsSuperClusterEconv55",
138 {}
139 };
140 //
141 ToolHandleArray<CaloClusterProcessor>
143 this,
144 "ClusterCorrectionToolsSuperClusterEle37",
145 {}
146 };
147 ToolHandleArray<CaloClusterProcessor>
149 this,
150 "ClusterCorrectionToolsSuperClusterGam37",
151 {}
152 };
153 ToolHandleArray<CaloClusterProcessor>
155 this,
156 "ClusterCorrectionToolsSuperClusterEconv37",
157 {}
158 };
159};
160
161#endif
162
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:
Interface for the Reconstruction/egamma/egammaRec/egammaSwTool.
ToolHandleArray< CaloClusterProcessor > m_clusterCorrectionPointersGam35
ToolHandleArray< CaloClusterProcessor > m_clusterCorrectionPointersSuperClusterEle37
ToolHandleArray< CaloClusterProcessor > m_clusterCorrectionPointersSuperClusterEle55
ToolHandleArray< CaloClusterProcessor > m_clusterCorrectionPointersGam55
ToolHandleArray< CaloClusterProcessor > m_clusterCorrectionPointersSuperClusterGam35
ToolHandleArray< CaloClusterProcessor > m_clusterCorrectionPointersEle37
ToolHandleArray< CaloClusterProcessor > m_clusterCorrectionPointersSuperClusterEle35
ToolHandleArray< CaloClusterProcessor > m_clusterCorrectionPointersEle35
egammaSwTool(const std::string &type, const std::string &name, const IInterface *parent)
Default constructor.
ToolHandleArray< CaloClusterProcessor > m_clusterCorrectionPointersEconv35
ToolHandleArray< CaloClusterProcessor > m_clusterCorrectionPointersSuperClusterGam37
ToolHandleArray< CaloClusterProcessor > m_clusterCorrectionPointersGam37
virtual ~egammaSwTool()=default
Destructor.
StatusCode processTools(const EventContext &ctx, const ToolHandleArray< CaloClusterProcessor > &tools, xAOD::CaloCluster *cluster) const
virtual StatusCode execute(const EventContext &ctx, xAOD::CaloCluster *cluster) const override final
execute method
ToolHandleArray< CaloClusterProcessor > m_clusterCorrectionPointersEle55
a list of names for tools to correct clusters
ToolHandleArray< CaloClusterProcessor > m_clusterCorrectionPointersSuperClusterEconv35
ToolHandleArray< CaloClusterProcessor > m_clusterCorrectionPointersEconv55
ToolHandleArray< CaloClusterProcessor > m_clusterCorrectionPointersSuperClusterEconv55
virtual StatusCode initialize() override
initialize method
ToolHandleArray< CaloClusterProcessor > m_clusterCorrectionPointersSuperClusterGam55
ToolHandleArray< CaloClusterProcessor > m_clusterCorrectionPointersSuperClusterEconv37
ToolHandleArray< CaloClusterProcessor > m_clusterCorrectionPointersEconv37
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.