ATLAS Offline Software
Loading...
Searching...
No Matches
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
9
11#include "GaudiKernel/EventContext.h"
12#include "GaudiKernel/ToolHandle.h"
14
17
22
24
36
37class EMClusterTool final
38 : public AthAlgTool
39 , virtual public IEMClusterTool
40{
41
42public:
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,
57 xAOD::PhotonContainer* photonContainer) const override final;
58
62 void setNewCluster(const EventContext& ctx,
63 xAOD::Egamma* eg,
64 xAOD::CaloClusterContainer* outputClusterContainer) const;
65
68 this,
69 "OutputClusterContainerName",
70 "",
71 "Name of the output cluster container"
72 };
73
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
87 "MVACalibSvc",
88 "egammaMVASvc",
89 "calibration service" };
90};
91
92#endif // EGAMMATOOLS_EMCLUSTERTOOL_H
Property holding a SG store/key/clid from which a WriteHandle is made.
xAOD::ElectronContainer * electronContainer
xAOD::PhotonContainer * photonContainer
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
SG::WriteHandleKey< CaloClusterCellLinkContainer > m_outputClusterContainerCellLinkKey
Key of the output cluster container cell links: name taken from containter name; only dummy configura...
SG::WriteHandleKey< xAOD::CaloClusterContainer > m_outputClusterContainerKey
Key of the output cluster container.
virtual StatusCode contExecute(const EventContext &ctx, xAOD::ElectronContainer *electronContainer, xAOD::PhotonContainer *photonContainer) const override final
execute on container
ServiceHandle< IegammaMVASvc > m_MVACalibSvc
Handle to the MVA calibration service.
EMClusterTool(const std::string &type, const std::string &name, const IInterface *parent)
constructor
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.
virtual StatusCode initialize() override final
initialize method
virtual ~EMClusterTool()=default
destructor
Interface for tool egamma/egammaTools/EMClusterTool.
Property holding a SG store/key/clid from which a WriteHandle is made.
Forward declaration.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
#define private