ATLAS Offline Software
Loading...
Searching...
No Matches
METPhotonAssociator.cxx
Go to the documentation of this file.
1
2
3/*
4 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5*/
6
7// METPhotonAssociator.cxx
8// Implementation file for class METPhotonAssociator
9//
10// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
11//
12// Author: P Loch, S Resconi, TJ Khoo, AS Mete
14
15// METReconstruction includes
17
18// Egamma EDM
21
22namespace met {
23
24 using namespace xAOD;
25
26 // Constructors
34
35 // Athena algtool's Hooks
54
55
56 // executeTool
58 StatusCode METPhotonAssociator::executeTool(xAOD::MissingETContainer* /*metCont*/, xAOD::MissingETAssociationMap* metMap, const EventContext& ctx) const
59 {
60 ATH_MSG_VERBOSE ("In execute: " << name() << "...");
61
63 if (!phCont.isValid()) {
64 ATH_MSG_WARNING("Unable to retrieve input photon container " << m_phContKey.key());
65 return StatusCode::FAILURE;
66 }
67
68 ATH_MSG_DEBUG("Successfully retrieved photon collection");
69
70 if (fillAssocMap(metMap,phCont.cptr(), ctx).isFailure()) {
71 ATH_MSG_WARNING("Unable to fill map with photon container " << m_phContKey.key());
72 return StatusCode::FAILURE;
73 }
74 return StatusCode::SUCCESS;
75 }
76
77}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_WARNING(x)
#define ATH_MSG_DEBUG(x)
virtual bool isValid() override final
Can the handle be successfully dereferenced?
const_pointer_type cptr()
Dereference the pointer.
AsgTool(const std::string &name)
Constructor specifying the tool instance's name.
Definition AsgTool.cxx:58
Gaudi::Property< bool > m_useFELinks
Gaudi::Property< bool > m_usePFOLinks
virtual StatusCode fillAssocMap(xAOD::MissingETAssociationMap *metMap, const xAOD::IParticleContainer *hardObjs, const EventContext &ctx) const
SG::ReadDecorHandleKey< xAOD::PhotonContainer > m_photonNeutralFEReadDecorKey
SG::ReadDecorHandleKey< xAOD::ElectronContainer > m_electronNeutralPFOReadDecorKey
SG::ReadDecorHandleKey< xAOD::ElectronContainer > m_electronChargedFEReadDecorKey
SG::ReadDecorHandleKey< xAOD::ElectronContainer > m_electronChargedPFOReadDecorKey
METEgammaAssociator(const std::string &name)
StatusCode initialize()
Dummy implementation of the initialisation function.
SG::ReadDecorHandleKey< xAOD::PhotonContainer > m_photonNeutralPFOReadDecorKey
SG::ReadDecorHandleKey< xAOD::PhotonContainer > m_photonChargedPFOReadDecorKey
SG::ReadDecorHandleKey< xAOD::ElectronContainer > m_electronNeutralFEReadDecorKey
SG::ReadDecorHandleKey< xAOD::PhotonContainer > m_photonChargedFEReadDecorKey
StatusCode executeTool(xAOD::MissingETContainer *metCont, xAOD::MissingETAssociationMap *metMap, const EventContext &ctx) const final
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
METPhotonAssociator()
Default constructor:
SG::ReadHandleKey< xAOD::PhotonContainer > m_phContKey
MissingETAssociationMap_v1 MissingETAssociationMap
Version control by type defintion.