ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
egamma
egammaTools
src
EMClusterTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef EGAMMATOOLS_EMCLUSTERTOOL_H
6
#define EGAMMATOOLS_EMCLUSTERTOOL_H
7
8
#include "
egammaInterfaces/IEMClusterTool.h
"
9
10
#include "
AthenaBaseComps/AthAlgTool.h
"
11
#include "GaudiKernel/EventContext.h"
12
#include "GaudiKernel/ToolHandle.h"
13
#include "
StoreGate/WriteHandleKey.h
"
14
15
#include "
EgammaAnalysisInterfaces/IegammaMVASvc.h
"
16
#include "
egammaInterfaces/IegammaSwTool.h
"
17
18
#include "
xAODCaloEvent/CaloCluster.h
"
19
#include "
xAODCaloEvent/CaloClusterContainer.h
"
20
#include "
xAODEgamma/EgammaEnums.h
"
21
#include "
xAODEgamma/EgammaFwd.h
"
22
23
class
CaloClusterCellLink
;
24
36
37
class
EMClusterTool
final
38
:
public
AthAlgTool
39
,
virtual
public
IEMClusterTool
40
{
41
42
public
:
44
EMClusterTool
(
const
std::string&
type
,
45
const
std::string& name,
46
const
IInterface* parent);
47
49
virtual
~EMClusterTool
() =
default
;
50
52
virtual
StatusCode
initialize
() override final;
54
virtual StatusCode
contExecute
(
55
const
EventContext& ctx,
56
xAOD
::
ElectronContainer
*
electronContainer
,
57
xAOD
::
PhotonContainer
*
photonContainer
)
const
override final;
58
59
private
:
62
void
setNewCluster
(
const
EventContext& ctx,
63
xAOD
::
Egamma
* eg,
64
xAOD
::
CaloClusterContainer
* outputClusterContainer)
const
;
65
67
SG
::WriteHandleKey<
xAOD
::
CaloClusterContainer
>
m_outputClusterContainerKey
{
68
this
,
69
"OutputClusterContainerName"
,
70
""
,
71
"Name of the output cluster container"
72
};
73
76
SG::WriteHandleKey<CaloClusterCellLinkContainer>
77
m_outputClusterContainerCellLinkKey
{
78
this
,
79
"DoNotSet_OutputClusterContainerLinks"
,
80
""
,
81
"Key of the output cluster container cell links; Do not set! Name taken "
82
"from associated container"
83
};
84
86
ServiceHandle<IegammaMVASvc>
m_MVACalibSvc
{
this
,
87
"MVACalibSvc"
,
88
"egammaMVASvc"
,
89
"calibration service"
};
90
};
91
92
#endif
// EGAMMATOOLS_EMCLUSTERTOOL_H
AthAlgTool.h
EgammaEnums.h
EgammaFwd.h
CaloClusterContainer.h
CaloCluster.h
IEMClusterTool.h
IegammaMVASvc.h
IegammaSwTool.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
electronContainer
xAOD::ElectronContainer * electronContainer
Definition
TrigGlobEffCorrValidation.cxx:187
photonContainer
xAOD::PhotonContainer * photonContainer
Definition
TrigGlobEffCorrValidation.cxx:189
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
CaloClusterCellLink
Bookkeeping of cells that make up a cluster Simplified replacement for CaloCellLink,...
Definition
CaloClusterCellLink.h:24
CaloClusterContainer
Storable container for CaloCluster.
Definition
Calorimeter/CaloEvent/CaloEvent/CaloClusterContainer.h:37
EMClusterTool::m_outputClusterContainerCellLinkKey
SG::WriteHandleKey< CaloClusterCellLinkContainer > m_outputClusterContainerCellLinkKey
Key of the output cluster container cell links: name taken from containter name; only dummy configura...
Definition
EMClusterTool.h:77
EMClusterTool::m_outputClusterContainerKey
SG::WriteHandleKey< xAOD::CaloClusterContainer > m_outputClusterContainerKey
Key of the output cluster container.
Definition
EMClusterTool.h:67
EMClusterTool::contExecute
virtual StatusCode contExecute(const EventContext &ctx, xAOD::ElectronContainer *electronContainer, xAOD::PhotonContainer *photonContainer) const override final
execute on container
Definition
EMClusterTool.cxx:48
EMClusterTool::m_MVACalibSvc
ServiceHandle< IegammaMVASvc > m_MVACalibSvc
Handle to the MVA calibration service.
Definition
EMClusterTool.h:86
EMClusterTool::EMClusterTool
EMClusterTool(const std::string &type, const std::string &name, const IInterface *parent)
constructor
Definition
EMClusterTool.cxx:19
EMClusterTool::setNewCluster
void setNewCluster(const EventContext &ctx, xAOD::Egamma *eg, xAOD::CaloClusterContainer *outputClusterContainer) const
Set new cluster to the egamma object, decorate the new cluster with a link to the old one.
Definition
EMClusterTool.cxx:88
EMClusterTool::initialize
virtual StatusCode initialize() override final
initialize method
Definition
EMClusterTool.cxx:28
EMClusterTool::~EMClusterTool
virtual ~EMClusterTool()=default
destructor
ElectronContainer
Class to define the ElectronContainer.
Definition
Reconstruction/egamma/egammaEvent/egammaEvent/ElectronContainer.h:32
IEMClusterTool
Interface for tool egamma/egammaTools/EMClusterTool.
Definition
IEMClusterTool.h:23
PhotonContainer
Class to define the PhotonContainer.
Definition
Reconstruction/egamma/egammaEvent/egammaEvent/PhotonContainer.h:30
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
ServiceHandle
Definition
ClusterMakerTool.h:36
const
Egamma
Definition
ClusMomentumPlots.cxx:11
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition
ICaloAffectedTool.h:24
type
private
#define private
Definition
testRead.cxx:27
Generated on
for ATLAS Offline Software by
1.17.0