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
59
60
61 // executeTool
64 {
65 ATH_MSG_VERBOSE ("In execute: " << name() << "...");
66
68 if (!phCont.isValid()) {
69 ATH_MSG_WARNING("Unable to retrieve input photon container " << m_phContKey.key());
70 return StatusCode::FAILURE;
71 }
72
73 ATH_MSG_DEBUG("Successfully retrieved photon collection");
74
75 if (fillAssocMap(metMap,phCont.cptr()).isFailure()) {
76 ATH_MSG_WARNING("Unable to fill map with photon container " << m_phContKey.key());
77 return StatusCode::FAILURE;
78 }
79 return StatusCode::SUCCESS;
80 }
81
82}
#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
virtual StatusCode fillAssocMap(xAOD::MissingETAssociationMap *metMap, const xAOD::IParticleContainer *hardObjs) const
std::string m_chargedFELinksKey
std::string m_neutralPFOLinksKey
std::string m_chargedPFOLinksKey
std::string m_neutralFELinksKey
SG::ReadDecorHandleKey< xAOD::PhotonContainer > m_photonNeutralFEReadDecorKey
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::PhotonContainer > m_photonChargedFEReadDecorKey
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
METPhotonAssociator()
Default constructor:
SG::ReadHandleKey< xAOD::PhotonContainer > m_phContKey
StatusCode executeTool(xAOD::MissingETContainer *metCont, xAOD::MissingETAssociationMap *metMap) const final
MissingETAssociationMap_v1 MissingETAssociationMap
Version control by type defintion.