ATLAS Offline Software
Loading...
Searching...
No Matches
METElectronAssociator.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// METElectronAssociator.cxx
8// Implementation file for class METElectronAssociator
9//
10// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
11//
12// Author: P Loch, S Resconi, TJ Khoo, AS Mete
14
15// METReconstruction includes
17
18// Egamma EDM
20#include "xAODEgamma/Photon.h"
21
22namespace met {
23
24 using namespace xAOD;
25
26 // Constructors
34
35 // Athena algtool's Hooks
54
55
56 // executeTool
58 StatusCode METElectronAssociator::executeTool(xAOD::MissingETContainer* /*metCont*/, xAOD::MissingETAssociationMap* metMap, const EventContext& ctx) const
59 {
60 ATH_MSG_VERBOSE ("In execute: " << name() << "...");
61
63 if (!elCont.isValid()) {
64 ATH_MSG_WARNING("Unable to retrieve input electron container " << m_elContKey.key());
65 return StatusCode::FAILURE;
66 }
67
68 ATH_MSG_DEBUG("Successfully retrieved electron collection");
69 if (fillAssocMap(metMap,elCont.cptr(), ctx).isFailure()) {
70 ATH_MSG_WARNING("Unable to fill map with electron container " << m_elContKey.key());
71 return StatusCode::FAILURE;
72 }
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
SG::ReadHandleKey< xAOD::ElectronContainer > m_elContKey
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
METElectronAssociator()
Default constructor:
MissingETAssociationMap_v1 MissingETAssociationMap
Version control by type defintion.